Skip to content

Make language toggle more accessible for screen readers #4267

@alexandrevryghem

Description

@alexandrevryghem

Describe the bug

The language switch button should clearly state the currently selected language option using the aria-selected attribute. We should also consider switching the language toggle to a <button> instead of an <a> to be more semantically correct

Expected behavior

Screen readers should be able to detect which option is currently selected

Metadata

Metadata

Assignees

Labels

Type

Projects

Status

✅ Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions