Skip to content

[Bug]: $border-subtle is using previous step's valueΒ #14597

Closed

Description

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.

image

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.

image image

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Type

No type

Projects

  • Status

    βœ… Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions