-
Notifications
You must be signed in to change notification settings - Fork 882
FE: Add dark mode view to storybook #43469
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -69,3 +69,9 @@ | |||||||||
| margin-top: 1px; | ||||||||||
| } | ||||||||||
| } | ||||||||||
|
|
||||||||||
| // Override the chevron icon stroke to inherit the button's text color | ||||||||||
| // so it adapts correctly in dark mode | ||||||||||
| .dropdown-button .icon svg path { | ||||||||||
| stroke: currentColor; | ||||||||||
|
Comment on lines
+75
to
+76
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Target the actual chevron markup here.
Suggested fix-.dropdown-button .icon svg path {
- stroke: currentColor;
+.dropdown-button svg path {
+ stroke: currentcolor;
}📝 Committable suggestion
Suggested change
🧰 Tools🪛 Stylelint (17.6.0)[error] 76-76: Expected "currentColor" to be "currentcolor" (value-keyword-case) (value-keyword-case) 🤖 Prompt for AI Agents |
||||||||||
| } | ||||||||||
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.
withThemecallsuseEffect, but the function name is lowercase. Withplugin:react-hooks/recommendedenabled, this violatesreact-hooks/rules-of-hooks(hooks must be called from a React component or custom hook). Rename the decorator to an uppercase component name (e.g.,WithTheme) or move the effect into a properly named custom hook, so lint/build doesn’t fail.