fix: aria-label warnings for edit profile form

This commit is contained in:
Simon Emanuelsson
2024-04-16 12:59:58 +02:00
parent 21a839488a
commit 4ee4570373
11 changed files with 20 additions and 19 deletions

View File

@@ -18,6 +18,7 @@ import styles from "./select.module.css"
import type { SelectProps } from "./select"
export default function Select({
"aria-label": ariaLabel,
items,
label,
name,
@@ -41,6 +42,7 @@ export default function Select({
return (
<div className={styles.date} ref={divRef}>
<ReactAriaSelect
aria-label={ariaLabel}
className={styles.select}
onSelectionChange={handleOnSelect}
placeholder={placeholder}
@@ -63,7 +65,7 @@ export default function Select({
*/
UNSTABLE_portalContainer={divElement ?? undefined}
>
<ListBox aria-label={name} className={styles.listBox}>
<ListBox className={styles.listBox}>
{items.map((item) => (
<ListBoxItem
aria-label={String(item)}