Skip to content

refactor: switched to a11y compliant HTML #417

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Apr 21, 2023

Conversation

mfranzke
Copy link
Member

@mfranzke mfranzke commented Apr 18, 2023

Resolves #394

As a meaningful migration, you would need to do the following steps when using this component with hyperlinks included (we should mention this within the release notes):

  • remove role="listbox" from <ul class="cmp-language-switcher" HTML tag
  • remove role="option" from <li HTML tags and replace aria-selected="true" by aria-current="page" for the active language

@mfranzke mfranzke added bug Something isn't working accessibility labels Apr 18, 2023
@mfranzke mfranzke added this to the Release 2.x milestone Apr 18, 2023
@mfranzke mfranzke self-assigned this Apr 18, 2023
@mfranzke mfranzke linked an issue Apr 18, 2023 that may be closed by this pull request
@github-actions
Copy link
Contributor

🔭🐙🐈 Test this branch here: https://db-ui.github.io/core/review/394-language-switcher-remove-listbox

@mfranzke mfranzke marked this pull request as draft April 19, 2023 04:45
@mfranzke mfranzke marked this pull request as ready for review April 19, 2023 05:54
@mfranzke mfranzke enabled auto-merge (squash) April 19, 2023 06:02
Copy link
Contributor

@d-koppenhagen d-koppenhagen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There seems to be a small visual bug:

Bildschirmfoto 2023-04-19 um 08 10 06

EDIT: it's already documented. So OK from my site :)

@mfranzke mfranzke requested a review from annsch April 21, 2023 05:41
@mfranzke mfranzke merged commit 3855da9 into main Apr 21, 2023
@mfranzke mfranzke deleted the 394-language-switcher-remove-listbox branch April 21, 2023 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility bug Something isn't working patterns
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Language switcher: remove listbox role
3 participants