Files: src/lib/dropdown/select/index.tsx, src/lib/dropdown/cascader/index.tsx
The bug:
<AriaSelect className={...} {...props} aria-label={label ?? "Select"}>
aria-label is set after {...props}, so caller-supplied aria-label is dropped. The only way to set a real accessible name is the label prop, which also renders a visible , which doesn't fit icon-only filter UIs.
Workaround currently in web repo: a LabeledDropdown wrapper using aria-labelledby (which the spread does forward) pointing at a visually-hidden span.
Suggested fix: either move aria-label before {...props} (so caller wins), or only apply the default when no labelling prop (aria-label, aria-labelledby, or label) is provided.
Files: src/lib/dropdown/select/index.tsx, src/lib/dropdown/cascader/index.tsx
The bug:
<AriaSelect className={...} {...props} aria-label={label ?? "Select"}>
aria-label is set after {...props}, so caller-supplied aria-label is dropped. The only way to set a real accessible name is the label prop, which also renders a visible , which doesn't fit icon-only filter UIs.
Workaround currently in web repo: a LabeledDropdown wrapper using aria-labelledby (which the spread does forward) pointing at a visually-hidden span.
Suggested fix: either move aria-label before {...props} (so caller wins), or only apply the default when no labelling prop (aria-label, aria-labelledby, or label) is provided.