Skip to content

[EuiCodeBlock] Support different highlight and annotations colours #7629

Closed as not planned
@machadoum

Description

@machadoum

Is your feature request related to a problem? Please describe.
We want to highlight lines with warnings and errors on a CSV file uploader.

Screenshot 2024-03-28 at 11 03 55

Describe the solution you'd like
Allow EuiCodeBlock component lineNumbers.highlight and lineNumbers.annotations colour customization.

Describe alternatives you've considered
We don't need advanced colour customization for our use case, so it would be fine if EuiCodeBlock only allows us to set the colour from a small subset, such as 'info' | 'warning' | 'error'.

Desired timeline
Our goal is to deliver the feature on April 16, 2024. Given the short notice, we may need to simplify the design.

Metadata

Metadata

Assignees

Labels

Stale(Don't delete - used for automation)design decisionUse this to flag an item that needs input from the design team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions