Deprecate the Display Density Token in favour of --ig-size
CSS variable
#13389
Closed
15 of 16 tasks
Labels
📈 enhancement
✅ status: resolved
Applies to issues that have pending PRs resolving them, or PRs that have already merged.
The currently exposed display density token for setting the size of various components should be deprecated in favour of the
--ig-size
CSS variable. The variable should be used to size various components. This will reduce prop drilling as well as simplify the styles by eventually removing any classes related to display density/size(i.e.--compact
,--cosy
).This issue requires us to evaluate all components that currently use the display density token and remove class bindings based on the token. The
--ig-size
property should be used to control how components are sized, including other components internal to any parent component. This can be achieved by setting dimensions of various elements/components by using thesizable
mixin or function where needed.Affected components:
The text was updated successfully, but these errors were encountered: