Skip to content
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

Layer component / contextual tokens #1220

Closed
gregorw opened this issue Apr 2, 2022 · 1 comment
Closed

Layer component / contextual tokens #1220

gregorw opened this issue Apr 2, 2022 · 1 comment
Labels
v11 Carbon v11 feature

Comments

@gregorw
Copy link
Contributor

gregorw commented Apr 2, 2022

In v11 Carbon Design System introduced contextual tokens. This is something we wanted to use before using Svelte components. This would make the light prop obsolete.

What it means is that we added a Layer component as described in the link above.

<Layer>
  <ChildComponent />
  <Layer>
    <ChildComponent />
    <Layer>
      <ChildComponent />
    </Layer>
  </Layer>
</Layer>

I'm not exactly sure how hard it would be. It probably requires to use contextual tokens in most of the components. I also wonder whether there is any interference with inline theming and the Theme component.

@gregorw
Copy link
Contributor Author

gregorw commented May 5, 2022

See #1253

@gregorw gregorw closed this as completed May 5, 2022
@metonym metonym added the v11 Carbon v11 feature label May 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v11 Carbon v11 feature
Projects
None yet
Development

No branches or pull requests

2 participants