Skip to content

A11y: Localize aria-label in DocRoleDropdown #1618

@rvveber

Description

@rvveber

return (
<DropdownMenu
topMessage={topMessage}
label="doc-role-dropdown"

  • Problem: The dropdown trigger hardcodes aria-label="doc-role-dropdown", so assistive tech literally announces the English slug instead of a descriptive, localized label.
  • Impact: Non-descriptive labels make it impossible for users to understand the control’s purpose, especially in translated interfaces.
  • Acceptance criteria / fix ideas:
    • Replace the hardcoded string with a translated phrase (e.g., t('Document role options')).
    • Ensure the label matches the control’s function and is localized alongside the rest of the UI.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions