Skip to content

Commit

Permalink
web/layout: add & use the css variable for the focus ring
Browse files Browse the repository at this point in the history
  • Loading branch information
wukko committed Feb 12, 2025
1 parent 935947c commit 8d7f0d9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion web/src/components/dialog/PickerItem.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
width: 100%;
height: 100%;
position: absolute;
box-shadow: 0 0 0 2px var(--blue) inset;
box-shadow: var(--focus-ring);
border-radius: inherit;
}
Expand Down
2 changes: 1 addition & 1 deletion web/src/components/queue/ProcessingStatus.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
#processing-status.completed {
box-shadow:
0 0 0 2px var(--blue) inset,
var(--focus-ring),
var(--processing-status-glow);
}
Expand Down
2 changes: 1 addition & 1 deletion web/src/components/save/buttons/DownloadButton.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
}
#download-button:focus-visible {
box-shadow: 0 0 0 2px var(--blue) inset;
box-shadow: var(--focus-ring);
}
#download-state {
Expand Down
4 changes: 3 additions & 1 deletion web/src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@
--green: #51cf5e;
--blue: #2f8af9;
--focus-ring: 0 0 0 2px var(--blue) inset;
--button: #f4f4f4;
--button-hover: #e8e8e8;
--button-active-hover: #2a2a2a;
Expand Down Expand Up @@ -364,7 +366,7 @@
}
:global(:focus-visible) {
box-shadow: 0 0 0 2px var(--blue) inset !important;
box-shadow: var(--focus-ring) !important;
outline: none;
z-index: 1;
}
Expand Down

0 comments on commit 8d7f0d9

Please sign in to comment.