-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Refresh SelectMenu #1064
Refresh SelectMenu #1064
Conversation
This pull request is being automatically deployed with ZEIT Now (learn more). 🔍 Inspect: https://zeit.co/primer/primer-css/567bgohgv |
There is now a "borderless" option by adding This also works with dividers. You can use it with text like
So adding |
There is now a disabled state for list items: Markup: <button class="SelectMenu-item">Item 1</button>
<button class="SelectMenu-item" disabled>Item 2 (disabled)</button>
<a class="SelectMenu-item" href="#">Item 3</a>
<a class="SelectMenu-item" aria-disabled="true">Item 4 (disabled)</a> There was some back and forth about having a disabled state for list items. In the docs there is the following note: "If not obvious, try to communicate to the user why an item is disabled." |
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.
Is the close icon now included on all versions or is it optional?
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 refreshes the SelectMenu 👀 Preview. Changes include:
32px
(excluding the border) to match other components.API changes
.SelectMenu-list--borderless
modifierdisabled
+aria-disabled="true"
list items/cc @primer/ds-core