Poor spacing for NoticeActions in Notice component #69426
Labels
[Feature] UI Components
Impacts or related to the UI component system
[Package] Components
/packages/components
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Description
The spacing between the main children of the
Notice
component and actions added to theNotice
component via thenoticeActions
prop is too tight. Also, there is no vertical spacing between multiple notice actions, which is very noticeable on mobile.Note that there should be space between the text and the actions as per the Notice layout in the WordPress Design System Figma here. The Figma doesn't capture a mobile viewport, but the buttons being so close together is a bad layout regardless.
Step-by-step reproduction instructions
These reproductions rely on Storybook as a way to exclude other CSS as much as possible.
Basic spacing between children and actions
Vertical spacing between actions on mobile
Screenshots, screen recording, code snippet
Spacing when actions are present
Spacing when actions are vertical
Environment info
No response
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: