Open Bug 1950988 Opened 21 days ago Updated 17 days ago

False contrast problem positives when using `oklch()` in Storybook's a11y check

Categories

(Toolkit :: UI Widgets, defect)

defect

Tracking

()

People

(Reporter: jules, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [recomp])

Can be a bit outside our control but today Storybook throws false positives of contrast issues when using oklch().
Ran into this while implementing 1861526. Didn't find any answers from doing some quick research. But ran this by :mstriemer too.
I reckon we can file a bug with Storybook themselves? But filing here just to be safe.

Summary: False contrast problem positives when using `oklch()` → False contrast problem positives when using `oklch()` in Storybook's a11y check

This appears to be an issue with our package-lock.json for our Storybook. Even with our current version of Storybook and the accessibility addon, we should be installing a later version of axe-core that supports the CSS4 color spaces (including oklch()). Right now our installed axe-core version is 4.6.2 and we need at least 4.7.1 for the additional color space support. If we delete the current package-lock.json and run npm i, then the installed axe-core version will be 4.10.2. We should delete the old package-lock and add a new one to fix this issue.

It would be nice to have a mach command to update our storybook dependencies. Rather than doing this manually we can add a ./mach storybook upgrade command that will rm the package-lock.json and node_modules then run npm install to update all of our dependencies.

Severity: -- → S3
You need to log in before you can comment on or make changes to this bug.