mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
refactor(hover): use :hover:not(.disable-hover)
Less CSS specificity issues. Disabling hover on mobile prevents button flickers.
This commit is contained in:
@@ -33,6 +33,10 @@ button,
|
||||
background-color $button-md-transition-duration $button-md-animation-curve,
|
||||
color $button-md-transition-duration $button-md-animation-curve;
|
||||
|
||||
:hover:not(.disable-hover) {
|
||||
background-color: $button-md-clear-hover-background-color;
|
||||
}
|
||||
|
||||
&.activated {
|
||||
box-shadow: $button-md-box-shadow-active;
|
||||
}
|
||||
@@ -85,11 +89,6 @@ button,
|
||||
|
||||
}
|
||||
|
||||
&.enable-hover button[clear]:hover,
|
||||
&.enable-hover [button][clear]:hover {
|
||||
background-color: $button-md-clear-hover-background-color;
|
||||
}
|
||||
|
||||
|
||||
// Material Design Button Color Mixin
|
||||
// --------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user