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

PageHeader: Fix shrinking Actions sub component in Safari #4738

Merged
merged 2 commits into from
Jul 22, 2024

Conversation

broccolinisoup
Copy link
Member

@broccolinisoup broccolinisoup commented Jul 15, 2024

Internally reported on Slack. Team has a proposed solution at dotcom but it also works in the component, so I upstreamed the solution.

Please see the screenshot in the issue. (It is internally shared)

Changelog

New

  • Add min-width: 'max-content' to the Actions sub component to prevent Safari from shrinking the actions part of the PageHeader.

Changed

Removed

Rollout strategy

  • Patch release
  • Minor release
  • Major release; if selected, include a written rollout or migration plan
  • None; if selected, include a brief description as to why

Testing & Reviewing

Merge checklist

Copy link

changeset-bot bot commented Jul 15, 2024

🦋 Changeset detected

Latest commit: b2fdca3

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 github-actions bot added the staff Author is a staff member label Jul 15, 2024
Copy link
Contributor

github-actions bot commented Jul 15, 2024

size-limit report 📦

Path Size
packages/react/dist/browser.esm.js 91.18 KB (0%)
packages/react/dist/browser.umd.js 91.53 KB (0%)

@@ -577,7 +577,7 @@ const Actions: React.FC<React.PropsWithChildren<ChildrenPropTypes>> = ({
flexDirection: 'row',
paddingLeft: '0.5rem',
gap: '0.5rem',
flexGrow: '1',
Copy link
Member Author

Choose a reason for hiding this comment

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

flexGrow doesn't have any impact since the parent is grid. I removed this.

@broccolinisoup broccolinisoup changed the title PageHeader: Fix shrinking actions part in safari PageHeader: Fix shrinking Actions sub component in Safari Jul 15, 2024
Copy link
Member

@joshblack joshblack left a comment

Choose a reason for hiding this comment

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

Thanks for upstreaming this!

@primer-integration
Copy link

👋 Hi from github/github! Your integration PR is ready: https://github.com/github/github/pull/333695

@broccolinisoup broccolinisoup added this pull request to the merge queue Jul 22, 2024
Merged via the queue into main with commit 4532793 Jul 22, 2024
31 checks passed
@broccolinisoup broccolinisoup deleted the page-header-safari-fix branch July 22, 2024 01:19
@primer primer bot mentioned this pull request Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
staff Author is a staff member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants