-
Notifications
You must be signed in to change notification settings - Fork 4k
Add yellow to text/background/badge/divider color options
#12201
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
Conversation
🎉 Snyk checks have passed. No issues have been found so far.✅ security/snyk check is complete. No issues have been found. (View Details) ✅ license/snyk check is complete. No issues have been found. (View Details) |
✅ PR preview is ready!
|
1ce2b14 to
dbcb9ba
Compare
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.
custom_themed_app & sidebar_custom_theme snapshot updates result of rainbow gradient change in sidebar
| theme.colors[lightTheme ? "yellow80" : "yellow70"], | ||
| 0.9 | ||
| ), |
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 yellowbg background color uses a hardcoded transparency value of 0.9 instead of the conditional transparency pattern used by all other background colors. This breaks visual consistency between light and dark themes. Should be: lightTheme ? 0.9 : 0.7 to match the pattern used by redbg, bluebg, greenbg, and violetbg.
| theme.colors[lightTheme ? "yellow80" : "yellow70"], | |
| 0.9 | |
| ), | |
| theme.colors[lightTheme ? "yellow80" : "yellow70"], | |
| lightTheme ? 0.9 : 0.7 | |
| ), |
Spotted by Diamond
Is this helpful? React 👍 or 👎 to let us know.
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.
Note: this is intentionally different - the other colors will be reconciled with upcoming color config changes
Describe your changes
Advanced Theming: add additional color option -
"yellow"for the following::yellow[text here]):yellow-background[text here]):yellow-badge[text here]orst.badge("Badge", color="yellow"))st.header("Header", divider="yellow")orst.subheader("Subheader", divider="yellow"))Testing Plan