Skip to content

Use CSS contrast-color() instead of custom JavaScript #50

@jdreesen

Description

@jdreesen

We currently use some JavaScript to calculate the contrast color for the additional property text.

Browsers are starting to implement the new contrast-color() CSS function, which does exactly this.

We should probably use this instead of our custom JavaScript if it's available (both are based on the same algorithm).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions