-
Notifications
You must be signed in to change notification settings - Fork 54
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
Dark mode: accordions #2259
Dark mode: accordions #2259
Conversation
✅ Deploy Preview for boosted ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
15f46ad
to
2ead11f
Compare
2ead11f
to
69b1020
Compare
Dark variant seems to be as before, however, the text color inside for the code sample isn't the right one. It's because we removed the Maybe we should drop the dark variants as Bs and maintain only the local dark mode. |
This section of the page is a bit confusing to me 🤔 First, having both tags Then it's written that It sounds understandable when you know the subject and the way we work on color modes but from a simple user perspective it may look a bit weird and confusing. Especially for people with attention disorder for instance. |
a24aa8f
to
0fc537b
Compare
I tried something in ed5bf75. Dark variant retro compatibilityI've reintroduced our root rules for dark variants in :not([data-bs-theme="dark"]) {
[class*="bg-black"],
[class*="-dark"]:not(.border-dark):not(.text-dark):not(.btn-dark):not(.focus-ring-dark):not(.link-underline-dark):not(.link-dark),
[class*="bg-secondary"] {
}
} but it's now scoped with a It should allow the following mapping:
IDK TBH if it's going to be feasible for all our components but maybe but can try it. Dark variant deprecation
|
Note: Please transform
- [ ]
into- (NA)
in the description when things are not applicableRelated issues
#2223.
Description
Adding the accordion as dark variant
I didn't mention any migration note or w/ever, maybe we should think about a section or something to put everything related to dark mode ?
Motivation & Context
Moving forward on dark theme components.
Types of change
Live previews