-
Notifications
You must be signed in to change notification settings - Fork 338
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
fix: Add data-bs-theme attribute for user dark/light modes #1782
Conversation
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.
The file you're importing dataBsTheme
isn't included in the PR for some reason.
So confused rn.
Shouldn't just doing the correct bootstrap class name be enough? https://getbootstrap.com/docs/5.3/forms/form-control/#file-input |
This isn't Bootstrap JS; it's our own JS to add an additional attribute to a high-level element. There are a few things in Bootstrap CSS that depend on this attribute selector; for instance if you look in
Background SVG images can't have their colors modified by CSS, so the SVG markup itself has to be changed. This affects not just file upload buttons, but select menus as well. Here it is without And with: More info here: https://getbootstrap.com/docs/5.3/customize/color-modes/ |
Ah my bad. I'm used to seeing those data- selectors only for bootstrap javascript. |
@jsit It seems you have missed the compact theme 🙈 Tested on 0.18.1-RC10 |
Thank you! There's a fix for this already in the works. |
…ocus-1772 * lemmy/main: (25 commits) v0.18.1-rc.10 Attempt to fix inability to logout from some instances (subdomains) (LemmyNet#1809) feat(theme): Vaporwave (LemmyNet#1682) fix: Revert smaller text size (LemmyNet#1795) Updated the regex for isAuthPath to reduce false positive hits (LemmyNet#1806) fix: Add focus border to markdown toolbar buttons fix: Add data-bs-theme attribute for user dark/light modes (LemmyNet#1782) v0.18.1-rc.9 fix: Fix comment collapse and vote buttons not having focus style (LemmyNet#1789) Add missing modlog reasons (LemmyNet#1787) Fix search page breaking on initial load when logged in (LemmyNet#1781) feat: Add PR template (LemmyNet#1785) v0.18.1-rc.8 Fix profile loading spinner fix: Break text on post titles so long words don't overflow fix: Move getRoleLabelPill to the only component that uses it fix: Remove unused hasBadges() function fix: Fix badge alignment and break out into component fix: Fix up filter row gaps and margins a little fix: Fix heading levels ...
Fixes #1774
Before
After