element-web icon indicating copy to clipboard operation
element-web copied to clipboard

Margin between "Forgot password?" and SSO buttons

Open luixxiul opened this issue 2 years ago • 14 comments

Steps to reproduce

  1. Logout from the session
  2. Re-login

Outcome

What did you expect?

The button should remain displayed with disabled state.

What happened instead?

The button disappears.

https://user-images.githubusercontent.com/3362943/159900205-56000c8a-c1ec-43bd-a5fc-40e3582ad5a7.mp4

Operating system

No response

Browser information

No response

URL for webapp

localhost

Application version

develop branch

Homeserver

No response

Will you send logs?

No

luixxiul avatar Mar 24 '22 10:03 luixxiul

https://user-images.githubusercontent.com/60646682/160227287-e1f8ef1c-d580-4454-bbe0-948b76ad6d56.mov

aryabyte21 avatar Mar 26 '22 06:03 aryabyte21

Is this better?

aryabyte21 avatar Mar 26 '22 06:03 aryabyte21

I have tried to retain the sign in button here just let me know if it's good enough.

aryabyte21 avatar Mar 26 '22 06:03 aryabyte21

@AryaArunB unfortunately this issue was not up for grabs. A PR was already open https://github.com/matrix-org/matrix-react-sdk/pull/8143. I've assigned the original issue author @luixxiul back to this issue.

germain-gg avatar Mar 29 '22 11:03 germain-gg

I guess the design proposed in the closed PR could work as well.

@AryaArunB Maybe creating another issue to discuss the design would be appreciated.

luixxiul avatar Mar 29 '22 11:03 luixxiul

Design input

It looks like some ugly UX debt.

The correct way to handle it would be to use a busy state for the button (disabled button, loading spinner inside), so there are no UI reflows / layout shifts involved.

Unsure if we have such a busy state already that we can reuse.

Ref. https://github.com/matrix-org/matrix-react-sdk/pull/8143#issuecomment-1096612558

janogarcia avatar Apr 12 '22 11:04 janogarcia

We do have a disabled/busy state for buttons.

turt2live avatar Apr 12 '22 15:04 turt2live

This issue is also back up for grabs now that there's no active PR assigned to it.

turt2live avatar Apr 12 '22 15:04 turt2live

Kindly assign this issue to me, I'll like to work on it.

sentinel-sam avatar Apr 13 '22 02:04 sentinel-sam

@sentinel-sam You're more than welcome to submit a fix, though our current policy is to wait until at least a draft PR has been submitted before assigning a new external contributor to an issue.

robintown avatar Apr 13 '22 02:04 robintown

Ok, I'll be on stand by then. Meanwhile, I noticed the "Sign In" is an input, not button. How do we implement a loader spinner inside an input tag?

sentinel-sam avatar Apr 13 '22 02:04 sentinel-sam

@turt2live Thanks! Other than being disabled, does that button busy state show any form of feedback on progress/activity (loading spinner or similar)?

janogarcia avatar Apr 13 '22 06:04 janogarcia

We don't have a consistent design, but can put the spinner there. We tend to put the spinner in a convenient place rather than consistent.

turt2live avatar Apr 13 '22 06:04 turt2live

Good to know that we can use it (we'll eventually fix any arbitrary inconsistencies). 👍

janogarcia avatar Apr 13 '22 06:04 janogarcia

Hey , Kindly Assign the issue to me , I'll Work on it

Vijaykv5 avatar Feb 05 '23 18:02 Vijaykv5

@Vijaykv5

Thank you for your interest in this issue. We will normally not assign the issue to an external contributor until they have provided at least a draft PR which is taking the right direction. For further details, see our guidance on assigning issues.

If you have any technical questions about this issue, you can ask for help in #element-dev:matrix.org

t3chguy avatar Feb 06 '23 09:02 t3chguy

Hi, Can I work on it?

abhijeet-26 avatar Feb 21 '23 14:02 abhijeet-26

Hi, Can I work on it?

Yes please Do a PR And Then do

Vijaykv5 avatar Feb 21 '23 14:02 Vijaykv5

Okay Sure

Hi, Can I work on it?

Yes please Do a PR And Then do

abhijeet-26 avatar Feb 21 '23 14:02 abhijeet-26

Can I work on it?

ashifkhn avatar Apr 18 '23 16:04 ashifkhn

Can I work on it?

It looks like there is already a PR.

weeman1337 avatar Apr 19 '23 06:04 weeman1337

i want to work i just started it can anyone please guide me

AbDul278244 avatar Apr 29 '23 17:04 AbDul278244

There is already a PR.

luixxiul avatar Apr 30 '23 14:04 luixxiul

Given that we have upcoming changes for OIDC login, and it has been difficult to get design attention for this issue, I'm going to close this issue. Apologies to those who have put time into it. I think we probably should have asked for design input on the issue, before anyone worked on any code for this, and before we marked it as good first issue. We will attempt to do that in future.

andybalaam avatar Jun 22 '23 14:06 andybalaam