-
Notifications
You must be signed in to change notification settings - Fork 147
docs(dark-theme-handbook): Adds guidance for images and charts. #4402
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
mcoker
left a comment
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.
Left some comments, but they're just nits - I think it's fine as it is, too 👍👍
packages/documentation-site/patternfly-docs/content/developer-resources/dark-theme-handbook.md
Show resolved
Hide resolved
|
|
||
| The [PatternFly React charts package](https://www.npmjs.com/package/@patternfly/react-charts) uses default style values that align with our light theme. In order to support dark-themed charts, you must import the stylesheet that contains dark theme styles by adding the following line to the top of your file: | ||
|
|
||
| `import '@patternfly/patternfly/patternfly-charts.css';` |
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.
This LGTM but I'll say I'm not sure if we have standard verbiage for how to import an asset like that? Specifically these 2 points:
- "adding the following line to the top of your file" - not sure if that's clear as to where it needs to go? I found this in the repo docs about how to add PF CSS to your react app - I'm assuming the charts CSS would be imported either in the same place or using similar language.
- This implies users have the
@patternfly/patternflypackage installed, which isn't needed for a react app by default, so not sure if it's worth calling that out? If so it would be similar to the linked page above in the setup section with thenpm installandyarn addcommands.
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.
interesting points! I'll add a line for that first point similar to what you linked. For the second, wdyt about linking to https://www.patternfly.org/get-started/develop#develop-with-htmlcss?
…resources/dark-theme-handbook.md Co-authored-by: Michael Coker <35148959+mcoker@users.noreply.github.com>
packages/documentation-site/patternfly-docs/content/developer-resources/dark-theme-handbook.md
Outdated
Show resolved
Hide resolved
…resources/dark-theme-handbook.md
mcoker
left a comment
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.
🤘🐸👍
Closes #3682 and #4237