Skip to content
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 theme: Base button text is not visible #38113

Closed
3 tasks done
Tracked by #37549
romaricpascal opened this issue Feb 24, 2023 · 0 comments · Fixed by #38115
Closed
3 tasks done
Tracked by #37549

Dark theme: Base button text is not visible #38113

romaricpascal opened this issue Feb 24, 2023 · 0 comments · Fixed by #38115

Comments

@romaricpascal
Copy link
Member

Prerequisites

Describe the issue

The text of buttons using only the .btn class is not visible when using the dark theme.

Screenshot from 2023-02-24 14-55-56

Looking at the code, there's nothing that redefines --bs-btn-color back to the body color when switching themes, and on top of that, it's the .btn class that defines the --bs-btn-color so overrides any value we'd set in :root.

Reduced test cases

Run the documentation with npm run docs:serve and navigate to http://localhost:9001/docs/5.3/components/buttons/. The first example showing the base button will have no visible text.

What operating system(s) are you seeing the problem on?

Linux

What browser(s) are you seeing the problem on?

Firefox

What version of Bootstrap are you using?

5.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants