Fix freezing hover state on clicked elements (#1301)

This commit is contained in:
Alexander Zinchuk 2021-07-20 16:43:59 +03:00
parent d0b53ec328
commit 89810c5adb
3 changed files with 27 additions and 6 deletions

View File

@ -1,8 +1,13 @@
@mixin active-styles() { @mixin active-styles() {
&:not(.disabled):not(:disabled) { &:not(.disabled):not(:disabled) {
&:hover, &:active, &.active, &:focus { &:active, &.active, &:focus {
@content; @content;
} }
@media (hover:hover) {
&:hover {
@content;
}
}
} }
} }

View File

@ -48,7 +48,14 @@
.ListItem-button { .ListItem-button {
cursor: pointer; cursor: pointer;
body:not(.is-ios) &:hover, &:focus { @media (hover:hover) {
&:hover, &:focus {
--background-color: var(--color-chat-hover);
}
}
}
@media (max-width: 600px) {
&:not(.has-ripple) .ListItem-button:active {
--background-color: var(--color-chat-hover); --background-color: var(--color-chat-hover);
} }
} }

View File

@ -15,10 +15,19 @@
cursor: pointer; cursor: pointer;
unicode-bidi: plaintext; unicode-bidi: plaintext;
&:hover, &:focus { @media (hover:hover) {
background-color: var(--color-chat-hover); &:hover, &:focus {
text-decoration: none; background-color: var(--color-chat-hover);
color: inherit; text-decoration: none;
color: inherit;
}
}
@media (max-width: 600px) {
&:active {
background-color: var(--color-chat-hover);
text-decoration: none;
color: inherit;
}
} }
i { i {