Skip to content

feat!: v11 P1 theme 2, remove 0.10.x deprecated props and components - #3285

Merged
interactivellama merged 16 commits into
masterfrom
feat/v11-p1-2-removals
Nov 10, 2026
Merged

interactivellama merged 16 commits into
masterfrom
feat/v11-p1-2-removals

Conversation

@interactivellama

@interactivellama interactivellama commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Fixes the theme 2 "removals" items in the ROADMAP.md P1 prop API freeze review.

Stacked on #3284 (theme 1, behavior-fixes). The base is feat/v11-p1-1-behavior-fixes, so this diff shows only theme 2. Retarget to master after #3284 merges. Theme 3 (callbacks) stacks on this branch; see #3284 for the scope cut applied to themes 3–8, which leaves this PR's scope unchanged.

Additional description

Removes props and components that were deprecated in 0.10.x and already warn. Each removed prop is dropped from the types. At runtime it is ignored, kept off the DOM, and logs a one-time development warning that names the replacement (utilities/warning/sunset-property). This is the v11 major, and anything still deprecated at GA has to stay for all of 11.x.

There is one commit per component.

Component Removed Use instead
button tooltip <Tooltip trigger={<Button … />} content={…} />
date-picker children, label, placeholder, assistiveTextOpenCalendar input, labels.label, labels.placeholder, assistiveText.openCalendar
icon string assistiveText assistiveText={{ label }} (matches #3248)
illustration the whole component, SLDSIllustration, ILLUSTRATION the SLDS Illustration blueprint markup
input assistiveText.fieldLevelHelpButton, plus dead icon-prop checks assistiveText.triggerLearnMoreIcon on the fieldLevelHelpTooltip
menu-dropdown tooltip, offset, isInline a wrapping Tooltip; automatic positioning; menuPosition="relative"
page-header unreachable legacy branches and dead checks (no public API change) —
panel PanelFilterGroup assistiveTextCloseFilterPanel assistiveText.closeButton
popover closeButtonAssistiveText, offset assistiveText.closeButton; none
radio label labels.label
scoped-notification iconName icon
simple-data-table onChange(selection, event), six table and three column assistiveTextFor* props onRowChange(event, { selection }), the matching assistiveText keys
vertical-navigation lodash.isfunction call replaced with optional chaining (no API change) —

Decisions

  • Removal pattern: remove from the types, keep ignoring the prop at runtime, and warn once through sunset-property naming the replacement. Where a component's check-props.js isn't wired, the warning runs from a named export (radio) or the existing dev-only useEffect (popover), so unwired checks aren't switched on.
  • illustration: removed in 11.0 rather than frozen. It was is-deprecated with prototype status, already warned, and path is an XSS vector.
  • simple-data-table: onChange no longer satisfies the onRowChange requirement.
  • Kept, because they were never deprecated in 0.10.x (each needs a deprecation release first): input onSubmit/onKeyPress, slider onInput, textarea onSubmit.
  • Kept, deprecated through v11 (they were the recommended API in 0.10.x): page-header onRenderActions/onRenderControls, popover footerClassName.
  • vertical-navigation: keep displayName, which is still used for debugging and no longer matched on. lodash.isfunction stays a dependency because other components still use it.

Breaking: every row above except page-header and vertical-navigation. CHANGELOG has a BREAKING entry with a migration line for each.

TinyNod (pre-push, advisory): findings, 11 total, none fixed. It compared against master, so the findings include theme 1's code. The 3 warnings are false positives: popover.tsx:419 and pill/index.tsx:152 are already guarded by an if, and illustration.test.jsx is a deleted file. The 8 info findings (bundle size, naming) are generic and not actionable.


CONTRIBUTOR checklist (do not remove)

Please complete for every pull request.

Green gate — all of these must pass locally (CI runs the same):

  • npm run lint passes with 0 errors (npm run lint:fix to auto-fix). Warnings are the tracked gradual-migration backlog; do not add new errors.
  • npm run typecheck is clean (tsc --noEmit).
  • npm test -- --run passes — this runs both Vitest projects (jsdom unit + real-browser browser) and the story HTML snapshots. If you changed rendered markup on purpose, update snapshots with npm test -- --run -u and review the diff.
  • npm run build succeeds (type-check + Vite library build + .d.ts + entry shims).

Behavior & docs:

  • First-time contributors: sign the CLA (a bot will comment with instructions).
  • Added/updated Vitest + React Testing Library tests for the change (template: components/button/__tests__). New props and bug fixes should get a regression test. Tests that genuinely need a real browser (focus traversal, layout/measurement, canvas) go in a *.browser.test.jsx file (the browser project); everything else is jsdom.
  • Reviewed the component's Storybook stories: npm run storybook → http://localhost:6007/. Confirm the story actually renders and behaves (deprecated Storyshots/Karma are gone; there is no separate browser-tests server).
  • Story/example code uses the component's real prop API (e.g. slots like content / visualPickerFigure, render props like renderItem, icon props, events), not assumptions — a common source of "component looks broken" reports has been stories authored against the wrong API. Cross-check against components/<name>/__examples__.
  • Storybook Accessibility (a11y) panel shows no new violations for the affected stories.
  • If you added or changed a type, remember runtime PropTypes were removed in the TS migration — types are the contract. Ship accurate .d.ts (they're generated by the build); JS consumers rely on them via editor type-acquisition.

REVIEWER checklist (do not remove)

  • CI is green (GitHub Actions CI workflow: lint, typecheck, test, build). Chromatic visual review, if configured, has been checked.
  • Change has adequate test coverage; bug fixes include a regression test.
  • Reviewed the affected Storybook stories and their a11y panels.
  • Rendered markup still conforms to SLDS — check the story HTML snapshot diff (components/__tests__/__snapshots__/story-snapshots.test.jsx.snap).
  • Public API / package surface: if exports changed, the deep-import contract still holds (@salesforce/design-system-react/components/<name> and nested paths resolve for ESM, CJS, and types). Removing/renaming a public component or export is a breaking change → feat!:/BREAKING CHANGE: and a major version bump.

@interactivellama interactivellama changed the title feat!: v11 P1 theme 2, remove deprecated props and components feat!: v11 P1 theme 2, remove 0.10.x deprecated props and components Nov 7, 2026
@interactivellama
interactivellama force-pushed the feat/v11-p1-1-behavior-fixes branch from 91e8f60 to 34a128d Compare November 10, 2026 07:27
@interactivellama
interactivellama marked this pull request as ready for review November 10, 2026 08:00
Niznikr
Niznikr previously approved these changes Nov 10, 2026
Base automatically changed from feat/v11-p1-1-behavior-fixes to master November 10, 2026 19:32
@interactivellama
interactivellama dismissed Niznikr’s stale review November 10, 2026 19:32

The base branch was changed.

`tooltip` wrapped the button in a Tooltip. It is no longer rendered; it is
destructured so it never reaches the DOM and warns once in development.

BREAKING CHANGE: Button no longer accepts `tooltip`. Wrap the button in a
Tooltip instead: `<Tooltip content={...} trigger={<Button ... />} />`.
…d assistiveTextOpenCalendar

These props already had replacements (`input`, `labels.label`,
`labels.placeholder`, `assistiveText.openCalendar`). They are now ignored,
never reach the DOM, and warn once in development.

BREAKING CHANGE: DatePicker no longer accepts `children` (pass your Input to
`input`), `label` (use `labels.label`), `placeholder` (use
`labels.placeholder`) or `assistiveTextOpenCalendar` (use
`assistiveText.openCalendar`).
A string `assistiveText` is now ignored and warns once in development
(the existing `check-props.js` sunset check, now wired). Combobox examples
and the ScopedNotification test pass `{ label }` instead, and
ScopedNotification no longer converts a string icon `assistiveText`.

BREAKING CHANGE: Icon accepts only `assistiveText={{ label: '...' }}`; a
string is ignored.
Illustration was deprecated and prototype-status, already warned on every
render, and its `path` prop is an XSS vector with user-provided SVGs.
Removes the component, its examples, stories, tests and snapshots, the
`Illustration`/`SLDSIllustration` exports, the `ILLUSTRATION` constant, and
the story-only SVGs in `assets/images/illustrations`.

BREAKING CHANGE: `Illustration` and `SLDSIllustration` are no longer
exported, and `components/illustration` is gone. Copy the markup from
https://www.lightningdesignsystem.com/components/illustration/ instead.
`assistiveText.fieldLevelHelpButton` is no longer read and warns once in
development. Also delete the dead checks for the `iconCategory`,
`iconName`, `iconPosition`, `iconAssistiveText` and `onIconClick` props,
which Input stopped accepting long ago.

BREAKING CHANGE: Input no longer accepts
`assistiveText.fieldLevelHelpButton`. Pass a `Tooltip` to
`fieldLevelHelpTooltip` and set its `assistiveText.triggerLearnMoreIcon`.
The three props are no longer read. They are destructured so they never
reach the DOM, and each warns once in development. MenuDropdownButtonTrigger
drops `tooltip` and `isInline` too.

BREAKING CHANGE: MenuDropdown no longer accepts `tooltip`, `offset` or
`isInline`. Wrap the trigger in a Tooltip instead of passing `tooltip`;
`offset` has no replacement (positioning is automatic); replace `isInline`
with `menuPosition="relative"`.
PageHeader never forwards `iconCategory`/`iconName`/`iconPosition`/
`iconSize`/`iconVariant`, `contentRight` or `navRight` to its private
variants, so the icon branch, the `contentRight`/`navRight` passthrough,
Controls' legacy wrapper branch and their checks could not run. Delete
them. `onRenderActions`/`onRenderControls` still work and warn.
The prop no longer overrides the close button label. It is destructured so
it never reaches the DOM and warns once in development.

BREAKING CHANGE: PanelFilterGroup no longer accepts
`assistiveTextCloseFilterPanel`. Use
`assistiveText={{ closeButton: '...' }}` instead.
The two props are no longer read. They are destructured so they never
reach the DOM, and each warns once in development from the existing mount
check. Adds a `sunset-property.d.ts` so TypeScript callers can use the
warning helper.

BREAKING CHANGE: Popover no longer accepts `closeButtonAssistiveText` (use
`assistiveText={{ closeButton: '...' }}`) or `offset` (no replacement;
positioning is automatic).
`label` no longer sets the radio's label. It is destructured so it never
reaches the DOM, and the warning moves from the unwired `checkProps` into
`checkDeprecatedProps`, so it now fires.

BREAKING CHANGE: Radio no longer accepts `label`. Use
`labels={{ label: '...' }}` instead.
`iconName` no longer changes the default icon. It is destructured so it
never reaches the DOM and warns once in development; the component now runs
its `checkProps`. The WithIconName story passes an `Icon` instead (same
markup).

BREAKING CHANGE: ScopedNotification no longer accepts `iconName`. Pass an
Icon element instead:
`icon={<Icon category="utility" name="announcement" size="small" />}`.
…rops

`onChange(selection, event)` is no longer called, and no longer satisfies
the "`onRowChange` is required" check for selectable tables. The six table
`assistiveTextFor*` props and the three column ones
(`assistiveTextForColumnSort`, `assistiveTextForColumnSortedAscending`,
`assistiveTextForColumnSortedDescending`) no longer override
`assistiveText`. All of them warn once in development.

BREAKING CHANGE: SimpleDataTable no longer accepts `onChange`; use
`onRowChange(event, { selection })`. It no longer accepts
`assistiveTextForActionsHeader`, `assistiveTextForColumnSort`,
`assistiveTextForColumnSortedAscending`,
`assistiveTextForColumnSortedDescending`, `assistiveTextForSelectAllRows` or
`assistiveTextForSelectRow`, and SimpleDataTableColumn no longer accepts the
three column-sort ones; pass the matching key in the table's `assistiveText`
(for example `assistiveText={{ columnSort: '...' }}`).
Drop the `lodash.isfunction` import from the item; `onSelect` is typed as a
function, so `onSelect?.()` is enough. The dependency stays: tree,
simple-data-table, menu-dropdown and input-icon still use it. `displayName`
is unchanged (the codebase overview requires it).
…t header padding

Root cause: 67c7731 dropped `slds-table_resizable-cols` from `fixedLayout`
tables as vestigial, since column resizing is gone. SLDS still uses the class
to set `thead th { padding: 0 }`; `.slds-th__action` supplies the header
padding instead. Without it, header cells got SLDS's default `th` padding
(`4px 8px`) on top of `.slds-th__action`'s, and the header row grew from 32px
to 40px. Body cells were unaffected.

Restore the class for `fixedLayout`, as on master. The narrowed
`role="grid"` (only with `keyboardNavigation`) stays; roles affect focus
styling, not layout.

Adds a browser regression test that checks the header cell padding and
height with SLDS CSS loaded.
@interactivellama
interactivellama merged commit 05cb8cd into master Nov 10, 2026
11 checks passed
@interactivellama
interactivellama deleted the feat/v11-p1-2-removals branch November 10, 2026 21:09
interactivellama added a commit that referenced this pull request Nov 20, 2026
A right-aligned Filter logged "`offset` has reached End-of-Life and has
been removed from the API of SLDSPopover" on every mount.

Root cause: #3285 removed Popover's `offset` prop and made Popover report
it on mount, but Filter still built its popover props with
`offset: '0px -35px'` for `align="right"`, plus
`silenceDeprecatedPropertyWarning`, which v11 Popover no longer reads. In
0.10.x the offset positioned the dialog and the flag silenced the warning,
so this is a v11 regression. Popover ignores `offset` now, so dropping both
changes no positioning.
interactivellama added a commit that referenced this pull request Nov 20, 2026
A right-aligned Filter logged "`offset` has reached End-of-Life and has
been removed from the API of SLDSPopover" on every mount.

Root cause: #3285 removed Popover's `offset` prop and made Popover report
it on mount, but Filter still built its popover props with
`offset: '0px -35px'` for `align="right"`, plus
`silenceDeprecatedPropertyWarning`, which v11 Popover no longer reads. In
0.10.x the offset positioned the dialog and the flag silenced the warning,
so this is a v11 regression. Popover ignores `offset` now, so dropping both
changes no positioning.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants