-
-
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
added arrow to a11y addon HeaderBar #3788
Conversation
I totally forgot about this one, thanks for picking it up! |
@Keraito It looks like a build step failed, I don't think the problem was introduced by me. Can you check it out? |
Let's use the same symbol as in sidebar stories list: https://github.com/storybooks/storybook/blob/master/lib/ui/src/modules/ui/components/stories_panel/stories_tree/tree_decorators.js#L18 |
Hey @jmiazga, I don't think you have to worry about that for now. I agree with the above comment that it's better to use the svg component that already exists in the project. That was also the direction that I took when I was looking into the issue, but the main difficulty is getting the proper properties for it. Would you like to give this approach a shot? |
@Hypnosphi @Keraito I'll take a look at using whats in react-icons |
@jmiazga I think the easiest is to use the |
@Keraito yep thats the plan |
@Keraito I can use |
Codecov Report
@@ Coverage Diff @@
## master #3788 +/- ##
==========================================
- Coverage 41.56% 41.56% -0.01%
==========================================
Files 455 455
Lines 5177 5178 +1
Branches 899 899
==========================================
Hits 2152 2152
- Misses 2485 2486 +1
Partials 540 540
Continue to review full report at Codecov.
|
@Keraito any feedback on this? |
I'd say 1px higher in collapsed state |
@Hypnosphi Made the change, here are some updated screen grabs |
I think should wait for the #3628 merging, it much easier to solve conflicts here. |
How do you feel about adding some CSS transition? |
@Hypnosphi I can add something. Is there a similar transition somewhere you'd like to replicate? |
Something like I also don't really like how it jumps when expanding because of appearing scrollbar (on mac with touchpad you can observe that when enabling "Show scrollbars: always" in system settings -> general). Maybe we shouldn't use |
FYI, theming PR was merged. |
@jmiazga Can I help you get this PR in a merge-able state? |
Look like the cli failed because of an npm failure, I will rerun the task |
@Hypnosphi I haven't had time to address the transition for the content when expanded or the scrollbar. The transition for content can't be solved by css alone because the elements aren't always in the dom. I need to check out how it's being done in the menu on the left side. The arrow is there and it has a transition, so this could always be merged and I can follow up with another PR to address the two issues mentioned above. |
thanks for the PR. when you get a chance, please follow up with another PR like you've mentioned. |
@jmiazga There are some more improvements possible to the a11y addon, don't you think? Are you on the storybook slack? If you'd like we could discuss them there? |
Issue: #3641
What I did
Added arrow to indicate button is expandable. Rotate arrow when a11y violation is expanded.
Closed:
Expanded:
How to test
Is this testable with Jest or Chromatic screenshots?
Does this need a new example in the kitchen sink apps?
Does this need an update to the documentation?
If your answer is yes to any of these, please make sure to include it in your PR.
For maintainers only: Please tag your pull request with at least one of the following:
["cleanup", "BREAKING CHANGE", "feature request", "bug", "documentation", "maintenance", "dependencies", "other"]