v1.9.0
@digdir/designsystemet@1.9.0
Minor Changes
-
Add ability to override focus colors from config: (#4320)
{ "overrides": { "focus": { "inner": { "light": "HEX", "dark": "HEX" }, "outer": { "light": "HEX", "dark": "HEX" } } } }This comes with a change to you design tokens, where focus colors are now on the theme layer.
Make sure you rebuild your tokens:npx @digdir/designsystemet tokens create <options> --clean
Patch Changes
-
Update
@tokens-studio/sd-transformsto2.0.3(#4315) -
Updated dependencies []:
- @digdir/designsystemet-types@1.9.0
@digdir/designsystemet-css@1.9.0
Minor Changes
- Dialog:
data-placementselector styles the Dialog as a "drawer"-component from the direction given (left | right | top | bottomorcenterwhich is the default) (#4323)
Added 3 new local variables:--dsc-dialog-placement-inline-max-width(max-width when placement="left | right")--dsc-dialog-placement-block-max-width(max-width when placement="top | bottom")--dsc-dialog-transition-duration(duration for the slide in animations)
Patch Changes
-
Input, Search, Suggestion, Textfield: Uppercase Å was cut off at the top in Chrome and Safari, making it look like Ă (#4301)
-
link: Style background, border, and padding regardless of default browser styles (#4231) (#4302)
-
Add export for a default theme under
/theme. (#4328)
If you are using the default theme from@digdir/designsystemet-theme, we recommend importing the CSS from@digdir/designsystemet-css/theme.cssand removing@digdir/designsystemet-themefrom your dependencies.
@digdir/designsystemet-react@1.9.0
Minor Changes
- Dialog: added
placementprop. This will setdata-placementand style theDialogas a "drawer"-component from the direction given:left | right | top | bottomorcenter(default) (#4323)
Patch Changes
-
SuggestionClear: send
onClick. In earlier versionsonClickwas never called (#4327) -
Popover: Fix controlled open state going out of sync (#4314)
-
Update npm non-major dependencies (#4308)
-
Updated dependencies []:
- @digdir/designsystemet-types@1.9.0
@digdir/designsystemet-theme@1.9.0
Patch Changes
-
Export
designsystemet.cssunder@digdir/designsystemet-theme/index.css(#4291) -
Updated dependencies []:
- @digdir/designsystemet-types@1.9.0