fix(web): rating stars accessibility (#11966)

* fix(web): exif ratings accessibility

* chore: add tests

* fix: eslint errors

* fix: clean up issues from changes in use:focusOutside
This commit is contained in:
Ben 2024-08-23 12:34:12 -04:00 committed by GitHub
parent 7fbf50a75e
commit c14e2914f8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 180 additions and 31 deletions

View file

@ -23,7 +23,6 @@
import { createEventDispatcher, tick } from 'svelte';
import type { FormEventHandler } from 'svelte/elements';
import { shortcuts } from '$lib/actions/shortcut';
import { clickOutside } from '$lib/actions/click-outside';
import { focusOutside } from '$lib/actions/focus-outside';
import { generateId } from '$lib/utils/generate-id';
import CircleIconButton from '$lib/components/elements/buttons/circle-icon-button.svelte';
@ -124,7 +123,6 @@
<label class="immich-form-label" class:sr-only={hideLabel} for={inputId}>{label}</label>
<div
class="relative w-full dark:text-gray-300 text-gray-700 text-base"
use:clickOutside={{ onOutclick: deactivate }}
use:focusOutside={{ onFocusOut: deactivate }}
use:shortcuts={[
{