-
Notifications
You must be signed in to change notification settings - Fork 645
Add align='right' prop to SelectMenu.Modal #800
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
Conversation
|
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/primer/primer-components/g7t73yoo4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems reasonable to me! 👍 One doc change and a fix to propTypes in suggestions below.
Co-authored-by: Michelle Tilley <binarymuse@github.com>
Adds support for aligning the menu of a
SelectMenuwith the right side of the button. This functionality exists currently in Primer/CSS (https://primer.style/css/components/select-menu#right-aligned), so this PR brings Primer/Components up to feature parity.The implementation is the same as the one in Primer/CSS, where a container should have
position: relativein order to align the absolutely positioned modal properly.Closes #795
Screenshots
Please provide before/after screenshots for any visual changes
Merge checklist
index.d.ts) if necessaryTake a look at the What we look for in reviews section of the contributing guidelines for more information on how we review PRs.