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

[chore-5471]: Change label color with newDesignDystem prop #2750

Merged
merged 2 commits into from
Nov 9, 2023

Conversation

vdegraaf
Copy link
Contributor

@vdegraaf vdegraaf commented Nov 9, 2023

Ticket: SIG-5471

Changing color labels when design according to new design system

</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')
Copy link
Contributor

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 ?

Copy link
Contributor Author

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

@SireeKoolenWijkstra SireeKoolenWijkstra Nov 9, 2023

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.

Copy link
Contributor Author

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.

Copy link
Contributor

@OscarBakker OscarBakker left a 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.

@vdegraaf vdegraaf merged commit cc20a52 into main Nov 9, 2023
6 of 7 checks passed
@vdegraaf vdegraaf deleted the chore/filter-overview-styling branch November 9, 2023 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants