Repository navigation
chore(storybook): fail story tests on accessibility violations - #613
Merged
Merged
Conversation
|
|
|
View your CI Pipeline Execution ↗ for commit 9433d1c
💡 Verify your cache is correct by running tasks in a sandbox. Read docs ↗ ☁️ Nx Cloud last updated this comment at |
Member
Author
|
Story tests with
Without the exception, every failure is the same
To check that the rule still runs on everything else, I set the active title to |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #552
All the sub-issues of #552 are closed, so the story tests now fail on accessibility violations:
a11y.testgoes from'todo'to'error'in.storybook/preview.js.One exception: the
color-contrastrule skips the title of an inactive TitleBar. Since #590 the title usesheaderNotActiveText, grey on grey like in Windows 95 (2.51:1 in the default theme), and WCAG exempts inactive components from the contrast minimum. Every other rule still checks it. The selector is built from the recipe'sclassNames, asTitleBar.css.tsalready does, so it follows the class hashes.With the exception, the 51 story tests pass with
'error'. Without it, 6 fail, all on that title (TitleBar, TaskBar, Modal and useModal stories). Making the active title low-contrast on purpose still fails TitleBar > Simple oncolor-contrast.It only touches the Storybook config, so it doesn't publish a new
@react95/core.