symeon commited on
Commit
17d2394
1 Parent(s): 0fe4fa3

Improve style and accessibility in the settings modal (#206)

Browse files
src/lib/components/SettingsModal.svelte CHANGED
@@ -57,7 +57,7 @@
57
  </p>
58
  <button
59
  type="submit"
60
- class="mt-2 rounded-full bg-black px-5 py-2 text-lg font-semibold text-gray-100 ring-gray-400 ring-offset-1 transition-colors hover:ring"
61
  >
62
  Apply
63
  </button>
 
57
  </p>
58
  <button
59
  type="submit"
60
+ class="mt-2 rounded-full bg-black px-5 py-2 text-lg font-semibold text-gray-100 ring-gray-400 ring-offset-1 transition-all focus-visible:outline-none focus-visible:ring hover:ring"
61
  >
62
  Apply
63
  </button>
src/lib/components/Switch.svelte CHANGED
@@ -5,7 +5,7 @@
5
 
6
  <input bind:checked type="checkbox" {name} class="peer pointer-events-none absolute opacity-0" />
7
  <div
8
- class="relative inline-flex h-5 w-9 items-center rounded-full bg-gray-300 p-1 shadow-inner transition-all peer-checked:bg-black hover:bg-gray-400 peer-checked:[&>div]:translate-x-3.5"
9
  >
10
  <div class="h-3.5 w-3.5 rounded-full bg-white shadow-sm transition-all" />
11
  </div>
 
5
 
6
  <input bind:checked type="checkbox" {name} class="peer pointer-events-none absolute opacity-0" />
7
  <div
8
+ class="relative inline-flex h-5 w-9 shrink-0 items-center rounded-full bg-gray-300 p-1 shadow-inner ring-gray-400 transition-all peer-checked:bg-black peer-focus-visible:ring peer-focus-visible:ring-offset-1 hover:bg-gray-400 peer-checked:[&>div]:translate-x-3.5"
9
  >
10
  <div class="h-3.5 w-3.5 rounded-full bg-white shadow-sm transition-all" />
11
  </div>