Skip to content
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

Open
wants to merge 123 commits into
base: master
Choose a base branch
from

Conversation

srmukher
Copy link
Contributor

Added styles to the styled legends story
image

AtishayMsft and others added 30 commits May 6, 2024 10:37
@srmukher srmukher requested a review from a team as a code owner November 11, 2024 10:05
@AtishayMsft AtishayMsft requested review from AtishayMsft and removed request for a team November 11, 2024 10:26
@srmukher srmukher requested a review from a team as a code owner November 13, 2024 06:24
@@ -1,5 +1,12 @@
import * as React from 'react';
import { Legend, Legends, getColorFromToken, DataVizPalette } from '@fluentui/react-charts-preview';
import { makeStyles } from '@griffel/react';
Copy link
Contributor

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;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revert this change?

Copy link
Contributor Author

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.

Copy link

Pull request demo site: URL

Base automatically changed from usr/atisjai/chartsV9 to master November 14, 2024 02:55
@AtishayMsft AtishayMsft requested review from a team as code owners November 14, 2024 02:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants