-
Notifications
You must be signed in to change notification settings - Fork 6.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
fix(button): hover styles being applied to disabled buttons #909
Conversation
// Use the same visual treatment for hover as for focus. | ||
@include md-button-focus(); | ||
[md-button], [md-icon-button] { | ||
&:not([disabled]):hover { |
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.
I'm hesitant to get so specific with the rule. Can it be done such that the disabled style is defined after the hover style with the same specificity as to override it?
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.
Done, although I think that this adds a little to the selector length, but reduces specificity. It seemed strange that the :after
is used to add the background.
5b6c2cf
to
2945e83
Compare
@crisbeto LGTM if you can rebase |
Fixes the button hover styles being applied, even if a button is disabled. Fixes angular#866.
2945e83
to
b557e10
Compare
Sorry @jelbourn, I was away last week. It's rebased now. |
) Fixes the button hover styles being applied, even if a button is disabled. Fixes angular#866.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Fixes the button hover styles being applied, even if a button is disabled.
Fixes #866.