@digdir/[email protected]
Patch Changes
-
Add possiblity to override colors in config: (#4073)
"theme": { "overrides": { "colors": { "dominant": { "background-default": { "light": "#ff0000", "dark": "#000fff" }, "background-tinted": { "light": "#f0ff00", "dark": "#ff00ff" } } } } }
-
Font size variables are now rounded to the nearest pixel. This affects size modes "sm" and "lg", which had subpixel values after v1.5.0. (#4070)
-
Update npm non-major dependencies (#4093)
-
Update supported engines. Now supports node >=20 <25 (#3925)
@digdir/[email protected]
Minor Changes
-
toggle-group: Added new secondary design available with
data-variant="secondary"
(orvariant="secondary"
in react) (#4092) -
toggle-group: Changed border-radius to
--ds-border-radius-default
, border-color to--ds-color-border-default
and color to--ds-color-text-default
. (#4092)
Patch Changes
-
link: Change
:focus-visible
styling to use border, not background (#4095)- Removes
--dsc-link-background--focus
- Removes
--dsc-link-color--focus
- Removes
-
link: Add
--dsc-link-border-radius
, default isvar(--ds-border-radius-md)
(#4095) -
Dropdown:
Dropdown.Heading
(h2-h6) - changed color to text-default and font-weight to 500 (#4076)
@digdir/[email protected]
Minor Changes
- ToggleGroup: Added new prop
variant
to enable newsecondary
design option (#4092)
Patch Changes
-
Spinner: Allow using
aria-hidden
whenaria-label
is set, which can be useful to hide or show the element from the accessibility tree based on some UI state like whether a visual label is also rendered. (#4077) -
Update npm non-major dependencies (#4093)
-
Avatar: Allow using
aria-hidden
instead ofaria-label
in situations with visible text (#4077)
@digdir/[email protected]
Patch Changes
- Font size variables are now rounded to the nearest pixel. This affects size modes "sm" and "lg", which had subpixel values after v1.5.0. (#4070)