web/app.css: fix text color in active buttons with focus ring

This commit is contained in:
wukko
2025-05-19 19:44:51 +06:00
parent f94606cbd3
commit 12d6f33197

View File

@ -265,6 +265,14 @@ a:not(.sidebar-tab):not(.subnav-tab):focus-visible {
background-color: var(--secondary);
}
/* important is used because active class is toggled by state */
/* and added to the end of the list, taking priority */
.button.active:focus-visible,
a.active:focus-visible {
color: var(--white) !important;
background-color: var(--blue) !important;
}
@media (hover: hover) {
.button:hover {
background-color: var(--button-hover);
@ -299,13 +307,6 @@ button[disabled] {
cursor: default;
}
/* important is used because active class is toggled by state */
/* and added to the end of the list, taking priority */
.active:focus-visible {
color: var(--white);
background-color: var(--blue) !important;
}
/* workaround for typing into inputs being ignored on iPadOS 15 */
input {
user-select: text;