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

Build out a Layer component as a replacement for the light prop #9185

Closed
Tracked by #13257 ...
joshblack opened this issue Jul 12, 2021 · 0 comments · Fixed by #9236
Closed
Tracked by #13257 ...

Build out a Layer component as a replacement for the light prop #9185

joshblack opened this issue Jul 12, 2021 · 0 comments · Fixed by #9236
Assignees

Comments

@joshblack
Copy link
Contributor

joshblack commented Jul 12, 2021

This work builds on top of the contextual tokens work that's been implemented for @carbon/styles. Layer will be a simple component that will be a replacement for the light prop. the way it works is that it will be a simple container that will render the cds--layer class name. This class name remaps any contextual tokens that are in play to the next step in their layer set.

// Before
<Dropdown light />

// After
<Layer>
  <Dropdown />
</Layer>

The Layer component can be configured to be any element type that the user wants.

This work should include usage documentation.

@joshblack joshblack mentioned this issue Jul 12, 2021
8 tasks
@joshblack joshblack changed the title Build out a Layer component as a replacement for the light prop, this should use our contextual token features from @carbon/styles Build out a Layer component as a replacement for the light prop Jul 12, 2021
@joshblack joshblack self-assigned this Jul 20, 2021
@kodiakhq kodiakhq bot closed this as completed in #9236 Jul 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant