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:
@@ -58,6 +58,7 @@ $toolbar-ios-title-font-size: 1.7rem !default;
|
||||
|
||||
.back-button-icon {
|
||||
display: inherit;
|
||||
margin: 0;
|
||||
min-width: 20px;
|
||||
font-size: 3.2rem;
|
||||
}
|
||||
|
||||
@@ -51,8 +51,8 @@ $toolbar-order: (
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.enable-hover .toolbar button:hover,
|
||||
.enable-hover .toolbar [button]:hover,
|
||||
.toolbar button:hover:not(.disable-hover),
|
||||
.toolbar [button]:hover:not(.disable-hover),
|
||||
.toolbar button.activated,
|
||||
.toolbar [button].activated {
|
||||
color: $toolbar-active-color;
|
||||
@@ -140,6 +140,8 @@ ion-nav-items div {
|
||||
.toolbar-title,
|
||||
button,
|
||||
[button],
|
||||
button:hover:not(.disable-hover),
|
||||
[button]:hover:not(.disable-hover),
|
||||
a {
|
||||
color: inverse($color-value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user