-
-
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
Tab UI Improvements #20783
Tab UI Improvements #20783
Conversation
3a52d23
to
29f6344
Compare
4d3aae7
to
0c92f3a
Compare
Socket Security Pull Request Report👍 No new dependency issues detected in pull request Pull request report summary
Bot CommandsTo ignore an alert, reply with a comment starting with Powered by socket.dev |
ed371b0
to
81e410d
Compare
This is awesome 👌 I got a few questions, probably design related, so @MichaelArestad your input would be lovely:
|
I detected an issue regarding keyboard navigation, best described in a video format: I hope this resource is helpful! |
The buttons should only be gone on mobile phones (<599px). That was also the case before. Or should they stay now always visible? |
Have you seen my PR description? I will revisit that issue later |
943bd6d
to
98dc019
Compare
@yannbf Ah! The orientation and close button should always be visible on desktop views. Eventually, when we update our mobile designs, they will also always be visible, but that is not necessary with the current design.
I agree. Perhaps other options like showing a proper heading could be explored. I have an idea for this, but it might impact the designs of the content of the addon panels. We definitely need a better empty state for Actions. |
The changes look pretty good, I am just curious about the breaking changes in @storybook/components and the potential effects of that. I'm not the right person to talk about them unfortunately, but I'm sure others could tell whether the changes are fine or not |
875f9ca
to
66a0111
Compare
66a0111
to
2ef671e
Compare
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.
Awesome work @valentinpalkovic !
Resolves #20829
Resolves #19989
See: https://www.notion.so/chromatic-ui/Storybook-7-0-UI-update-421d43aa8f9248b29c9dbfa3fdb25dd3#4e86aa0af1af46bab881bae4828a8fd7
What I did
I have improved the Addons Tabs by removing the horizontal scrolling. I have introduced an "Addons" Tooltip instead.
Constraints:
I also wanted to take care of smooth tab navigation for accessibility reasons. And although
react-popper-tooltip
supportsfocus
triggers, it does not trigger the tooltip on tab focus. Additionally, it is not that easy to continue tabbing into the tooltip. To make that work, we would have to change the tooltip's DOM order a bit and add some tabIndex properties to the items. I tried a lot but failed to integrate tabbing across the tooltip boundary properly. Will invest some time at a later point to properly handle tabbing.Tabbing into the Tooltip is also blocked by: mohsinulhaq/react-popper-tooltip#147
How to test
Checklist
MIGRATION.MD
Maintainers
make sure to add the
ci:merged
orci:daily
GH label to it.["cleanup", "BREAKING CHANGE", "feature request", "bug", "documentation", "maintenance", "dependencies", "other"]