(HACK WEEK 2025) Dark mode a11y audit rules (#2939)

* chore: 🤖 change axe runOptions based on color theme

* fix: 🐛 fix background-color and color styles application
This commit is contained in:
Cameron Perera committed 2025-08-19 10:51:44 -05:00
1 parent a51f1eee8e
commit 7a42bf456e
5 files changed
+51 -23

No files matched your search

+16 -11
View File
@@ -35,18 +35,23 @@ setupGlobalA11yHooks(() => true, {
setupQUnitA11yAuditToggle(QUnit);
const runOnly =
config.COLOR_THEME === 'dark'
? 'color-contrast'
: {
type: 'tag',
values: [
'wcag2a',
'wcag2aa',
'wcag21a',
'wcag21aa',
'wcag22aa',
'best-practice',
],
};
setRunOptions({
runOnly: {
type: 'tag',
values: [
'wcag2a',
'wcag2aa',
'wcag21a',
'wcag21aa',
'wcag22aa',
'best-practice',
],
},
runOnly,
include: [['#ember-testing-container']],
exclude: [['.flight-sprite-container']],
});