@salt-ds/ag-grid-theme@2.9.0
Minor Changes
-
a5d12be: Added header background modifier classes on the grid wrapper to align AG Grid headers with the Salt
Table<THead variant />API.ag-theme-salt-header-primary(default),ag-theme-salt-header-secondary,ag-theme-salt-header-tertiary— swap the header background between Salt's primary, secondary and tertiary container tokens.
Add them alongside the mode class on the grid wrapper:
<div className="ag-theme-salt-light ag-theme-salt-header-secondary"> <AgGridReact rowData={rowData} columnDefs={columnDefs} /> </div>
Patch Changes
-
a5d12be: Fixed several AG Grid theme styling issues:
- Row Group Panel pill text and icon now use
--salt-actionable-bold-foreground(with-hoverand-activevariants), and the chip background uses--salt-actionable-bold-background, matching the SaltPillcomponent. Previously the pill text inherited--salt-content-primary-foregroundand the background used--salt-actionable-primary-background. - Replaced remaining references to legacy actionable token aliases. The theme was still referencing
--salt-actionable-secondary-*(renamed to--salt-actionable-subtle-*) and--salt-actionable-cta-*(renamed to--salt-actionable-accented-bold-*). Both old names exist only in the legacy theme's deprecated aliases file and are not defined inthemeNext, so the theme would silently render with undefined values when used withSaltProviderNext. No visual change for users of the legacy theme—the aliases resolve to the same values. - Scoped helper classes to the Salt theme wrapper.
.error-row,.warning-row,.success-row,.ag-column-drop-cell*and.ag-toggle-button-input-wrapper*rules were previously declared as bare class selectors. They are now scoped to[class*="ag-theme-salt"]so they only match elements inside a Salt-themed grid and can no longer collide with consumer classes of the same name elsewhere on the page.
- Row Group Panel pill text and icon now use