Skip to content

How do I mix EuiHighlight and EuiCode now that both expect strings? #2437

@bevacqua

Description

@bevacqua

Used to have this:

<EuiCode>
  <EuiHighlight search='ce9'>abce9d</EuiHighlight>
</EuiCode>

But now EuiCode complains about not having a string passed as children. Similar but different use case:

<EuiCode>
  <del>abce9d</del>
</EuiCode>

We had to swap EuiCode and del in this case, and that causes the strikethrough text to extend past the boundaries of the EuiCode box, which isn't as clean as it was before in terms of look & feel

Metadata

Metadata

Assignees

Labels

No labels
No labels

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