-
Notifications
You must be signed in to change notification settings - Fork 856
[Visual Refresh] Shadow tokens #8880
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
base: eui-theme/borealis-v2-poc
Are you sure you want to change the base?
[Visual Refresh] Shadow tokens #8880
Conversation
based on spec https://www.figma.com/design/FHys7gLzyvD1gc9DrJM6D8/Elastic-UI--Borealis-?node-id=8222-4311&t=0YSfDbFLOkB0xZmj-0 Amsterdam values will be added later
in helper function that will probably get removed, but well
this was not returning a value according to the new spec
Amsterdam stays as is
via modify prop in EuiThemeProvider
💚 Build SucceededHistory
cc @acstll |
💚 Build Succeeded
History
cc @acstll |
There is an issue with dark mode in I'm working on removing this extra border for dark mode but it's not straightforward because of the many moving parts (Borealis/Amsterdam, accessibility, color mode, shadow/border props). Edit: solving the double-border-in-dark-mode issue is not straightforward. I'm putting that on hold until we understand the problem better. |
Summary
Implements https://github.com/elastic/eui-private/issues/195
Important
This PR targets a feature branch!
Docs draft: https://eui.elastic.co/pr_8880/docs/getting-started/theming/tokens/shadows/
Changes
flat
token to keepeuiShadowFlat
unchangedflat
falls back toxs
tokens as SCSSand update SCSS mixins 25ed168euiSlightShadowHover
euiShadowFlat
EuiShadowOptions.color
EuiShadowCustomColor
Added unit test toensure overrides in theme.modify work as expected c3b2896Why are we making this change?
This is part of the Visual Refresh project.
Screenshots
N/A
Impact to users
No impact for users. The visual aspect of shadows is slightly different.
QA
Remove or strikethrough items that do not apply to your PR.
General checklist
Checked in both MacOS and Windows high contrast modes(emulate forced colors if you do not have access to a Windows machine.)Checked in mobileChecked for accessibility including keyboard-only and screenreader modes@default
if default values are missing) and playground togglesChecked Code Sandbox works for any docs examplesA changelog entry exists and is marked appropriately.If 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)