docs(button-group): consumer migration guide from sp- to swc-#6335
docs(button-group): consumer migration guide from sp- to swc-#6335Rajdeepc wants to merge 1 commit into
Conversation
Covers tag rename, breaking API changes (vertical → orientation, CSS custom properties, default size), new features (align, disabled, role="group"), deprecated patterns resolved, and a full before/after migration example with checklist. Co-authored-by: Cursor <cursoragent@cursor.com>
|
📚 Branch Preview Links🔍 First Generation Visual Regression Test ResultsWhen a visual regression test fails (or has previously failed while working on this branch), its results can be found in the following URLs:
Deployed to Azure Blob Storage: If the changes are expected, update the |
Summary
Adds a consumer-facing migration guide at
2nd-gen/packages/swc/components/button-group/migration.mddocumenting how to migrate from<sp-button-group>(1st-gen) to<swc-button-group>(2nd-gen).What's covered
sp-button-group→swc-button-group)@spectrum-web-components/button-group→@adobe/spectrum-wc)verticalboolean →orientationstring property--mod-buttongroup-*→--swc-button-group-*)m)align,disabled, automatic ARIA)Dependencies
rajdeepc/feat-button-group-migration)Test plan
Markdown renders correctly in Storybook docs
All code examples are syntactically valid
Before/after examples accurately reflect the API differences
Reviewed by at least one engineer for clarity and completeness
Fixes SWC-2077, SWC-2078