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() {
&:not(.disabled):not(:disabled) {
&:hover, &:active, &.active, &:focus {
&:active, &.active, &:focus {
@content;
}
@media (hover:hover) {
&:hover {
@content;
}
}
}
}

View File

@ -48,7 +48,14 @@
.ListItem-button {
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);
}
}

View File

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