Skip to content

fix(a11y): keyboard support for language selector#2

Open
ocheeluma wants to merge 1 commit into
mainfrom
fix/486-language-selector-keyboard
Open

fix(a11y): keyboard support for language selector#2
ocheeluma wants to merge 1 commit into
mainfrom
fix/486-language-selector-keyboard

Conversation

@ocheeluma

Copy link
Copy Markdown
Owner

Closes AnnabelJoe#486

Changes

  • Added <label htmlFor="language-select"> (visually hidden) associated with the <select> element via id — satisfies semantic form markup requirement.
  • Added role="status" aria-live="polite" span that announces the selected language name (e.g. "Language changed to Français") immediately after a selection change — satisfies accessible announcement requirement.
  • Expanded option labels to show full locale name (e.g. EN — English) for clarity in screen readers.
  • The native <select> is already keyboard-focusable and operable; no extra work needed there.

Testing

  • Focus the selector with Tab, change value with arrow keys — confirm screen reader announces the new language.

…selector (AnnabelJoe#486)

- Add aria-live polite region that announces language name on selection change
- Add explicit <label> with htmlFor associated to the <select> element
- Show full locale name in options (e.g. 'EN — English') for clarity
- Remove redundant aria-label on individual <option> elements
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add keyboard support for language selector

1 participant