-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AlignmentMatrixControl: Fix width
bug
#43482
Conversation
Size Change: +2 B (0%) Total Size: 1.24 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix!
I have confirmed that the changes to the width control are reflected correctly in both Canvas and Docs.
Additionally, the component is used as __experimentalBlockAlignmentMatrixControl
in the cover block.
But it is internally doesn't accept the prop in the first place, so the block editor should not be affected at all.
a49132e
to
9ede621
Compare
Follow-up to #43438
What?
Fixes a mistake that passed the public
width
prop to a wrong internal prop, making thewidth
prop non-functional.Why?
The
width
prop in AlignmentMatrixControl likely never worked, since this only gives the underlyingdiv
awidth
attribute. The underlying Emotion component (Root
) is clearly designed to take asize
prop, so we can pretty confidently say this is the original intent.For what it's worth, there are no specific mentions of this part in the original PR (#21091).
Testing Instructions
npm run storybook:dev
width
control.