designsystemet
designsystemet copied to clipboard
`data-color` has no effect on Label
Version number
1.7.3
Description of the bug
Applying a color to Typography -> Label using data-color has no effect.
If this is intentional, the argument should be removed from the documentation as it creates some confusion.
Steps To Reproduce
- Go to Designsystemet's own Storybook
- Scroll down to the
Label-component - Change the value of
data-color - Observe the rendered label. No change.
Additional Information
The same behavior is observed when implemented in plain HTML.
Hi,
Label is classified as a "neutral" component, which means it won't change color unless you yourself add this functionality.
You can read more about colors in code here: https://designsystemet.no/no/fundamentals/code/colors
data-color is supported on all elements, not only Designsystemet-components.