Update components CONTROL_HEIGHT config value to 40 pixels #67484
Labels
[Package] Components
/packages/components
[Type] Bug
An existing feature does not function as intended
Description
Discovered while investigating #67425
To my understanding, some components that use CSS-in-JS rely on some CSS values stored in
packages/components/src/utils/config-values.js
.It appears the height value in this config is still 36 pixels, while the new default size should be 40 pixels.
gutenberg/packages/components/src/utils/config-values.js
Line 7 in 15d63ce
Notice also all the
controlHeight*
variants are based on 36 pixels.One of the places where the old 36 pixels value is used is for the
ItemGroup
>Item
component, which can be optionally rendered as a button by the means of the propas
. When rendered as a button or as a link, it uses this unstyledButton style where there's no height value set. Still, all the padding values are based on the 36 pixels value.I guess all these calculations should use the new 40 pixels height, not sure whether the best option would be allowing to pass the
__next40pxDefaultSize
flag to the styles calculations or switching directly to new hard-coded values.Cc @WordPress/gutenberg-components @t-hamano
Step-by-step reproduction instructions
N/A
Screenshots, screen recording, code snippet
No response
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: