fix(theme): fix light theme a11y contrast and demo axe violations#3945
fix(theme): fix light theme a11y contrast and demo axe violations#3945ciiay wants to merge 2 commits into
Conversation
Fixes: https://redhat.atlassian.net/browse/RHDHBUGS-2243 Signed-off-by: Yi Cai <yicai@redhat.com>
Changed Packages
|
PR Summary by Qodofix(theme): fix light theme WCAG contrast and demo axe violations
AI Description
Diagram
High-Level Assessment
Files changed (19)
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #3945 +/- ##
==========================================
- Coverage 56.13% 56.13% -0.01%
==========================================
Files 2382 2382
Lines 95555 95559 +4
Branches 26715 26715
==========================================
Hits 53640 53640
- Misses 40235 40239 +4
Partials 1680 1680
*This pull request uses carry forward flags. Click here to find out more. Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
Code Review by Qodo
Context used✅ Compliance rules (platform):
11 rules✅ Cross-repo context Explored:
repo: redhat-developer/rhdh (sha: d090bd1a) Not relevant to this PR:
redhat-developer/rhdh-chart Not relevant to this PR:
redhat-developer/rhdh-operator Not relevant to this PR:
redhat-developer/rhdh-local 1. Axe rules disabled globally
|
Signed-off-by: Yi Cai <yicai@redhat.com>
|
HusneShabbir
left a comment
There was a problem hiding this comment.
/lgtm
the theme-owned violations look fixed, and re-enabling the axe assertions with CI green is solid.
One follow-up: the remaining scoped disables (aria-valid-attr-value from react-aria/useId() colon IDs, and nested-interactive from @material-table/core) would be good candidates for upstream issues (or PRs) so we can drop those disables later.
Other than that, looks good to me.



Description
Fixes light-theme WCAG contrast failures and demo accessibility issues so the theme Playwright axe suite can enforce violations again. Updates the RHDH light palette and bridges Backstage UI secondary text tokens, corrects demo markup/labels, and restores axe assertions with scoped disables only for known upstream issues.
Root cause
Light palette
text.secondary/ MUI info/warning colors failed WCAG AA on RHDH chrome; BUI--bui-fg-secondary(~#797979) failed on#f2f2f2; demos had orphanUserSettingsThemeTogglelist items and unlabeled BUI controls; upstream react-ariaaria-controlsIDs and material-table nested interactive patterns required scoped axe disables.Fixed
UI before changes
UI after changes
Test Plan
yarn tsc:full,yarn build:all,yarn test --watchAll=false,yarn build:api-reports:onlyChecklist
Note
Made with Cursor