web: remove focus ring css workarounds

This commit is contained in:
wukko 2025-04-27 20:38:01 +06:00
parent ba4742f3fd
commit 9657db3515
No known key found for this signature in database
GPG Key ID: 3E30B3F26C7B4AA2
12 changed files with 7 additions and 40 deletions

View File

@ -282,7 +282,7 @@ a:focus-visible {
background-color: var(--button-elevated-press); background-color: var(--button-elevated-press);
} }
.button.elevated:not(:focus-visible) { .button.elevated {
box-shadow: none; box-shadow: none;
} }

View File

@ -79,7 +79,7 @@
border-radius: calc(var(--border-radius) - var(--switcher-padding));; border-radius: calc(var(--border-radius) - var(--switcher-padding));;
} }
.switcher.big :global(.button:not(:focus-visible)) { .switcher.big {
box-shadow: none; box-shadow: none;
} }

View File

@ -106,10 +106,6 @@
padding: 0; padding: 0;
} }
.popup-title:focus-visible {
box-shadow: none !important;
}
.picker-body { .picker-body {
overflow-y: scroll; overflow-y: scroll;
display: grid; display: grid;

View File

@ -148,10 +148,6 @@
gap: var(--padding); gap: var(--padding);
} }
.dialog-inner-container:focus-visible {
box-shadow: none!important;
}
.dialog-inner-container { .dialog-inner-container {
overflow-y: scroll; overflow-y: scroll;
gap: 8px; gap: 8px;
@ -191,10 +187,6 @@
font-size: 19px; font-size: 19px;
} }
.popup-title:focus-visible {
box-shadow: none !important;
}
.action-buttons { .action-buttons {
display: flex; display: flex;
flex-direction: row; flex-direction: row;

View File

@ -129,11 +129,6 @@
-webkit-user-select: text; -webkit-user-select: text;
} }
.body-text:focus-visible,
.popup-title:focus-visible {
box-shadow: none !important;
}
.popup-subtext { .popup-subtext {
opacity: 0.7; opacity: 0.7;
padding: 0; padding: 0;

View File

@ -43,7 +43,7 @@
letter-spacing: -0.3px; letter-spacing: -0.3px;
} }
:global(.donate-card button:not(:focus-visible)) { :global(.donate-card button) {
box-shadow: none; box-shadow: none;
} }
@ -62,8 +62,8 @@
cursor: default; cursor: default;
} }
:global(.donate-card button.selected:not(:focus-visible)) { :global(.donate-card button.selected) {
box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1) inset !important; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1) inset;
} }
:global(.donate-card-subtitle) { :global(.donate-card-subtitle) {

View File

@ -333,10 +333,6 @@
opacity: 0.5; opacity: 0.5;
} }
#donation-custom-input:focus-visible {
box-shadow: unset !important;
}
#input-container.focused { #input-container.focused {
box-shadow: 0 0 0 2px var(--white) inset; box-shadow: 0 0 0 2px var(--white) inset;
} }

View File

@ -305,10 +305,6 @@
padding-right: calc(var(--input-padding) + 28px); padding-right: calc(var(--input-padding) + 28px);
} }
#link-area:focus-visible {
box-shadow: unset !important;
}
#link-area::placeholder { #link-area::placeholder {
color: var(--gray); color: var(--gray);
/* fix for firefox */ /* fix for firefox */

View File

@ -98,7 +98,7 @@
box-shadow 0.1s; box-shadow 0.1s;
} }
#services-button:not(:focus-visible):not(:active) { #services-button:not(:active) {
box-shadow: none; box-shadow: none;
} }

View File

@ -102,10 +102,6 @@
padding: 0 12px 0 15px; padding: 0 12px 0 15px;
} }
#download-button:focus-visible {
box-shadow: var(--focus-ring);
}
#download-state { #download-state {
font-size: 24px; font-size: 24px;
font-family: "Noto Sans Mono Variable", "Noto Sans Mono", font-family: "Noto Sans Mono Variable", "Noto Sans Mono",

View File

@ -223,10 +223,6 @@
white-space: nowrap; white-space: nowrap;
} }
.input-box:focus-visible {
box-shadow: unset !important;
}
#input-container.focused { #input-container.focused {
box-shadow: 0 0 0 2px var(--secondary) inset; box-shadow: 0 0 0 2px var(--secondary) inset;
} }

View File

@ -184,7 +184,7 @@
stroke-width: 1.6px; stroke-width: 1.6px;
} }
.button-wrapper-desktop button:not(:focus-visible) { .button-wrapper-desktop button {
box-shadow: none; box-shadow: none;
} }