-
Notifications
You must be signed in to change notification settings - Fork 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
Limited Global Styles: Fix modal layout #76133
Conversation
This PR modifies the release build for editing-toolkit To test your changes on WordPress.com, run To deploy your changes after merging, see the documentation: PCYsg-mMA-p2 |
This PR does not affect the size of JS and CSS bundles shipped to the user's browser. Generated by performance advisor bot at iscalypsofastyet.com. |
On the vertical phone screenshot should we display the actionable 'half' of the modal above the illustrative half? |
Thanks @BogdanUngureanu, it should be fixed now:
It's intentionally below the image so it looks similar to the Core's welcome modal: |
Thanks for the updates, Miguel. I had another look and I've noticed that the scrollbar is still appearing for iPhone 12 pro resolutions. Maybe for low height resolutions we could:
By doing this, we will make sure that the CTA buttons are visible on the screen without scrolling. |
Oh, sorry about that. The issue is in landscape mode, where the height is small and you have to scroll the modal in order to see the upgrade buttons. |
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.
Works great on most mobile devices, in landscape mode. I've noticed that for Galaxy Fold, in landscape mode, the buttons are still not visible, but I guess it's an acceptable tradeoff.
Fixes #76089
Proposed Changes
As of Gutenberg 15.2, the
Modal
component no longer renders the passed React nodes as direct children of.components-modal__content
, effectively breaking the flex layout used by our Limited Global Styles gating modal.To fix that, we now use a wrapper with a custom class so we can build a flex layout without relying on how Gutenberg renders the
Modal
component.Testing Instructions