Skip to content
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

Storybook: Remove popover-related height buffers #63480

Merged
merged 1 commit into from
Jul 12, 2024
Merged

Conversation

mirka
Copy link
Member

@mirka mirka commented Jul 12, 2024

What?

Removes now-unnecessary height buffers for Popover-based stories in Storybook.

Why?

Due to #53889, Popovers are now rendering at the end of the document rather than within the each story div, which used to cut them off visually.

Testing Instructions

See stories for affected components in the main Docs view. The popovers should appear above the story div, and not be cut off.

Screenshots or screencast

Before After
Story with height buffer Story without height buffer
@mirka mirka added [Type] Developer Documentation Documentation for developers Storybook Storybook and its stories for components labels Jul 12, 2024
@mirka mirka self-assigned this Jul 12, 2024
Copy link
Member

@tyxla tyxla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice cleanup, thanks 🙌

Looking good:
Screenshot 2024-07-12 at 15 36 22
Screenshot 2024-07-12 at 15 36 28
Screenshot 2024-07-12 at 15 36 48

Feel free to ship, the performance test failure is unrelated (it also occurs in trunk ATM).

🚀

Base automatically changed from story-typescript-perf to trunk July 12, 2024 12:46
@mirka mirka marked this pull request as ready for review July 12, 2024 12:52
@mirka mirka requested a review from ajitbohra as a code owner July 12, 2024 12:52
Copy link

github-actions bot commented Jul 12, 2024

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: mirka <0mirka00@git.wordpress.org>
Co-authored-by: tyxla <tyxla@git.wordpress.org>
Co-authored-by: ciampo <mciampini@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@ciampo
Copy link
Contributor

ciampo commented Jul 12, 2024

The CustomSelectControl stories would benefit from this change too

@mirka
Copy link
Member Author

mirka commented Jul 12, 2024

The CustomSelectControl stories would benefit from this change too

I tried, and that's how I noticed that CustomSelectControl doesn't portal the popover yet 🥺

@mirka mirka merged commit f92ffcc into trunk Jul 12, 2024
62 of 63 checks passed
@mirka mirka deleted the storybook-height-buffer branch July 12, 2024 14:10
@github-actions github-actions bot added this to the Gutenberg 18.9 milestone Jul 12, 2024
scruffian pushed a commit that referenced this pull request Jul 15, 2024
Co-authored-by: mirka <0mirka00@git.wordpress.org>
Co-authored-by: tyxla <tyxla@git.wordpress.org>
carstingaxion pushed a commit to carstingaxion/gutenberg that referenced this pull request Jul 18, 2024
Co-authored-by: mirka <0mirka00@git.wordpress.org>
Co-authored-by: tyxla <tyxla@git.wordpress.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Storybook Storybook and its stories for components [Type] Developer Documentation Documentation for developers
3 participants