elastic / elastic/eui

[EuiCodeBlock] Update the annotation to be `leftCenter`

Open
#9,023 2 comments 0 reactions 0 assignees View on GitHub
low hanging fruit
Dominant language
TypeScript
Stars
6.4k
Forks
911
Avg merge
2d 11h
Merged PRs (30d)
65

Description

**Problem Statement**

If there is a horizontal space available, we don't want annotations to overlap the code.

**Proposed Solution**

| Current ([docs](https://eui.elastic.co/docs/components/display/code/#line-numbers)) | Desired |
|---------|---------|
| Image | Image |

If the space allows, we want the annotation to be `leftCenter`. If there is not enough horizontal space, we want it to default to `downLeft`.

**Use Case**

This was raised by an internal user, AutoOps.

**Value / Impact**

The value is **low** and the impact is **low**. It wouldn't be a breaking change.

**Urgency**

There is **no urgency**. It doesn't block any feature.

**Do alternatives or workarounds exist?**

There are no workarounds available.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.