-
-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
Selected sidebar item doesn't respect theme colors #6335
Comments
I looked into this issue a bit. As you see in the The
I don't think option 1 is the best solution as it will change the look of the site quite a bit by inferring Is there a particular reason why the underlying theme properties aren't customisable? Or am i totally wrong here by saying that it is not customisable? I get that it is convenient for creating themes that have a consistent style, but the option would be nice. Since this is my first time fixing an issue for storybook i would like some input before moving forward. |
It seems like it should use the inverseText theme property or a new property all together. |
When #6806 drops we'll support full custom theme options, including this property. |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
Describe the bug
Setting
theme.color.lightest
andtheme.color.inverseText
doesn't impact the color of selected items in the sidebar (they remain #FFFFFF regardless)From the sidebar component, it looks like
theme.color.lightest
should effectively color the component but it it looks like it is overridden bydiv#accordion--skeleton
for some reason.https://github.com/storybooks/storybook/blob/a28c59592ee5d43152b684958ee83b8fc55adbcd/lib/ui/src/components/sidebar/SidebarItem.js#L73
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The selected item should have text according to the theme value that is used in the sidebar item component when selected (
theme.color.lightest
)Screenshots

If applicable, add screenshots to help explain your problem.
Code snippets
System:
Additional context
Trying to use a lighter secondary color for the selected items but finding it impossible to change the color of the selected items.
The text was updated successfully, but these errors were encountered: