fix(button): disable :hover on non supported devices (#15705)

This commit is contained in:
Juan Miguel
2018-09-24 20:57:19 +02:00
committed by Manu MA
parent f68c457c06
commit 67eb661537
4 changed files with 23 additions and 12 deletions

View File

@ -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) {

View File

@ -40,8 +40,10 @@
// iOS Toolbar Button Solid
// --------------------------------------------------
::slotted(*) .button-solid-ios:hover {
opacity: .4;
@media (any-hover: hover) {
::slotted(*) .button-solid-ios:hover {
opacity: .4;
}
}

View File

@ -151,8 +151,10 @@
color: #{current-color(base)};
}
:host(.ion-color) .searchbar-cancel-button:hover {
color: #{current-color(tint)};
@media (any-hover: hover) {
:host(.ion-color) .searchbar-cancel-button:hover {
color: #{current-color(tint)};
}
}
// Searchbar in Toolbar Color

View File

@ -34,7 +34,12 @@
background: var(--background-focused);
}
.tab-btn:hover,
@media (any-hover: hover) {
.tab-btn:hover {
color: var(--color-selected);
}
}
.tab-btn-selected {
color: var(--color-selected);
}
@ -125,4 +130,4 @@
.tab-btn-selected .tab-btn-icon {
transform: var(--icon-transform-selected);
}
}