-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[Bug]: $border-subtle is using previous step's value #14597
Comments
Hey @carbon-design-system/design can you guys help with that one? Please Looks like the background is being paried with the wrong border-subtle. In this file it's saying we should pair the Here a PR to clarify the combination: #12355 |
It's definitely a weird issue, since |
Here's some next steps we discussed today as a team:
|
@tay1orjones Here's a stackblitz demo: https://stackblitz.com/edit/github-tysskn?file=src%2FApp.jsx The demo element is using |
The current implementation #15415, while functional, is a workaround that doesn't address the underlying issue. In fact, it creates a discrepancy between code and design and is problematic for those building upon the Carbon Design System, as it requires the implementation of a similar workaround. The root cause appears to be that the What I believe needs to be done is to change the implementation of |
Package
@carbon/styles
Browser
No response
Package version
1.37.0
React version
No response
Description
It seems like the $border-subtle tokens are always one step behind compared to the rest of the layering tokens.
This means that a UI element with a $layer-02 background will be paired with a $border-subtle-01 border. In the dark themes, these two values are the same though, resulting in the border being invisible.
Reproduction/example
https://stackblitz.com/edit/github-recj8l?file=src%2FApp.jsx
Steps to reproduce
see above
Suggested Severity
None
Application/PAL
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: