Skip to content

Commit cb1e046

Browse files
committed
use aria-current
1 parent d43af4d commit cb1e046

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/repl/src/lib/Input/ComponentSelector.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
class:editable={file.name !== 'App.svelte'}
8383
role="button"
8484
tabindex="0"
85-
class:active={file === workspace.current}
85+
aria-current={file === workspace.current}
8686
class:draggable={file !== workspace.current && index !== 0}
8787
class:drag-over={file === dragover}
8888
onclick={() => {
@@ -250,7 +250,7 @@
250250
cursor: move;
251251
}
252252
253-
&.active {
253+
&[aria-current='true'] {
254254
border-bottom: 1px solid var(--sk-fg-accent);
255255
256256
&.editable .filename {

0 commit comments

Comments
 (0)