-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Simplify the inserter styles and scrollable #44088
Conversation
Size Change: +17 B (0%) Total Size: 1.25 MB
ℹ️ View Unchanged
|
date: '2022-09-12T13:28:06', | ||
date_gmt: '2022-09-12T13:28:06', | ||
id: 70, | ||
link: 'http://localhost:8888/?p=70', |
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.
Looks temporary? 🤔
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.
This is in the storybook story, it's not important, I just copied my own reusable blocks :P
What and Why?
In #44028 there's a need to add a button at the bottom of the inserter, this is only possible properly if the container of the tab grows to cover all the available space. In order to do that, we also need to move the "scrollable area" of the inserter to be the "tab content" instead of being the whole inserter. This PR achieves this refactoring.
I've also added some Storybook stories which will allow us to work easily on the inserter in isolation.
Testing Instructions
1- Open the main inserter
2- Notice the scrolling behavior is a bit different
3- Try playing with the inserter in different situations, there should be no regression.
You can also run
npm run storybook:dev
and play with the different inserter stories.Screenshots or screencast