Repository navigation
fix: SLDS 2 hook fixes and deprecate Icon productTheme - #3319
Merged
Merged
Conversation
4 of 15 tasks
4 of 15 tasks
interactivellama
force-pushed
the
fix/v11-slds2-css-fixes
branch
from
November 18, 2026 23:29
3eaecfb to
16873b9
Compare
interactivellama
force-pushed
the
fix/v11-slds2-css-fixes
branch
from
November 19, 2026 04:41
16873b9 to
159b180
Compare
interactivellama
force-pushed
the
fix/v11-slds2-css-fixes
branch
from
November 19, 2026 22:07
159b180 to
8a51424
Compare
interactivellama
force-pushed
the
fix/v11-slds2-css-fixes
branch
from
November 20, 2026 00:14
8a51424 to
8cfc312
Compare
interactivellama
force-pushed
the
fix/v11-slds2-css-fixes
branch
from
November 20, 2026 18:30
8cfc312 to
919881e
Compare
interactivellama
force-pushed
the
fix/v11-slds2-css-fixes
branch
3 times, most recently
from
November 20, 2026 23:51
8efb695 to
d242e88
Compare
interactivellama
force-pushed
the
fix/v11-slds2-css-fixes
branch
2 times, most recently
from
November 23, 2026 06:59
8fba6a1 to
7345741
Compare
The product brand colors are not SLDS 2 theme values. Icon still applies them, but now warns; set the background color with `style` or `className` instead. ProductTheme and utilities/product-tokens/icon-backgrounds are deprecated with it, for removal before 11.0.0.
The inline border, shadow and no-color gradient values were fixed SLDS 1 colors, so they ignored SLDS 2 themes. Read the matching --slds-g-* hooks, with the old values as fallbacks.
…er border hooks Without SLDS 2 loaded, the fixed-header border and radius hooks are undefined, so the border disappeared. Add the SLDS 1 values as var() fallbacks.
Storybook loads SLDS 2 from @salesforce-ux/design-system-2, and nothing references the vendored copy.
CHANGELOG: ColorPicker SLDS 2 hooks (Changed), Icon productTheme (Deprecated) and the SimpleDataTable fixed-header fallback (Fixed). ROADMAP: the productTheme removal for the migration guide, and slds-plus.css deleted.
The example passed the deprecated productTheme, which the no-deprecated lint from #3311 rejects in examples. Set the same backgroundColor values through style, which is the migration the deprecation recommends.
Icon still honors productTheme until it is removed, and IconBackgrounds is declared under utilities/, so local/no-deprecated flags the read. Disable it on that line with the reason, as the onKeyPress forwards do.
interactivellama
marked this pull request as ready for review
November 23, 2026 07:18
interactivellama
force-pushed
the
fix/v11-slds2-css-fixes
branch
from
November 23, 2026 07:20
7345741 to
1ace6bf
Compare
Niznikr
approved these changes
Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of the v11 merge train, stack 3 "GA requirements": asks-2 CSP → SLDS 2 CSS fixes → asks-4 perf → perf improvements → per-component CSS (experimental, last).
Additional description
These SLDS 2 fixes come from the per-component CSS branch. They don't depend on it, so they ship in GA whether or not the per-component CSS goes ahead:
IconproductThemeis deprecated (withProductThemeandutilities/product-tokens/icon-backgrounds), for removal before 11.0.0. The product brand colors aren't SLDS 2 theme values. Set the background withstyleorclassNameinstead. The prop still works and warns once.ColorPicker: the inline border, shadow and no-color pattern read the SLDS 2--slds-g-*hooks, with the old SLDS 1 values as fallbacks.SimpleDataTable: the fixed-header border and radius hooks get SLDS 1 fallbacks. Without SLDS 2 loaded, the border used to disappear.assets/styles/slds-plus.css, and loads SLDS 2 CSS in the browser test project.This PR has no breaking changes.
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 lintpasses with 0 errors (npm run lint:fixto auto-fix). Warnings are the tracked gradual-migration backlog; do not add new errors.npm run typecheckis clean (tsc --noEmit).npm test -- --runpasses — this runs both Vitest projects (jsdomunit+ real-browserbrowser) and the story HTML snapshots. If you changed rendered markup on purpose, update snapshots withnpm test -- --run -uand review the diff.npm run buildsucceeds (type-check + Vite library build +.d.ts+ entry shims).Behavior & docs:
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.jsxfile (thebrowserproject); everything else is jsdom.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).content/visualPickerFigure, render props likerenderItem,iconprops,events), not assumptions — a common source of "component looks broken" reports has been stories authored against the wrong API. Cross-check againstcomponents/<name>/__examples__..d.ts(they're generated by the build); JS consumers rely on them via editor type-acquisition.REVIEWER checklist (do not remove)
CIworkflow: lint, typecheck, test, build). Chromatic visual review, if configured, has been checked.components/__tests__/__snapshots__/story-snapshots.test.jsx.snap).@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.