-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Added styles to the styled legends story #33246
base: master
Are you sure you want to change the base?
Conversation
Co-authored-by: Anush <[email protected]>
Co-authored-by: Anush <[email protected]>
…luentui into usr/atisjai/chartsV9
…luentui into usr/atisjai/chartsV9
packages/charts/react-charts-preview/library/src/components/Legends/Legends.tsx
Outdated
Show resolved
Hide resolved
@@ -1,5 +1,12 @@ | |||
import * as React from 'react'; | |||
import { Legend, Legends, getColorFromToken, DataVizPalette } from '@fluentui/react-charts-preview'; | |||
import { makeStyles } from '@griffel/react'; |
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.
use makestyles from react-components in stories file.
*/ | ||
className?: string; | ||
className?: LegendsStyles; |
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.
revert this change?
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.
We need to keep the type as LegendStyles so that the classNames can be applied to all the sub-components as well. Otherwise, it can be applied to root only.
Pull request demo site: URL |
Added styles to the styled legends story