chore(close-button): migration guide#6322
Conversation
|
📚 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 |
d580fd2 to
f9b9450
Compare
There was a problem hiding this comment.
Keeping this blocking for the below question since it is not reflected in your plan.
Given that ButtonBase already provides disabled, pending, accessible-name, size, slot observation, and delegated focus — what does CloseButton.base.ts actually own? The plan should answer:
- Does it extend ButtonBase? (yes, presumably)
- What new properties or behavior does it add? (likely just staticColor typing at core level, if anything)
- Should types reuse
BUTTON_STATIC_COLORSfromButton.types.tsor defineCLOSE_BUTTON_STATIC_COLORS?
If CloseButton.base.ts is effectively empty (only extending ButtonBase with no additions), consider whether the core layer is even needed — the SWC class could extend ButtonBase directly.
|
@Rajdeepc yes we would need a close button base file to handle
so even if it is thin its preferable to keep the base file to match 2nd gen structure + these 2 specifics |
a6e0e34 to
e71224c
Compare
rubencarvalho
left a comment
There was a problem hiding this comment.
Looks good, have left one question. I know we've discussed what to do with the default being or not reflected, but not sure if we landed on a decision.
|
|
||
| | Property | Type | Default | Attribute | Confidence | | ||
| | --- | --- | --- | --- | --- | | ||
| | `size` | `'s' \| 'm' \| 'l' \| 'xl'` | `'m'` | `size` | Confirmed | |
There was a problem hiding this comment.
are we reflecting the default size? I don't know where we landed on this
e71224c to
d6ba276
Compare
Description
CONTRIBUTOR-DOCS:CONTRIBUTOR-DOCS/03_project-planning/03_components/close-button/migration-plan.mdCONTRIBUTOR-DOCS/03_project-planning/03_components/close-button/rendering-and-styling-migration-analysis.md2nd-gen/packages/swc/components/close-button/migration-guide.mdxCONTRIBUTOR-DOCS/03_project-planning/03_components/README.mdto index the new close-button plan + roadmap docs.spectrum-cssspectrum-twoclosebutton sourceMotivation and context
This work corrects scope and artifact type for the close-button epic.
The prior MDX was consumer migration documentation, but this stage requires internal migration planning docs (washing-machine Phase 1 style) before implementation.
This PR establishes the review surface for:
Related issue(s)
Screenshots (if appropriate)
Author's checklist
Reviewer's checklist
patch,minor, ormajorfeaturesManual review test cases
Verify close-button migration planning docs were added and consumer guide was removed
2nd-gen/packages/swc/components/close-button/migration-guide.mdxis removedVerify phase-1 planning scope and design references
migration-plan.md, review TL;DR, Changes overview, Migration checklist, and Blockers and open questionsVerify contributor docs index was updated
Device review
Accessibility testing checklist
Keyboard (required — document steps below)
Screen reader (required — document steps below)