-
-
Notifications
You must be signed in to change notification settings - Fork 78.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ensure active button styles are not applied to disabled buttons #23544
Ensure active button styles are not applied to disabled buttons #23544
Conversation
Haven't had a chance to test it, but one question that pops into my head: are there situations where a If |
I am not sure if any disabled element receives |
scss/_buttons.scss
Outdated
&:disabled, | ||
&.disabled:active, | ||
&:disabled:active, | ||
&.disabled.active, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, Why is this duplicated?
&.disabled:active,
&:disabled:active
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @andresgalante,
These two lines are not exactly same. First one applies to active state of button having .disabled
class and the second one applies to active state of disabled button with disabled attribute.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
right! sorry I miss read the :
and the .
Thanks for the clarification
an alternative, more terse way (instead of redefining |
Sorry @patrickhlauke , didn't get you. |
@prateekgoel what i mean is: instead of redefining new styles for disabled+active scenario, you could likely save yourself all the redefinition by instead making the current active styles for buttons only target buttons that aren't disabled. |
i.e. not adding new style blocks, and instead changing
to
|
Yes, got your point. Seems a nice idea. |
Thanks for the suggestion. 😃 |
active not to target disabled
@patrickhlauke Did the changes. |
Sorry for the delay...but finally able to build locally and test, and it works well (even in IE11) :) |
I have added the styles same as
.disabled
to.disabled:active
.This should fix #23353.
Let me know if any other changes are required.