-
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
Global Styles: Make css input fill remainder of screen by default #47437
Conversation
Size Change: -23.4 kB (-2%) Total Size: 1.31 MB
ℹ️ View Unchanged
|
Flaky tests detected in 52daf7e. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4012237228
|
The height of the field works well. I think there is extra left and right padding on the panel, and that there is room to make it wider to align with the header? |
I definitely understand this was a challenge: that's a lot of gnarly flex CSS. Nevertheless, it feels like a stronger starting point, simply due to the fact that CSS really requires as much CSS as possible. And since it's a new component entirely, this seems worth it. I won't have time to dive in and debug today, unfortunately, but behaviorally this feels good to me 👍 👍 |
Thanks @carolinan this was caused by putting the custom CSS in a collapsable panel - which on thinking about it was a waste of time as you are never likely to want to collapse this. Have switched back to a VStack and the extra padding is gone. |
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 well for me, thank you.
What?
Increases the size of the custom CSS input box by making if fill the remaining space in the column
Why?
The existing input only has 15 rows by default which makes it hard to view/edit larger chunks of CSS
How?
Rearranges the CSS input panel so that the additional CSS is the last element so it can fill the remaining space.
Testing Instructions
styles.css
property and make sure theOriginal theme CSS
panel displays correctly when custom CSS is added via global styles input.edit-site-global-styles-sidebar__navigator-screen
achieve this.Screenshots or screencast
Before:
resize-css-before.mov
After:
Screen.Recording.2023-01-26.at.5.06.27.PM.mov