Skip to content

Conversation

@jonrohan
Copy link
Member

@jonrohan jonrohan commented Mar 3, 2022

What are you trying to accomplish?

I'm adding a white-space: nowrap rule to our .Label component to fix an issue where labels can wrap when containing two words.

Before After
image image

What approach did you choose and why?

I don't think we'd ever want our labels to wrap like that, but if someone can think of a place let me know.

Are additional changes needed?

  • No, this PR should be ok to ship as is. 🚢

@jonrohan jonrohan requested a review from a team as a code owner March 3, 2022 16:38
@jonrohan jonrohan requested a review from simurai March 3, 2022 16:38
@changeset-bot
Copy link

changeset-bot bot commented Mar 3, 2022

🦋 Changeset detected

Latest commit: 4887a32

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/css Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@jonrohan jonrohan merged commit 80bf9d9 into main Mar 3, 2022
@jonrohan jonrohan deleted the white-space-labels branch March 3, 2022 23:55
@primer-css primer-css mentioned this pull request Mar 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants