mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
fix(button/chip): move hover styles into media query (#16664)
This ensures that all :hover styles live inside a (any-hover: hover) media query. closes #16108
This commit is contained in:
@ -31,12 +31,6 @@
|
||||
--background-activated: #{ion-color(primary, shade)};
|
||||
}
|
||||
|
||||
@media (any-hover: hover) {
|
||||
:host(.button-solid:hover) {
|
||||
--opacity: #{$button-ios-opacity-hover};
|
||||
}
|
||||
}
|
||||
|
||||
:host(.button-solid.activated) {
|
||||
--opacity: #{$button-ios-opacity-activated};
|
||||
}
|
||||
@ -61,11 +55,6 @@
|
||||
|
||||
// iOS Clear Button
|
||||
// --------------------------------------------------
|
||||
@media (any-hover: hover) {
|
||||
:host(.button-clear:hover) {
|
||||
--opacity: #{$button-ios-clear-opacity-hover};
|
||||
}
|
||||
}
|
||||
|
||||
:host(.button-clear.activated) {
|
||||
--opacity: #{$button-ios-clear-opacity-activated};
|
||||
@ -123,3 +112,17 @@
|
||||
:host(.button-strong) {
|
||||
font-weight: #{$button-ios-strong-font-weight};
|
||||
}
|
||||
|
||||
|
||||
// iOS Button Focus
|
||||
// --------------------------------------------------
|
||||
|
||||
@media (any-hover: hover) {
|
||||
:host(.button-solid:hover) {
|
||||
--opacity: #{$button-ios-opacity-hover};
|
||||
}
|
||||
|
||||
:host(.button-clear:hover) {
|
||||
--opacity: #{$button-ios-clear-opacity-hover};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user