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

SelectPanel2: Export props + pass props #4198

Merged
merged 6 commits into from
Feb 2, 2024

Conversation

siddharthkp
Copy link
Member

@siddharthkp siddharthkp commented Jan 30, 2024

Rollout strategy

  • Patch release

Testing & Reviewing

Merge checklist

@siddharthkp siddharthkp added the skip changeset This change does not need a changelog label Jan 30, 2024
Copy link

changeset-bot bot commented Jan 30, 2024

🦋 Changeset detected

Latest commit: 344b48b

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

@siddharthkp siddharthkp self-assigned this Jan 30, 2024
@siddharthkp siddharthkp removed the skip changeset This change does not need a changelog label Jan 30, 2024
@siddharthkp siddharthkp marked this pull request as ready for review January 30, 2024 19:11
@siddharthkp siddharthkp requested a review from a team January 30, 2024 19:11
Copy link
Contributor

github-actions bot commented Jan 30, 2024

size-limit report 📦

Path Size
dist/browser.esm.js 113.24 KB (0%)
dist/browser.umd.js 113.88 KB (0%)

@siddharthkp siddharthkp requested a review from joshblack January 31, 2024 09:44
@ayy-bc
Copy link
Contributor

ayy-bc commented Jan 31, 2024

@siddharthkp we would also need the SelectPanelSecondaryActionProps to be exported to use it with the item picker for cases where we need secondary actions (related: https://github.com/github/collaboration-workflows-flex/issues/423, https://github.com/github/github/pull/310856/files).

Do you want me to create another issue to track that or can that also go as a part of this PR?

@@ -250,6 +250,7 @@ const Panel: React.FC<SelectPanelProps> = ({
'100%': {transform: 'scale(1, 1)'},
},
}}
{...props}
Copy link
Contributor

Choose a reason for hiding this comment

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

@siddharthkp Does the typescript on props also allow StyledOverlay props to be passed through?

For context, I'm asking case where the prop maxHeight is needed to fix a styling issue with the overlay height: https://github.com/github/collaboration-workflows-flex/issues/449

<SelectPanel
      height="fit-content"
      maxHeight="large"
      ...
/>

Copy link
Member Author

Choose a reason for hiding this comment

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

Does the typescript on props also allow StyledOverlay props to be passed through?

Not yet!

I'm asking case where the prop maxHeight is needed to fix a styling issue with the overlay height: https://github.com/github/collaboration-workflows-flex/issues/449

That's an interesting issue, not sure if maxHeight is the solution. Going to reply on the issue first itself

@siddharthkp
Copy link
Member Author

@ayy-bc Sure thing, I can add them to this PR

Merged via the queue into main with commit 65bde27 Feb 2, 2024
30 checks passed
@siddharthkp siddharthkp deleted the draft-selectpanel-export-props branch February 2, 2024 19:33
@primer primer bot mentioned this pull request Feb 2, 2024
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.

5 participants