chore: add auto refactor script and run to replace with-layer template -> with-layers decorator#21726
Conversation
✅ Deploy Preview for v11-carbon-react ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for v11-carbon-web-components ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for v11-carbon-react ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for v11-carbon-web-components ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #21726 +/- ##
==========================================
- Coverage 94.84% 94.81% -0.03%
==========================================
Files 535 535
Lines 43636 43636
Branches 6259 6259
==========================================
- Hits 41388 41375 -13
- Misses 2115 2128 +13
Partials 133 133
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Screen.Recording.2026-03-09.at.10.13.15.AM.movthis also fixes this |
Screen.Recording.2026-03-09.at.10.15.00.AM.movfixes this too |
|
isolates code Screen.Recording.2026-03-09.at.10.16.57.AM.mov |
|
handles this too Screen.Recording.2026-03-09.at.10.27.48.AM.mov |
with-layer template -> with-layers decorator
…s://github.com/devadula-nandan/carbon into refactor-alternate-storybook-layering-approach
|
opened contained list layering issue in a parity issue |
da29e77
…ate -> `with-layers` decorator (carbon-design-system#21726) * chore: add auto refactor script and run * chore: delete script file * chore: remove old layer template * chore: remove comment * chore: update copyright date * refactor: move styles to scss file * revert: previous copyright years --------- Co-authored-by: Heloise Lui <71858203+heloiselui@users.noreply.github.com>
closes #20095
Replaces the
sb-template-layerscustom element with a simplerwithLayersStorybook decorator across 17 web component stories.This also helps with isolating story code in code tab
Removes all the side effects and makes it simple, no observers attached on the story root.
fixes controls not shared among layers.
isolates component states so they wont effect other clones instances
BOB assist +1 on generating node refactoring script
Changelog
New
with-layers.tsstory decorator with no side effects/orchestration and achieving same results.Removed
with-layer.tsweb component story templateTesting / Reviewing
verify in web-components storybook all 17 layer stories work as expected.
PR Checklist
As the author of this PR, before marking ready for review, confirm you:
More details can be found in the pull request guide