Open ryanwelcher opened 3 years ago
Discovered while working on #34662
@ryanwelcher While testing out the AlignmentControlMatrix today I came across this old open issue. However it appears to be fixed now as setting the width attribute does control the width of the component.
Here is a playground with a block using the AlignmentControlMatrix component and the width is set to 248 (the max width of the sidebar when inside a PanelBody). AlignmentMatrixTest Playground
That playground is loading this plugin that has a simple block using the AlignmentMatrixControl: Plugin Block with width attribute set
Description
While updating the documentation for the
AlignmentControlMatrix
, I found that no matter what value I passed to thewidth
prop, the display was always the same.Step-by-step reproduction instructions
width
value to anything other than the default of 92Screenshots, screen recording, code snippet
I created a simple plugin with the following code to render the control:
As you can see in the screenshot, the value is passed to the markup but the default value ( 92 ) is overriding the styles.
Environment info
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