Skip to content

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%)

@github-actions github-actions bot temporarily deployed to storybook-preview-4738 July 15, 2024 02:26 Inactive
@@ -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

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