-
Notifications
You must be signed in to change notification settings - Fork 26
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
[chore-5471]: Change label color with newDesignDystem prop #2750
Conversation
src/components/Label/Label.test.tsx
Outdated
</Fragment> | ||
) | ||
) | ||
|
||
expect(screen.getByText('Label 1')).not.toHaveStyleRule('color', 'inherit') | ||
expect(screen.getByText('Label 2')).toHaveStyleRule('color', 'inherit') | ||
expect(screen.getByText('Label 2')).toHaveStyleRule('color', 'inherit') |
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.
Shouldn't this be label 3 ?
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.
sharp.
|
||
interface LabelProps { | ||
/** When true, will render the label with a plain font instead of a bold font */ | ||
inline?: boolean | ||
/** When false, the Label component will render as an inline-block element without the red header colour */ | ||
isGroupHeader?: boolean | ||
/** when true, a label is also black when rendered as group header */ | ||
isNewDesignSystem?: boolean |
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.
Will this be removed at some time in the future? Because the name (is NewDesignSystem) doesn't clue me in about group headers and that it's used for that. Right now I'm thinking this has something to do with the NL design styling.
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.
True. I referred to the new design system for now.
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.
The new design system maybe should have a version number or reference. Well looks good!
Good point. Referenced the new design system for now.
Ticket: SIG-5471
Changing color labels when design according to new design system