TimePicker: Layout breaks when the timezone string is long #56257
Labels
CSS Styling
Related to editor and front end styles, CSS-specific issues.
[Package] Components
/packages/components
[Type] Bug
An existing feature does not function as intended
Description
Splitting this out from #56211 (comment)
The TimePicker renders a
Spacer
component between the AM/PM buttons and the timezone indication.I would argue that a component should not render a Spacer, which is a presentational component. Presentation should be kept separate from funcitonality.
Anyways, when the timezone indication is a little longer than usual, e.g.
UTC+5.75
, th elayout breaks and the AM/PM buttons get stacked vertically. Note: the displayed value5.75
is wrong. I created #56254 to address that.Screenshot:
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: