-
Notifications
You must be signed in to change notification settings - Fork 861
[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
[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
|
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. |
also add new hover token, and add inset for dark mode-only floating border layer
it does not work with the inset strategy for floating borders (currently we have no way to tell whether this affects performace at all)
This reverts commit d7918ee.
it's still needed because: - filter drop-shadow is needed because of the arrow and - filter drop-shadow does not support inset
💚 Build SucceededHistory
cc @acstll |
💚 Build Succeeded
History
cc @acstll |
|
@mgadewoll regarding adding
|
@acstll We might want to wait to implement colors until we decide on a solution, but regardless my thoughts on the points you brought up:
|
|
Closed in favor of #8962 🥳 |

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
flattoken to keepeuiShadowFlatunchangedflatfalls back toxstokens as SCSSand update SCSS mixins 25ed168euiSlightShadowHovereuiShadowFlatEuiShadowOptions.colorEuiShadowCustomColorAdded unit test toensure overrides intheme.modifywork as expected c3b2896After refactoring to (a) not expose values in theme object and (b) address double border issue
Important
If you pay attention to the commit history you'll notice we tried fixing the double border in dark mode issue by using
insetin the first layer ofbox-shadow, this didn't work as expected (f0e2a91)useEuiShadowhook instead of individual tokenstheme.modifywork as expectedWhy 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@defaultif 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)