Skip to content
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

WCAG 2.2: Tab focus state risks failing 2.4.13: Focus appearance #4471

Open
Tracked by #4347
owenatgov opened this issue Nov 16, 2023 · 0 comments
Open
Tracked by #4347

WCAG 2.2: Tab focus state risks failing 2.4.13: Focus appearance #4471

owenatgov opened this issue Nov 16, 2023 · 0 comments
Labels
accessibility accessibility-concern Any bug, feature request or question about the accessibility of a portion of a product. 🐛 bug Something isn't working the way it should (including incorrect wording in documentation) tabs WCAG 2.2 All items related to WCAG 2.2 update activities

Comments

@owenatgov
Copy link
Contributor

owenatgov commented Nov 16, 2023

Description of the issue

The tabs component doesn't meet the minimum requirements for WCAG 2.2 criterion 2.4.13: focus appearance under circumstances where tab text is very short. This is because:

  1. the component uses link decoration with black text, reducing the contrast change between focused and unfocused to meet the criterion
  2. for "active" tabs (white background) there is no text decoration, reducing the possible area focus area required to meet the criterion
  3. for "inactive" tabs (grey background) the contrast between the grey background and the focus yellow is too low

Steps to reproduce the issue

See the testing spreadsheet, including the focus appearance pass fail calculator (internal only) for more details on the circumstances where this issue occurs

Further reading

@owenatgov owenatgov added 🐛 bug Something isn't working the way it should (including incorrect wording in documentation) accessibility tabs accessibility-concern Any bug, feature request or question about the accessibility of a portion of a product. WCAG 2.2 All items related to WCAG 2.2 update activities labels Nov 16, 2023
@owenatgov owenatgov changed the title Tab focus state risks failing WCAG 2.2 criterion 14.2.13: Focus appearance WCAG 2.2: Tab focus state risks failing 14.2.13: Focus appearance Nov 16, 2023
@owenatgov owenatgov changed the title WCAG 2.2: Tab focus state risks failing 14.2.13: Focus appearance WCAG 2.2: Tab focus state risks failing 2.4.13: Focus appearance Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility accessibility-concern Any bug, feature request or question about the accessibility of a portion of a product. 🐛 bug Something isn't working the way it should (including incorrect wording in documentation) tabs WCAG 2.2 All items related to WCAG 2.2 update activities
Projects
None yet
Development

No branches or pull requests

1 participant