mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
fix(button): disable :hover on non supported devices (#15705)
This commit is contained in:
@ -26,9 +26,10 @@
|
||||
|
||||
// iOS Solid Button
|
||||
// --------------------------------------------------
|
||||
|
||||
:host(.button-solid:hover) {
|
||||
--opacity: #{$button-ios-opacity-hover};
|
||||
@media (any-hover: hover) {
|
||||
:host(.button-solid:hover) {
|
||||
--opacity: #{$button-ios-opacity-hover};
|
||||
}
|
||||
}
|
||||
|
||||
:host(.button-solid.activated) {
|
||||
@ -55,9 +56,10 @@
|
||||
|
||||
// iOS Clear Button
|
||||
// --------------------------------------------------
|
||||
|
||||
:host(.button-clear:hover) {
|
||||
--opacity: #{$button-ios-clear-opacity-hover};
|
||||
@media (any-hover: hover) {
|
||||
:host(.button-clear:hover) {
|
||||
--opacity: #{$button-ios-clear-opacity-hover};
|
||||
}
|
||||
}
|
||||
|
||||
:host(.button-clear.activated) {
|
||||
|
Reference in New Issue
Block a user