You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Closes#1602. Part of #626 — Major release plan 17.0.0.
## Changes
Renames the `extra` prop family to `slot` across every component,
finishing the slot migration that was started for the cards in mistica
16.
## !! Decision — how each `extra`-named prop was handled
heads up to the reviewers! Are we ok with these decisions below?
- **Bare `extra` prop, no `slot` yet** → hard-renamed to `slot` (no
deprecation shim, since 17.0.0 is the breaking release): `CoverHero`,
`Hero`, `Popover`, `Tooltip`, `Meter`, `Dialog`, `HeaderLayout`,
`Row`/`RowList`, `FeedbackScreen`, `AdvancedDataCard`.
- **`extra` already deprecated with `slot` already available** → the
deprecated `extra` was removed (consumers use the existing `slot`):
`DataCard`, `MediaCard`, `NakedCard`. `DataCard`'s dead `extraAlignment`
was also removed (`slotAlignment` stays).
- **Props with `Extra` in a compound name** → renamed to keep the family
consistent: `sideExtra` → `sideSlot` (`CoverHero`), `burgerMenuExtra` →
`burgerMenuSlot` (`MainNavigationBar`), `sideBySideExtraOnDesktop` →
`sideBySideSlotOnDesktop` (`HeaderLayout`), `extraDividerPadding` →
`slotDividerPadding` and `noExtraDivider` → `noSlotDivider`
(`AdvancedDataCard`).
- **Unrelated uses of the word "extra" were left untouched**: the
`extraLargeDesktop` breakpoint, generated icon keywords, and prose
comments.
Internal css classes and helper variables tied to the renamed props were
renamed too. Stories, tests, playroom snippets and the migration guide
were updated accordingly.
## Stack position — 9 of 10
This PR targets the branch from #1600, as #1601 is not open yet. GitHub
will retarget it (to #1601's branch, then to `master`) as parents merge.
For the full merge strategy and ordering, see #626. **Do not merge out
of order.**
---------
Co-authored-by: brtbrt <brtbrt@users.noreply.github.com>
0 commit comments