-
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
Use inline-block to limit label width to content #14478
Use inline-block to limit label width to content #14478
Conversation
4d38bf4
to
9a1db49
Compare
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.
Hi @sbardian thank you for your contribution.
I did a set of tests and I only found a small regression.
If you add a video block, you will verify the poster image button does not appear as expected.
I guess a possible solution is to add a display block to the poster image.
9a1db49
to
3fad50a
Compare
I have updated the poster control button to use |
@jorgefilipecosta let me know if you would like other updates, or can see/think of other issues this might cause? |
3fad50a
to
e6242b2
Compare
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.
Hi @sbardian, thank you for these changes it looks good to me.
I guess this change worths a note in the changelog https://github.com/WordPress/gutenberg//blob/6a26e3682ff79be3a031d283b6466a236f9748db/packages/components/CHANGELOG.md as an improvement under the last unreleased version.
e6242b2
to
cea2bc9
Compare
@jorgefilipecosta I have the notes added. Thanks! |
Hi @sbardian I tried to visually test this but whenever I checkout the branch the build fails. Could you rebase it with latest master in your fork? |
dc8f926
to
cea2bc9
Compare
cea2bc9
to
03c7ceb
Compare
Sorry for all the reviews on this. Only thing I can think of is history was rewritten in master at some point? Shouldn't have conflicts now. |
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, @sbardian!
Description
Closes #9612. Use
display: inline-block
instead ofdisplay: block
to limitBaseControl label
to width of the content of the label.How has this been tested?
npm run test
all tests successful.Screenshots
before:
after:
before:
after:
Types of changes
Bug fix (non-breaking change which fixes an issue)
Checklist: