-
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
Import Dropdown component; add dark variants for dropdown and text fields #862
Conversation
Co-Authored-By: Shawn Allen <[email protected]>
This pull request is automatically deployed with Now. Latest deployment for this branch: https://primer-css-git-input-dark.primer.now.sh |
We're punting this from 12.6 and putting in the next release |
<details> is now recommended.
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.
Merged in master to test and with the changes from doctocat, the dropdown styles from Primer CSS get overridden by the dropdown styles from styleguide.css.
Maybe it's ok to just switch the source order? I'll make a separate PR for that. Edit: 👉 PR #869
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.
Changes LGTM.. 👍
Something we might wanna consider: Temporarily adding input-dark
and dropdown-menu-dark
as a "/hack" instead of officially introduce them to Primer CSS. Because if/when we add support for dark mode, all components would need a dark version and we might not do that by adding *-dark
modifier classes to all components?
Yeah, I think of this change as a hack too. When we're ready to support dark mode more generally, we can deprecate the dark-specific selectors — unless there's some possibility that we'd want to allow folks to "manually" toggle dark mode for individual components? 🤔 |
As of 6964be2, this will have the following impacts on CSS bundles:
(As seen in the publish logs) |
@vdepizzol the other thing I noticed when poking around on the docs page (which was probably broken before you started working on this): we need to probably need to wrap all of the examples in a after: To fix the north-oriented ones, you could insert an empty |
@shawnbot just fixed all examples in the dropdown page! |
Awesome! It looks like the but that's also the case in production, so 🤷♀
|
@shawnbot yeah, I also noted this. The spacings for |
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.
Okay, this looks great; let's ship it! 🚢 🚀 🤘
(This PR is based on #853, but created from a local branch instead of a fork, as suggested by @shawnbot)
input-dark and dropdown-menu-dark are two new classes that are added on top of the existing markup to request a dark variation.
This fixes github/design-systems#669, closes #566.
/cc @primer/ds-core