Skip to content

[EuiIcon] Multi-color app icons don't respect custom color strings #4093

@cchaos

Description

@cchaos

EuiIcon allows coloring icons via any valid color string or by one of our named color strings that match the branding colors. The app style icons have 2 colors. One that is the inherited fill and the other which uses the class .euiIcon__fillSecondary to fill with a different color.

Our docs specify that passing the color prop will override both the basic fill and the secondary fill.

image

This works properly when the value of color that is passed is one of our named colors like primary or text:
Screen Shot 2020-10-01 at 13 06 30 PM

However, it doesn't properly work when passing a custom color string like a hex value or red:

Screen Shot 2020-10-01 at 13 07 11 PM

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions