Skip to content
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

[Bug] Remove flex from Button labels #3613

Merged
merged 6 commits into from
Aug 14, 2023
Merged

[Bug] Remove flex from Button labels #3613

merged 6 commits into from
Aug 14, 2023

Conversation

langermank
Copy link
Contributor

@langermank langermank commented Aug 9, 2023

Removes flex from Button labels, which causes some visual regressions for Buttons that have spans wrapping text. Flex is only needed here for buttons with counters, which has been refactored in the next major. If the visual regressions to counter alignment seem manageable for the next month or so, we should merge this PR.

Closes #3612

Screenshots

Please provide before/after screenshots for any visual changes

Merge checklist

  • Added/updated tests
  • Added/updated documentation
  • Changes are SSR compatible
  • Tested in Chrome
  • Tested in Firefox
  • Tested in Safari
  • Tested in Edge

Take a look at the What we look for in reviews section of the contributing guidelines for more information on how we review PRs.

@changeset-bot
Copy link

changeset-bot bot commented Aug 9, 2023

🦋 Changeset detected

Latest commit: de6985f

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

This PR includes changesets to release 1 package
Name Type
@primer/react 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

@github-actions
Copy link
Contributor

github-actions bot commented Aug 9, 2023

size-limit report 📦

Path Size
dist/browser.esm.js 103.66 KB (-0.01% 🔽)
dist/browser.umd.js 104.22 KB (-0.01% 🔽)

@langermank langermank temporarily deployed to github-pages August 9, 2023 18:55 — with GitHub Actions Inactive
@github-actions github-actions bot temporarily deployed to storybook-preview-3613 August 9, 2023 18:55 Inactive
@primer primer bot temporarily deployed to github-pages August 9, 2023 19:01 Inactive
@github-actions github-actions bot temporarily deployed to storybook-preview-3613 August 9, 2023 19:02 Inactive
@langermank langermank marked this pull request as ready for review August 10, 2023 15:13
@langermank langermank requested review from a team and mperrotti August 10, 2023 15:13
@github-actions github-actions bot temporarily deployed to storybook-preview-3613 August 10, 2023 15:20 Inactive
@langermank langermank temporarily deployed to github-pages August 10, 2023 15:21 — with GitHub Actions Inactive
@github-actions github-actions bot temporarily deployed to storybook-preview-3613 August 10, 2023 15:21 Inactive
Copy link
Member

@siddharthkp siddharthkp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While this does create a tiny tiny visual regression, we had only recently fixed this visual bug in 35.27.0, so happy to go back on that if it's other more problems

@github-actions github-actions bot temporarily deployed to storybook-preview-3613 August 14, 2023 16:06 Inactive
@langermank langermank added this pull request to the merge queue Aug 14, 2023
Merged via the queue into main with commit dbcd407 Aug 14, 2023
30 checks passed
@langermank langermank deleted the remove-button-flex branch August 14, 2023 16:35
@primer-css primer-css mentioned this pull request Aug 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Changes to Button display cause white space in text to collapse
3 participants