-
Notifications
You must be signed in to change notification settings - Fork 860
[Visual Refresh][EuiCode] Update background color #8813
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Visual Refresh][EuiCode] Update background color #8813
Conversation
- adds new components.forms.codeInlineBackground token
c4e00ae to
16605fa
Compare
💚 Build SucceededHistory
cc @mgadewoll |
weronikaolejniczak
left a comment
There was a problem hiding this 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 ❌) |
![]() |
![]() |
![]() |
dark mode (rgb(23, 35, 54) > #172336 ✅) |
![]() |
![]() |
![]() |
The light mode seems a tiny bit different? 🤔
💚 Build Succeeded
History
cc @mgadewoll |
@weronikaolejniczak Thanks for noticing that! Turns out I simply can't copy the right color value 🙈 |
weronikaolejniczak
left a comment
There was a problem hiding this 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 😄
`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))
`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))









Summary
This PR updates the current background color for
EuiCodeforlightcolor mode.Changes
components.forms.codeInlineBackgroundtoken#ECF1F9/ shade135#172336(light/dark)EuiCodeto usecomponents.forms.codeInlineBackgroundinstead ofcomponents.forms.codeBackgroundWhy are we making this change?
This change ensures that the inline
EuiCodeis visible on thebackgroundBaseSubduedandbackgroundBaseHighlightedwhich are used for container backgrounds.Screenshots
Impact to users
🟢 There are no required changes on consumer side due to this update.
QA
📖 EuiCode docs
EuiCodecomponent has the expected new background color#ECF1F9in light mode and uses#172336in dark modeGeneral checklist
Checked in both MacOS and Windows high contrast modesChecked in mobileChecked for accessibility including keyboard-only and screenreader modesAdded documentationProps have proper autodocs (using@defaultif default values are missing) and playground togglesChecked Code Sandbox works for any docs examplesAdded or updated jest and cypress testsIf applicable, added the breaking change issue label (and filled out the breaking change 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)