Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 67d41db

Browse files
author
Rich Harris
committedMar 14, 2023
a11y
1 parent 1e20af8 commit 67d41db

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed
 

‎src/routes/tutorial/[slug]/ScreenToggle.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
</script>
77

88
<div class="input-output-toggle">
9-
<span aria-hidden="true">Tutorial</span>
9+
<button aria-hidden="true" on:click={() => (selected = false)}>Tutorial</button>
1010
<ToggleButton bind:pressed={selected} label="Show editor" />
11-
<span aria-hidden="true">Editor</span>
11+
<button aria-hidden="true" on:click={() => (selected = true)}>Editor</button>
1212
</div>
1313

1414
<style>

‎src/routes/tutorial/[slug]/ToggleButton.svelte

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@
3030
border: transparent;
3131
}
3232
33+
button:focus-visible {
34+
outline: 2px solid var(--sk-theme-3);
35+
}
36+
3337
button::before {
3438
content: '';
3539
position: absolute;

0 commit comments

Comments
 (0)
Please sign in to comment.