Skip to content

Avoid using color: inherit #4355

Open
Open
@alizedebray

Description

The links and buttons, among others, are using color: inherit to reset the user agent styles.
However, this has an impact on the HCM colors where we then have to manually set the correct colors.

If we instead use the body color like so color: tokens.get('body-color'), then the colors are automatically overridden in HCM making the element easier to maintain.

See the difference here: https://codepen.io/alizedebray/pen/PwYmWZw?editors=1100

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    needs: refinement🍀 decisionMarks conversations where a decision has been made📦 stylesRelated to the @swisspost/design-system-styles package

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions