fix: add aria labels

This commit is contained in:
MAZE 2023-10-06 19:13:04 +03:30
parent fa71709f89
commit 85768d8bca

View file

@ -36,8 +36,9 @@ export function Sound({ label, src }: SoundProps) {
onClick={() => setIsSelected(prev => !prev)}
onKeyDown={() => setIsSelected(prev => !prev)}
>
<h3>{label}</h3>
<h3 id={label}>{label}</h3>
<input
aria-labelledby={label}
autoComplete="off"
disabled={!isSelected}
max={100}