Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(storybook): incorrect use of theme mixin (#12145)
### Related Ticket(s) No ticket. Just quick clean up that I couldn't unsee. ### Description The use of the `theme.theme` mixin from the `@carbon/styles` package (which is forwarded from `@carbon/themes`) was incorrect. The [second argument is meant to be a map of component tokens](https://github.com/carbon-design-system/carbon/blob/main/packages/themes/scss/_theme.scss#L28). We [already add the set of component tokens we want as includes](https://github.com/carbon-design-system/carbon-for-ibm-dotcom/blob/main/packages/web-components/.storybook/container.scss#L20-L22), and therefore don't need the second argument at all. As it was it produced a `--cds-true:;` CSS variable that was useless in the compiled CSS: ![image](https://github.com/user-attachments/assets/72f0342c-b10a-42f5-a183-019d6964a059) ### Changelog **Changed** - Fixed incorrect use of `theme.theme` mixin from `@carbon/styles` package <!-- React and Web Component deploy previews are enabled by default. --> <!-- To enable additional available deploy previews, apply the following --> <!-- labels for the corresponding package: --> <!-- *** "test: e2e": Codesandbox examples and e2e integration tests --> <!-- *** "package: services": Services --> <!-- *** "package: utilities": Utilities --> <!-- *** "RTL": React / Web Components (RTL) --> <!-- *** "feature flag": React / Web Components (experimental) -->
- Loading branch information