Skip to content

Conversation

@mgadewoll
Copy link
Contributor

@mgadewoll mgadewoll commented Jun 20, 2025

Summary

This PR updates the current background color for EuiCode for light color mode.

Changes

  • adds new components.forms.codeInlineBackground token
    • uses shade15 #ECF1F9 / shade135 #172336 (light/dark)
  • updates EuiCode to use components.forms.codeInlineBackground instead of components.forms.codeBackground

Why are we making this change?

This change ensures that the inline EuiCode is visible on the backgroundBaseSubdued and backgroundBaseHighlighted which are used for container backgrounds.

Screenshots

before after
Screenshot 2025-06-20 at 15 13 45 Screenshot 2025-06-20 at 15 13 51

Impact to users

🟢 There are no required changes on consumer side due to this update.

QA

📖 EuiCode docs

  • ensure the EuiCode component has the expected new background color #ECF1F9 in light mode and uses #172336 in dark mode

General checklist

  • Browser QA
    • Checked in both light and dark modes
    • Checked in both MacOS and Windows high contrast modes
    • Checked in mobile
    • Checked in Chrome, Safari, Edge, and Firefox
    • Checked for accessibility including keyboard-only and screenreader modes
  • Docs site QA
  • Code quality checklist
  • Release checklist
    • A changelog entry exists and is marked appropriately.
    • If applicable, added the breaking change issue label (and filled out the breaking change checklist)
  • Designer checklist
    • If applicable, file an issue to update EUI's Figma library with any corresponding UI changes. (This is an internal repo, if you are external to Elastic, ask a maintainer to submit this request)

@mgadewoll mgadewoll self-assigned this Jun 20, 2025
@mgadewoll mgadewoll requested a review from ek-so June 20, 2025 13:32
@mgadewoll mgadewoll marked this pull request as ready for review June 20, 2025 13:53
@mgadewoll mgadewoll requested a review from a team as a code owner June 20, 2025 13:53
@mgadewoll mgadewoll changed the title [VisualRefresh][EuiCode] Update background color [Visual Refresh][EuiCode] Update background color Jun 26, 2025
@weronikaolejniczak weronikaolejniczak self-requested a review June 26, 2025 12:31
@mgadewoll mgadewoll force-pushed the code/update-background-color branch from c4e00ae to 16605fa Compare June 26, 2025 12:38
@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

cc @mgadewoll

Copy link
Contributor

@weronikaolejniczak weronikaolejniczak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested the changes in the staging docs, specifically Inline example

backgroundBasePlain backgroundBaseSubdued backgroundBaseHighlighted
light mode (rgb(236, 241, 249) > #ECF1F9 - not #F6F9FC ❌) Screenshot 2025-06-26 at 14 48 32 Screenshot 2025-06-26 at 14 38 46 Screenshot 2025-06-26 at 14 53 07
dark mode (rgb(23, 35, 54) > #172336 ✅) Screenshot 2025-06-26 at 14 48 52 Screenshot 2025-06-26 at 14 49 27 Screenshot 2025-06-26 at 14 52 23
Dev tools

Light mode

Screenshot 2025-06-26 at 14 54 14

Dark mode

Screenshot 2025-06-26 at 14 56 55

The light mode seems a tiny bit different? 🤔

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

cc @mgadewoll

@mgadewoll
Copy link
Contributor Author

The light mode seems a tiny bit different? 🤔

@weronikaolejniczak Thanks for noticing that! Turns out I simply can't copy the right color value 🙈
The color value is actually correct, as shade15 in light mode should be #ECF1F9.

Screenshot 2025-06-26 at 15 22 53

Copy link
Contributor

@weronikaolejniczak weronikaolejniczak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🟢 Thank you, Lene 😄

@mgadewoll mgadewoll merged commit aca1973 into elastic:main Jun 26, 2025
5 checks passed
tkajtoch added a commit to elastic/kibana that referenced this pull request Jul 2, 2025
`104.0.2` ⏩ `104.1.0`

[Questions? Please see our Kibana upgrade
FAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)

## Package updates

### `@elastic/eui`

#### [`v104.1.0`](https://github.com/elastic/eui/releases/v104.1.0)

- Added new component token `components.forms.codeInlineBackground`
([#8813](elastic/eui#8813))
- Updated background color for `EuiCode` to use
`components.forms.codeInlineBackground`
([#8813](elastic/eui#8813))
- Added `noItemsMessage` prop to `EuiInMemoryTable`
([#8812](elastic/eui#8812))
- Added prop `delimiter` on `EuiDatePickerRange`
([#8810](elastic/eui#8810))

**Bug fixes**

- Fixed an issue with `EuiSuperDatePicker` where toggling
`isQuickSelectOnly` would cause a full re-render when the selected range
uses absolute dates ([#8810](elastic/eui#8810))

**Deprecations**

- Deprecated `message` prop in `EuiInMemoryTable` in favor of
`noItemsMessage` which is a more meaningful prop name; there are no
functional changes ([#8812](elastic/eui#8812))

### `@elastic/eui-theme-borealis`

#### [`v3.1.0`](https://github.com/elastic/eui/releases/v3.1.0)

- Added new component token `components.forms.codeInlineBackground`
([#8813](elastic/eui#8813))
kertal pushed a commit to kertal/kibana that referenced this pull request Jul 25, 2025
`104.0.2` ⏩ `104.1.0`

[Questions? Please see our Kibana upgrade
FAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)

## Package updates

### `@elastic/eui`

#### [`v104.1.0`](https://github.com/elastic/eui/releases/v104.1.0)

- Added new component token `components.forms.codeInlineBackground`
([elastic#8813](elastic/eui#8813))
- Updated background color for `EuiCode` to use
`components.forms.codeInlineBackground`
([elastic#8813](elastic/eui#8813))
- Added `noItemsMessage` prop to `EuiInMemoryTable`
([elastic#8812](elastic/eui#8812))
- Added prop `delimiter` on `EuiDatePickerRange`
([elastic#8810](elastic/eui#8810))

**Bug fixes**

- Fixed an issue with `EuiSuperDatePicker` where toggling
`isQuickSelectOnly` would cause a full re-render when the selected range
uses absolute dates ([elastic#8810](elastic/eui#8810))

**Deprecations**

- Deprecated `message` prop in `EuiInMemoryTable` in favor of
`noItemsMessage` which is a more meaningful prop name; there are no
functional changes ([elastic#8812](elastic/eui#8812))

### `@elastic/eui-theme-borealis`

#### [`v3.1.0`](https://github.com/elastic/eui/releases/v3.1.0)

- Added new component token `components.forms.codeInlineBackground`
([elastic#8813](elastic/eui#8813))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants