mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 04:53:58 +08:00
fix(button): disable :hover on non supported devices (#15705)
This commit is contained in:
@ -26,9 +26,10 @@
|
|||||||
|
|
||||||
// iOS Solid Button
|
// iOS Solid Button
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
@media (any-hover: hover) {
|
||||||
:host(.button-solid:hover) {
|
:host(.button-solid:hover) {
|
||||||
--opacity: #{$button-ios-opacity-hover};
|
--opacity: #{$button-ios-opacity-hover};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
:host(.button-solid.activated) {
|
:host(.button-solid.activated) {
|
||||||
@ -55,9 +56,10 @@
|
|||||||
|
|
||||||
// iOS Clear Button
|
// iOS Clear Button
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
@media (any-hover: hover) {
|
||||||
:host(.button-clear:hover) {
|
:host(.button-clear:hover) {
|
||||||
--opacity: #{$button-ios-clear-opacity-hover};
|
--opacity: #{$button-ios-clear-opacity-hover};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
:host(.button-clear.activated) {
|
:host(.button-clear.activated) {
|
||||||
|
@ -40,8 +40,10 @@
|
|||||||
// iOS Toolbar Button Solid
|
// iOS Toolbar Button Solid
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
::slotted(*) .button-solid-ios:hover {
|
@media (any-hover: hover) {
|
||||||
|
::slotted(*) .button-solid-ios:hover {
|
||||||
opacity: .4;
|
opacity: .4;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -151,8 +151,10 @@
|
|||||||
color: #{current-color(base)};
|
color: #{current-color(base)};
|
||||||
}
|
}
|
||||||
|
|
||||||
:host(.ion-color) .searchbar-cancel-button:hover {
|
@media (any-hover: hover) {
|
||||||
|
:host(.ion-color) .searchbar-cancel-button:hover {
|
||||||
color: #{current-color(tint)};
|
color: #{current-color(tint)};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Searchbar in Toolbar Color
|
// Searchbar in Toolbar Color
|
||||||
|
@ -34,7 +34,12 @@
|
|||||||
background: var(--background-focused);
|
background: var(--background-focused);
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab-btn:hover,
|
@media (any-hover: hover) {
|
||||||
|
.tab-btn:hover {
|
||||||
|
color: var(--color-selected);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.tab-btn-selected {
|
.tab-btn-selected {
|
||||||
color: var(--color-selected);
|
color: var(--color-selected);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user