-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
A11y design enhancements #6563
Merged
ndelangen
merged 23 commits into
storybookjs:next
from
CodeByAlex:a11y-design-enhancements
Apr 25, 2019
Merged
A11y design enhancements #6563
Changes from 12 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
4e043eb
made global checkbox responsive
CodeByAlex 4cb4de8
modified empty text for each accessibility status
CodeByAlex bdbd153
added badge to make the severity display more accessible
CodeByAlex d1e8ccc
removed passes from props and used type to determine the badge needed
CodeByAlex 321ba10
fixed spacing issues between checkbox and element path
CodeByAlex a28dd42
a11y: added padding next to rule text to allow for more space below c…
CodeByAlex e9320b7
modified styling of a11y severity badges
CodeByAlex 827898e
added critical badge color
CodeByAlex 0782de0
added react resize-me to allow for automatic flowing of the global ch…
CodeByAlex 6c84cbb
Used resize-me to auto flow the badges when the width of the addon pa…
CodeByAlex f1521ef
made the badge slimmer for the a11y rules
CodeByAlex de96c0f
fixed ts issues
CodeByAlex 3bdf885
added a constant for Item width in the the a11y rules
CodeByAlex 8095c23
Merge branch 'next' into a11y-design-enhancements
CodeByAlex c74bd00
updated storyshots and badge options
CodeByAlex bfe6df8
ran yarn bootstrap --reset --core and added changes
CodeByAlex c245294
updated snapshots
CodeByAlex c453929
Capitalized colorblindness emulation text
CodeByAlex e5550aa
Capitalized mono for color blindness emulation
CodeByAlex b80728c
Merge branch 'next' into a11y-design-enhancements
CodeByAlex 0a7146d
inserted the es lint disable comments originally added by ndelangen w…
CodeByAlex 71791b5
modified color blindness logic to use lowercase version of visual tit…
CodeByAlex 4426529
modified color blindness logic to set the first character of title to…
CodeByAlex File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could cut back on the number of dependencies by using https://github.com/storybooks/storybook/blob/next/lib/ui/src/app.js#L4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a good point. I hadn't spotted that in the repo. It looks like it also has the "refreshMode" feature so it fits the needs. Ill convert what I have to use react-resize-detector. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So I tried the react-resize-detector and there is a delay between when you start an action and the resizing occurs. Think we should switch back to ResizeMe where this did not occur. react-sizeme does an initial, invisible render of the component to measure its size. Then, when the component renders, the size is known and the component can render properly from the beginning.
Resize me:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried switching out the react-resize-detector for resize me but for that use case, react-resize-detector was the better library
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ndelangen what do you think about keeping both?