-
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: add padding to entity save panel header #57471
Conversation
Size Change: +23 B (0%) Total Size: 1.69 MB
ℹ️ View Unchanged
|
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.
Good catch!
Before | After |
---|---|
Is there a chance anyone might include a strong
tag within additionalPrompt
? If so, we could always use a child combinator so that the rule is > strong
, or add a classname to the strong
tag and use that instead?
Given that the component is private for now and that the only current usage of additionalPrompt
is for the theme prompt as you've mentioned, this change seems fine to me for now.
LGTM! ✨
Wow, that was fast. Thank you! |
Oh dang, I just digested this. It's possible yeah. I already merged, but I think a className on the strong tag would be a better, long-term solution. I'll create another one 😄 |
No harm done! Thanks for following up 🙂 |
What and how?
Like it says on the box, add some padding to the "Are you ready to save?" save panel header.
Why?
In the absence of any
additionalPrompt
content, when you deselect all entities to save, the header sits too close to the panel border below.The only
additionalPrompt
content I could find is a p tag that is shown when previewing a new theme in the site editor. This content has its own, default padding of1em
.Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast
Before
2024-01-02.12.52.35.mp4
After
2024-01-02.12.51.22.mp4