Skip to content

[EuiBadge] Handle invalid color entry #3765

@thompsongl

Description

@thompsongl

Currently during color validation in EuiBadge, entries that are not valid chroma-js values will result in console errors (Uncaught Error: unknown format: #D) and will block rendering in the docs.

Invalid entries should be noted with console.warn but the exception should not have such adverse rendering effects.

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