Notice: Add right margin to content only when dismissible#73905
Conversation
| .components-notice__content { | ||
| margin-right: 0; | ||
| } |
|
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 If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
Size Change: 0 B Total Size: 2.58 MB
ℹ️ View Unchanged
|
|
Flaky tests detected in 68510fe. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/20151473906
|
juanfra
left a comment
There was a problem hiding this comment.
Thanks for the PR, looks good to me ✅
One small question, should we reconsider the margin-right when the notice is dismissible? The computed value ends up at 25px, which feels like a fairly large visual gap. It’s almost mirroring the button width. Curious if we might want to fine-tune that, in narrow contexts it can be huge.
notice-spacing.mp4
|
@juanfra Thanks for the review!
I think that margin has been there for several years, so it may not match the current design. Perhaps we can consider improving it in a follow-up. |

What?
Notice content always has a margin on the right, which is redundant when there is no close button.
Testing Instructions
Smoke test on storybook.
Screenshots or screencast