mirror of
https://github.com/remvze/moodist.git
synced 2025-12-18 01:14:17 +00:00
fix: add aria labels
This commit is contained in:
parent
fa71709f89
commit
85768d8bca
1 changed files with 2 additions and 1 deletions
|
|
@ -36,8 +36,9 @@ export function Sound({ label, src }: SoundProps) {
|
||||||
onClick={() => setIsSelected(prev => !prev)}
|
onClick={() => setIsSelected(prev => !prev)}
|
||||||
onKeyDown={() => setIsSelected(prev => !prev)}
|
onKeyDown={() => setIsSelected(prev => !prev)}
|
||||||
>
|
>
|
||||||
<h3>{label}</h3>
|
<h3 id={label}>{label}</h3>
|
||||||
<input
|
<input
|
||||||
|
aria-labelledby={label}
|
||||||
autoComplete="off"
|
autoComplete="off"
|
||||||
disabled={!isSelected}
|
disabled={!isSelected}
|
||||||
max={100}
|
max={100}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue