Skip to content

EuiMark for highlighting text content #2085

@snide

Description

@snide

We have a lot of places in our layouts where we highlight text content. Principal examples are Discover and the Log UI but I'm sure there are more. We should probably make a new component EuiMark to standardize this.

  • Should prolly generate an HTML mark element. https://www.w3schools.com/tags/tag_mark.asp
  • Similar to EuiBadge should probably accept both a named color prop as well as a hex value. There are plans in the Logs UI to have multiple highlights (with color selection) in play at once.

This originally cam up in elastic/kibana#39569 (review)

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