Support right alignment in SelectMenu
See original GitHub issueThe SelectMenu
in Primer CSS supports aligning the modal with the button:
https://primer.style/css/components/select-menu#right-aligned
We should add a corresponding prop to SelectMenu.Modal
and possibly provide an example showing how to do so.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Right-align dropdown menu in select2 - Stack Overflow
As you want to have different sizes of the select and the dropdown, here is my solution using select2 built-in options and some...
Read more >Primer CSS Select Menu Right aligned - GeeksforGeeks
A select menu provides support for website navigation, filtering, etc. We can align the select menu to the right using SelectMenu right-* class....
Read more >How to Left-Align or Right-Align Folder Drop Downs | Will-Myers
Here are two css snippets to help you switch the default alignment of your main nav folder dropdowns items. Switch from left-aligned to ......
Read more >gui design - Should text-alignment of drop-down menus be left ...
I came across this right aligned text dropdown menu on eBay.com: While I'm sure I've seen this before, I've never contemplated the benefits....
Read more >How to right justify characters entered by drop-down list.
Hi,. You cannot do that with a dropdown menu. There may be a few people out there that will know how to mess...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think the only strong opinion I have is to not use any more
alignRight
style booleans, unless it really is a boolean state (likehidden
).align
orvariant
can be expanded easily,alignRight
can’t.It looks like
Tooltip
usesalign?: 'left' | 'right'
,UnderlineNav
usesalign?: 'right'
(justright
? maybe a TS bug?), andAvatarStack
usesalignRight?: boolean
.I couldn’t find an example where
variant
was used to handle alignment, but it doesn’t seem too far-fetched.In light of these examples, I think I’ll give a shot at
align?: 'left' | 'right'
which defaults to'left'
and we can see how that looks in the PR.Thanks @BinaryMuse !