-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Site Editor Layout Breaks When changing existing names of Font Sizes with Long Names in theme.json #68344
Comments
Thanks for contributing, @snehapatil2001! I believe this is the same or similar to #68271. |
Thanks for the feedback, @Mamaduka
|
It seems this change originates from this PR, where the update aimed to align the FontSizePicker control's header spacing (label + toggle) with the spacing used across the design tools. That said, it appears to have been assumed that labels would not exceed a height of 16px. However, this raises some concerns about how labels that span multiple lines might behave within this updated layout. This bug can be fixed by removing this CSS rule:
But that would break the spacing again. Alternatively, the label can be truncated to fix the bug. cc: @snehapatil2001 |
Honestly, I believe this approach would result in a better design. We could implement a hover dialog to display the full text when needed. Why? |
This overflow issue was previously identified in the dropdown elements in PR #68280, which was addressed by truncating the text. To maintain consistency, I believe we should apply a similar solution here. Additionally, since the bug persists and remains unresolved, it would be beneficial to reach a design consensus to address this issue comprehensively. |
Description
theme.json
file, the Site Editor layout breaks when selecting these font sizes. The issue results in the text overflowing and overlapping with other elements in the Site Editor panel, making the layout look misaligned and negatively impacting the user experience.Expected behavior
Font size names with long text should be properly truncated with an ellipsis or wrapped within the available space, preventing any overflow or layout issues in the Site Editor.
Step-by-step reproduction instructions
theme.json
file and update the existing font sizes with long names. Example:Screenshots, screen recording, code snippet
Screen.Recording.2024-12-27.at.3.17.15.PM.mov
Environment info
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.
The text was updated successfully, but these errors were encountered: