Skip to content

Should [data-color] also set CSS color? #4851

@eirikbacker

Description

@eirikbacker

When changing data-color, the color prop is not set, meaning the parent color is inherited instead of the current --ds-color-text-default, resulting in issues like this (notice how the heading is still green):

Image

should we consider setting color: var(--ds-color-text-default) on all [data-color] definitions? 🤔

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    📥 Inbox

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions