Changelog
1.12.1
@digdir/designsystemet
Patch Changes
- Updated dependencies []:
- @digdir/designsystemet-types@1.12.1
@digdir/designsystemet-css
Patch Changes
- Updated dependencies []:
- @digdir/designsystemet-types@1.12.1
@digdir/designsystemet-react
Patch Changes
-
Avatar: fixed an issue where tooltip could not be set (#4534)
-
Updated dependencies [
d81048f,d81048f]:- @digdir/designsystemet-web@1.12.1
- @digdir/designsystemet-types@1.12.1
@digdir/designsystemet-web
Patch Changes
1.12.0
@digdir/designsystemet
Patch Changes
-
update npm non-major dependencies (#4517)
-
update npm non-major dependencies (#4497)
-
Updated dependencies []:
- @digdir/designsystemet-types@1.12.0
@digdir/designsystemet-css
Minor Changes
-
input: add support for
[aria-readonly='true'](#4409) -
field: add new css variables: (#4409)
--dsc-field-counter-over: '%d tegn for mye';--dsc-field-counter-under: '%d tegn igjen'; -
Support for new package with custom elements and observers for Designsystemet. (#4409)
-
popover: add
--dsc-popover-placementwith default valuetop(#4409) -
fieldset: add
--dsc-fieldset-gapwith default valuevar(--ds-size-4)(#4409) -
tooltip: add
--dsc-tooltip-placementwith default valuetop(#4409) -
dropdown: add
--dsc-dropdown-placementwith default valuebottom(#4409) -
pagination: (#4409)
- add
--dsc-pagination-ellipsiswith default value'\2026' - set
--dsc-pagination-label: 'Bla i sider';if language is'nn','nb'or'no'
- add
Patch Changes
-
suggestion: various changes to chip styling. You no longer need to pass a class to
<data>(#4409) -
link: don't set
:visitedcolor and set defaultborder-radiusto 0 (#4409) -
dialog: style
.ds-dialog button[command='close']:empty::beforewith X-icon (#4409) -
toggle-group: remove
--dsc-togglegroup-text-color, as this was not used (#4409) -
update npm non-major dependencies (#4517)
-
Card: fix issues with deeply nested heading links. Now uses web observer
data-clickdelegateforinternally. (#4409) -
toggle-group: add styling for new DOM structure introduced in
@digdir/designsystemet-web(#4409) -
field: add styling for
<ds-field>counter. (#4409) -
tabs: add support for
<ds-tabs>(#4409) -
breadcrumbs: don't remove underline on
a[aria-current='page'], but onli:last-child a(#4409) -
added class
ds-floating, which is used on floating elements internally (#4409) -
Updated dependencies []:
- @digdir/designsystemet-types@1.12.0
@digdir/designsystemet-react
Minor Changes
-
Input Support for new attribute
data-indeterminateto toggle indeterminate state whentype="checkbox"insideField/ds-field. (#4409) -
Support for new package with custom elements and observers for Designsystemet. (#4409)
-
ToggleGroup: Updated DOM structure and now uses new web observer
data-toggle-group. (#4409) -
Add
suppressHydrationWarningto various components. This is to support@digdir/designsystemet-webbeing used internally. (#4409) -
Field.Counter: Deprecate
hint(#4409) -
Field: Deprecated
asChildas this component now uses<ds-field>internally. (#4409) -
ErrorSummary: Deprecate
asChildas this component now uses<ds-error-summary>internally. (#4409) -
Select: Deprecate
readOnly. Usearia-readonlyinstead. (#4409) -
RovingFocus: Deprecate component. This will be removed in the next major version (#4409)
-
Tooltip: Deprecate
open. This should not be used on Tooltip. Use aPopoverinstead. (#4409) -
Dialog: Deprecate
data-command="close". Usecommand="close"andcommandfor="DIALOG-ID"instead. (#4409)
Patch Changes
-
Breadcrumbs: Now uses
<ds-breadcrumbs>internally. (#4409) -
Card: Fix deeply nested anchors in headings causing navigation (#4409)
-
update npm non-major dependencies (#4517)
-
Card: fix issues with deeply nested heading links. Now uses web observer
data-clickdelegateforinternally. (#4409) -
Pagination: Now uses
<ds-pagination>internally. (#4409) -
update npm non-major dependencies (#4497)
-
Tabs: Now uses
<ds-tabs>and related web components internally (#4409) -
Tooltip: Now uses
data-tooltipfrom@digdir/designsystemet-webinternally (#4409) -
Details: Use
<details>and<summary>internally. (#4409) -
Updated dependencies [
6bde739,34c1ca7]:- @digdir/designsystemet-web@1.12.0
- @digdir/designsystemet-types@1.12.0
@digdir/designsystemet-web
Minor Changes
-
New package with custom elements and observers for Designsystemet. (#4409)
Custom elements ds-breadcrumbsds-error-summaryds-fieldds-paginationds-suggestionds-tabsds-tablistds-tabds-tabpanelObserver data-clickdelegateforUsed for delegating click event data-toggle-groupUsed for adding arrow navigation plus Enter-key support data-tooltipUsed for adding tooltip text on element readonlyUsed for fixing readonlysupport onselectandinputelementspopoverEvent listnener on popovertargetfor placement ofds-floatingelements.Polyfill details&summaryBugfix for Firefox. dialogSupport for closedby="any". command&commandforSupport for invokers.
Patch Changes
- update npm non-major dependencies (#4517)
1.11.1
@digdir/designsystemet
Patch Changes
-
update npm non-major dependencies (#4469)
-
update dependency colorjs.io to ^0.6.1 (#4422)
-
update npm non-major dependencies (#4445)
-
update npm non-major dependencies (#4423)
-
Updated dependencies []:
- @digdir/designsystemet-types@1.11.1
@digdir/designsystemet-css
Patch Changes
-
update npm non-major dependencies (#4469)
-
AvatarStack: override user-agent margins on figure (#4431)
-
update dependency postcss-nesting to v14 (#4424)
-
Removed browserlist entry
"cover 90% in NO"due to an apparent error in the dataset causing excessive irrelevant prefixing. This reduces the size ofindex.cssfrom 157 to 113kb. (#4434) -
Updated dependencies []:
- @digdir/designsystemet-types@1.11.1
@digdir/designsystemet-react
Patch Changes
-
update npm non-major dependencies (#4469)
-
Avatar: fix - removed aria-hidden and role=img when asChild (#4445)
-
update npm non-major dependencies (#4445)
-
update dependency @navikt/aksel-icons to v8 (#4447)
-
update npm non-major dependencies (#4423)
-
Updated dependencies []:
- @digdir/designsystemet-types@1.11.1
1.11.0
@digdir/designsystemet
Minor Changes
- Version
1.10.0was released by accident, and we are skipping to1.11.0(#4392)- Version
1.10.0is deprecated on npm, and not accessible on Github. Use1.11.0or newer.
- Version
Patch Changes
-
update npm non-major dependencies (#4373)
-
Update dependency zod-validation-error to v5 (#4401)
-
Update dependency colorjs.io to ^0.6.0 (#4372)
-
Remove
change-caseas dependency (#4343) -
Update
@types/nodeto24.10.7(#4396)- This does not affect the node versions we support
-
update npm non-major dependencies (#4336)
-
update npm non-major dependencies (#4398)
-
Update npm non-major dependencies (#4347)
-
Updated dependencies [
4d48a81]:- @digdir/designsystemet-types@1.11.0
@digdir/designsystemet-css
Minor Changes
-
Version
1.10.0was released by accident, and we are skipping to1.11.0(#4392)- Version
1.10.0is deprecated on npm, and not accessible on Github. Use1.11.0or newer.
- Version
-
avatar-stack: New experimental component (#4331)
Patch Changes
-
avatar: added
--dsc-avatar-font-sizeto easier override font size (#4331) -
Hover styles for cards containing
<a>inside a heading will no longer propagate to wrapping cards (#4360) -
update npm non-major dependencies (#4336)
-
card: Fix focus being clipped on nested
<summary>(#4379) -
Dialog: removed media-query that forces 100% width under 640px (#4345)
-
dialog: More gentle animations when using
data-placement(#4350) -
Updated dependencies [
4d48a81]:- @digdir/designsystemet-types@1.11.0
@digdir/designsystemet-react
Minor Changes
-
Version
1.10.0was released by accident, and we are skipping to1.11.0(#4392)- Version
1.10.0is deprecated on npm, and not accessible on Github. Use1.11.0or newer.
- Version
-
Avatar: added
asChildprop (#4331) -
AvatarStack: New experimental component (#4331)
-
Suggestion: Add new prop
autoPlacement, which is by defaulttrue(#4359)- This means that
Suggestionwill now try to stay within the viewport on the y-axis
- This means that
Patch Changes
-
update npm non-major dependencies (#4373)
-
Removed
sideEffects:falseproperty used by some bundlers to help tree-shake cjs files. (#4376) -
update npm non-major dependencies (#4336)
-
update npm non-major dependencies (#4398)
-
Suggestion: Always call
onSelectedChange, and returnnullinstead ofundefined(#4388) -
Update npm non-major dependencies (#4347)
-
Updated dependencies [
4d48a81]:- @digdir/designsystemet-types@1.11.0
@digdir/designsystemet-theme
Minor Changes
-
Version
1.10.0was released by accident, and we are skipping to1.11.0(#4392)- Version
1.10.0is deprecated on npm, and not accessible on Github. Use1.11.0or newer.
- Version
-
⚠️ THIS PACKAGE IS DEPRECATED ⚠️ (#4366) Use
@digdir/designsystemet-css/themefor default theme or make your own using the Theme builder
Patch Changes
- Updated dependencies [
4d48a81]:- @digdir/designsystemet-types@1.11.0
@digdir/designsystemet-types
Minor Changes
- Version
1.10.0was released by accident, and we are skipping to1.11.0(#4392)- Version
1.10.0is deprecated on npm, and not accessible on Github. Use1.11.0or newer.
- Version
1.9.0
@digdir/designsystemet
Minor Changes
-
Add ability to override focus colors from config: (#4320)
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
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
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
Patch Changes
-
Export
designsystemet.cssunder@digdir/designsystemet-theme/index.css(#4291) -
Updated dependencies []:
- @digdir/designsystemet-types@1.9.0
1.8.0
@digdir/designsystemet
Minor Changes
-
Move submodule
@digdir/designsystemet/typesto a new package@digdir/designsystemet-typesand change all references. (#4241)After re-running
tokens builddownstream, this removes transitive dependencies on runtime dependencies on CLI tools likecommanderandstyle-dictionarywhich are never used in runtime, but are required for the CLI to function. It also makes code which doesn't use the CLI unaffected by our node version limitations (currently >= 22 due tostyle-dictionary).@digdir/designsystemet/typesis preserved for now as a deprecated re-export of@digdir/designsystemet-typesto avoid breaking people's builds.
Patch Changes
-
Update npm non-major dependencies (#4275)
-
Update npm non-major dependencies (#4242)
-
Update npm non-major dependencies (#4262)
-
Update dependency @tokens-studio/sd-transforms to v2 (#4271)
-
Updated dependencies [
c2faf2e]:- @digdir/designsystemet-types@1.8.0
@digdir/designsystemet-css
Patch Changes
-
badge: Set
display: inline-flexon.ds-badge(#4269) -
Update npm non-major dependencies (#4242)
-
select: Fix
:hoveron<label>adding border to<select>(#4248) -
Update npm non-major dependencies (#4262)
@digdir/designsystemet-react
Minor Changes
-
Move submodule
@digdir/designsystemet/typesto a new package@digdir/designsystemet-typesand change all references. (#4241)After re-running
tokens builddownstream, this removes transitive dependencies on runtime dependencies on CLI tools likecommanderandstyle-dictionarywhich are never used in runtime, but are required for the CLI to function. It also makes code which doesn't use the CLI unaffected by our node version limitations (currently >= 22 due tostyle-dictionary).@digdir/designsystemet/typesis preserved for now as a deprecated re-export of@digdir/designsystemet-typesto avoid breaking people's builds.
Patch Changes
-
Update npm non-major dependencies (#4275)
-
Update npm non-major dependencies (#4242)
-
Popover: Fix unnecesary call of
onOpenand missing call ofonClose(#4230)- Don't call
onOpenwhen clickingPopover.TriggerwhenPopoveris already open. - Call
onClosewhen a controlledPopoveris closed by clicking onPopover.Trigger.
- Don't call
-
Update npm non-major dependencies (#4262)
-
Update
reactandreact-domto19.2.1(#4276) -
Updated dependencies [
c2faf2e]:- @digdir/designsystemet-types@1.8.0
@digdir/designsystemet-theme
Minor Changes
-
Move submodule
@digdir/designsystemet/typesto a new package@digdir/designsystemet-typesand change all references. (#4241)After re-running
tokens builddownstream, this removes transitive dependencies on runtime dependencies on CLI tools likecommanderandstyle-dictionarywhich are never used in runtime, but are required for the CLI to function. It also makes code which doesn't use the CLI unaffected by our node version limitations (currently >= 22 due tostyle-dictionary).@digdir/designsystemet/typesis preserved for now as a deprecated re-export of@digdir/designsystemet-typesto avoid breaking people's builds.
Patch Changes
-
Update npm non-major dependencies (#4262)
-
Updated dependencies [
c2faf2e]:- @digdir/designsystemet-types@1.8.0
@digdir/designsystemet-types
Minor Changes
-
Move submodule
@digdir/designsystemet/typesto a new package@digdir/designsystemet-typesand change all references. (#4241)After re-running
tokens builddownstream, this removes transitive dependencies on runtime dependencies on CLI tools likecommanderandstyle-dictionarywhich are never used in runtime, but are required for the CLI to function. It also makes code which doesn't use the CLI unaffected by our node version limitations (currently >= 22 due tostyle-dictionary).@digdir/designsystemet/typesis preserved for now as a deprecated re-export of@digdir/designsystemet-typesto avoid breaking people's builds.
1.7.3
@digdir/designsystemet-react
Patch Changes
1.7.2
@digdir/designsystemet
Patch Changes
-
Add option to override
linkVisitedcolor in config: (#4182) -
New command that lets you generate a config file from your design tokens: (#4207)
npx @digdir/designsystemet generate-config-from-tokens --dir <path to design tokens>- This command does not include any overrides you may have done.
-
Update npm non-major dependencies (#4193)
-
Update npm non-major dependencies (#4214)
-
For your config file, you can now get the schema file from designsystemet.no (#4195)
@digdir/designsystemet-css
Patch Changes
-
input: Remove hover effect when
<label>is hovered (#4196) -
tag: Add new variant,
[data-variant="outline"]. (#4173)- To use the old variant, either don't set
data-variant, or set it todefault.
- To use the old variant, either don't set
-
Update npm non-major dependencies (#4214)
-
card: Add support for
<picture>(#4137) -
search: Don't set
position: relative, but useisolation: isolateon.ds-search(#4212)- This removes
z-indexonbutton[type="reset"]
- This removes
-
tag: New css variables to go with
[data-variant="outline"]: (#4173)--dsc-tag-border-width--dsc-tag-border-color--dsc-tag-border-style
@digdir/designsystemet-react
Patch Changes
-
Update
@u-elements/comboboxto v1.0.4 (#4226) -
Dialog: If the browser supports
closedByon<dialog>, we let the browser handle it (#4210) -
Tooltip: Tooltip is now automatically
aria-describedbyoraria-labelledbybased on the content of the trigger component. (#4202)- This can be overridden with the new
type-prop that acceptsdecribedbyorlabelledby.
- This can be overridden with the new
-
Update npm non-major dependencies (#4193)
-
Update npm non-major dependencies (#4214)
-
Tag: Add new prop
variant(#4173)- Accepts
default|outline.defaultis the default value.
- Accepts
@digdir/designsystemet-theme
Patch Changes
- Update npm non-major dependencies (#4214)
1.7.1
@digdir/designsystemet-react
Patch Changes
- Suggestion: Fix
onSelectedChangenot always calling the latest callback (#4176)
1.7.0
@digdir/designsystemet
Minor Changes
-
Restructure design tokens: (#4105)
- Removes
primitives/modes/color-scheme/[dark/light]/global.json - Removes global colors (red, green, blue, orange, purple)
- Moved severity colors directly to your theme file
"link.color.visited"now references"$value": "color.link.visited"from your theme file
Make sure to regenerate your design tokens:
npx @digdir/designsystemet tokens create <options> --clean - Removes
Patch Changes
-
Update npm non-major dependencies (#4147)
-
Export zod schema and type for config file: (#4170)
configSchematype ConfigSchema
-
Add option override severity colors from config. (#4105) You can override the base-hexcode, as well as individual steps:
-
Update npm non-major dependencies (#4167)
-
Update dependency ramda to ^0.32.0 (#4146)
@digdir/designsystemet-css
Patch Changes
-
Field: Set
display: blockon<label>(#4134) -
ToggleGroup: ensure ToggleGroup has same height as Button, and that individual buttons within the group never wrap their text (#4139)
-
ToggleGroup: use correct border-color (
--ds-color-text-default) to match text/icon color on selected button in secondary variant (#4139) -
Label: Use
line-height: var(--ds-body-md-line-height);(#4134) -
Field:
data-field="description"no longer getsmargin-top(#4134) -
chip: Remove hover effect on
.ds-input(#4165)
@digdir/designsystemet-react
Patch Changes
-
Update npm non-major dependencies (#4147)
-
Suggestion, Tooltip, Popover: Positioning of floating elements rounded to nearest pixel (#4142)
-
Update npm non-major dependencies (#4167)
-
Dialog: Removed the autofocus attribute from built in closeButton, which prevented setting autofocus on other elements in Dialog. (#4159)
-
Field.Counter: Adjustments to how it works internally. (#4140) Now, none of the validation messages underneath are
aria-describedon the input/textarea. This is done by anaria-liveregion only for screenreaders.A new
hintprop has been added, to announce how many characters are allowed when entering the input/textarea. Default value is'Maks %d tegn tillatt.'.
@digdir/designsystemet-theme
Patch Changes
- Update design-tokens to reflect changes made in
@digdir/designsystemet. See changelog for changes (#4105)
1.6.1
@digdir/designsystemet
Patch Changes
@digdir/designsystemet-css
Patch Changes
-
pagination: If direct child of
lihasaria-hidden="true"it setsvisibility: hidden;(#4123) -
input: Add outline on
:hoverwhen not:focus-visible,:disabledor[readonly]. This adds a few new CSS variables: (#4125)--dsc-input-outline-color--hover--dsc-input-outline-color--toggle--hover--dsc-input-outline-width--hover--dsc-input-outline-style--hover
-
Chip, Tag: Ensure font size scales correctly with the current size mode by using the token
--ds-body-sm-font-size. Note: there might be a small visual change forChipused without explicitdata-size, since it used to havefont-size: 90%. (#4098)
@digdir/designsystemet-react
Patch Changes
-
Button: For
icon-buttons, dont render children if loading is true (#4023) -
Update npm non-major dependencies (#4129)
-
Suggestion: Updated u-combobox to 1.0.2 to fix a bug where input would not clear in conrolled mode (#4119)
-
Update npm non-major dependencies (#4110)
-
usePagination: Hide prev/next buttons with
aria-hidden="true"andvisibility: hidden;instead of disabling (#4123) -
Textfield: Move counter error message before error (#4104)
1.6.0
@digdir/designsystemet
Patch Changes
-
Add possiblity to override colors in config: (#4073)
-
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/designsystemet-css
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-defaultand color to--ds-color-text-default. (#4092)
Patch Changes
-
link: Change
:focus-visiblestyling 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/designsystemet-react
Minor Changes
- ToggleGroup: Added new prop
variantto enable newsecondarydesign option (#4092)
Patch Changes
-
Spinner: Allow using
aria-hiddenwhenaria-labelis 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-hiddeninstead ofaria-labelin situations with visible text (#4077)
@digdir/designsystemet-theme
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)
1.5.1
@digdir/designsystemet
Patch Changes
- Update dependency @types/ramda to ^0.31.1 (#4060)
@digdir/designsystemet-css
Patch Changes
- Field: Make sure
<select>and<textarea>is not on same line as label (#4048)
@digdir/designsystemet-react
Patch Changes
1.5.0
@digdir/designsystemet
Minor Changes
-
Sizing and size modes have been reimplemented align code and Figma implementations, and to support setting size mode in css queries. (#3866)
--ds-size-*variables are now independent of the element's font size, and only depend on the size mode, which aligns the code implementation with how the modes already worked in Figma. Important: This will have a large visual impact on existing code where size variables have been used to style Heading elements (e.g. margin).Read Sizes in code for info on how size modes work after these changes.
Patch Changes
- Update npm non-major dependencies (#4039)
@digdir/designsystemet-css
Minor Changes
-
Sizing and size modes have been reimplemented align code and Figma implementations, and to support setting size mode in css queries. (#3866)
--ds-size-*variables are now independent of the element's font size, and only depend on the size mode, which aligns the code implementation with how the modes already worked in Figma. Important: This will have a large visual impact on existing code where size variables have been used to style Heading elements (e.g. margin).Read Sizes in code for info on how size modes work after these changes.
@digdir/designsystemet-react
Minor Changes
-
Sizing and size modes have been reimplemented align code and Figma implementations, and to support setting size mode in css queries. (#3866)
--ds-size-*variables are now independent of the element's font size, and only depend on the size mode, which aligns the code implementation with how the modes already worked in Figma. Important: This will have a large visual impact on existing code where size variables have been used to style Heading elements (e.g. margin).Read Sizes in code for info on how size modes work after these changes.
Patch Changes
-
Update npm non-major dependencies (#4039)
-
Details: Updated
u-detailspackage to adress an issue where you could tab into the content when details was closed (firefox only) (#4022)
@digdir/designsystemet-theme
Minor Changes
-
Sizing and size modes have been reimplemented align code and Figma implementations, and to support setting size mode in css queries. (#3866)
--ds-size-*variables are now independent of the element's font size, and only depend on the size mode, which aligns the code implementation with how the modes already worked in Figma. Important: This will have a large visual impact on existing code where size variables have been used to style Heading elements (e.g. margin).Read Sizes in code for info on how size modes work after these changes.
1.4.0
@digdir/designsystemet
Patch Changes
@digdir/designsystemet-css
Patch Changes
-
Card: If
.ds-linkis used in a heading, remove focus and active styling (#4005) -
Fieldset: Removed uneccessary margin when visually hiding
Fieldset.Legendwith.ds-sr-only(#3996) -
Update npm non-major dependencies (#3989)
-
Button: Change sizes of svg and icon (#3998)
- In icon button (
[data-icon]), it is1.5em - In normal button, it is
1.3em
- In icon button (
@digdir/designsystemet-react
Patch Changes
-
Update npm non-major dependencies (#3989)
-
Update npm non-major dependencies (#4014)
-
Switch: correct jsdoc on
labelprop (#3984)
@digdir/designsystemet-theme
Minor Changes
- Default export: changed color values and removed
brand3(#4008)- The old values are still available from
import '@digdir/designsystemet-theme/digdir.css';
- The old values are still available from
1.3.0
@digdir/designsystemet
Minor Changes
- Renamed $designsystemet.json to $designsystemet.jsonc so token-studio ignores the file (#3970)
Patch Changes
- Update npm non-major dependencies (#3973)
@digdir/designsystemet-react
Minor Changes
-
Suggestion: TypeScript typing now depends on whether
multipleis true or false. Whenmultipleis true,selected,defaultSelectedandonSelectedChangeare typed for arrays of items. Otherwise, they are typed for single items. (#3909) -
Suggestion: Removed type
SuggestionValues, as this union is no longer useful. UsestringorSuggestionItemwhenmultipleisfalse, andstring[]orSuggestionItem[]whenmultipleistrue. (#3909) -
Suggestion: remove deprecated props
value,defaultValueandonValueChange. Useselected,defaultSelectedandonSelectedChangeinstead. (#3909)
Patch Changes
1.2.0
@digdir/designsystemet
Patch Changes
@digdir/designsystemet-css
Minor Changes
-
Badge: Allow adjusting the position of the badge using css variables
--dsc-badge-{top,bottom,left,right}(#3965) -
Link: Automatically add recommended spacing to icons (svg or img), when there is also a
<span>present. (#3942)<Link><Icon />Text</Link>will not get spacing<Link><Icon /> Text</Link>will get a leading underlined space character between icon and text, which looks bad<Link><Icon /><span>Text</span></Link>will get recommended spacing
Patch Changes
- Dialog: Rework close button (#3959)
- An empty button with
data-command="close"will get an "X" icon - If
button[data-command="close"]is the first child of.ds-dialog, it will float to the top right
- An empty button with
@digdir/designsystemet-react
Patch Changes
-
Field: Don't check for hidden elements (#3950)
-
Dialog: Add
data-command="close", which you can use to close the modal. (#3959)- This removes use of
<form>on our close button
- This removes use of
-
Dialog: Deprecate
asChild. Should always be a<dialog>element. Will be removed in the next major version (#3940) -
Tabs.Panel: Add
aria-labelledbyto associated button (#3939) -
Tabs: Don't conditionally render
TabPanel, usehiddeninstead (#3936)- If any of your
TabPanelcomponents have heavy code, consider conditional rendering to improve performance
- If any of your
-
Update dependency @u-elements/u-details to ^0.1.2 (#3955)
-
Update npm non-major dependencies (#3923)
-
Skeleton: Deprecate
charactersprop, which never had any effect. (#3961) -
Tooltip: Close on click outside, applicable for mobile devices (#3957)
1.1.10
@digdir/designsystemet
Patch Changes
-
Update dependency zod-validation-error to v4 (#3897)
-
update dependency @types/ramda to ^0.31.0 (#3922)
-
Update dependency zod to v4 (#3896)
-
Updated non-major dependencies (#3890)
-
Updated non-major dependencies (#3894)
@digdir/designsystemet-css
Patch Changes
-
Details: Using
margininstead ofpaddingto style children ofDetails, to allow direct children such asButton(#3883) -
Updated non-major dependencies (#3890)
@digdir/designsystemet-react
Patch Changes
1.1.9
@digdir/designsystemet-react
Patch Changes
- Add documentation for augmented React data attribute types (
data-color,data-size,data-color-scheme) (#3881)
1.1.8
@digdir/designsystemet
Patch Changes
- Add typings for
ColorScheme(used fordata-color-scheme) (#3879)
@digdir/designsystemet-react
Patch Changes
- Add typings for
data-color-schemeon JSX elements in React usingreact-types.d.ts(#3879)
1.1.7
@digdir/designsystemet-react
Patch Changes
1.1.6
@digdir/designsystemet
Patch Changes
-
Added new type declaration files for theme types when building tokens;
types.d.ts. Use this instead ofcolors.d.ts. (#3837) -
Deprecate
colors.d.tsfromtokens build. Replaced bytypes.d.ts. (#3837) -
Updated non-major dependencies (#3868)
-
Add new export for augmented theme types;
@digdir/designsystemet/types. (#3837) Use this with generated theme declaration file for types for your theme.
@digdir/designsystemet-react
Patch Changes
-
Fix missing jsdocs for compound components (Component with sub-components on the component, e.g.
Details.Summaryetc) (#3865) -
Updated non-major dependencies (#3868)
-
Deprecate
@digdir/designsystemet-react/colormodule. Replaced by@digdir/designsystemet/types. (#3837)
@digdir/designsystemet-theme
Patch Changes
- Deprecate
colors.d.tsfromtokens build. Replaced bytypes.d.ts. (#3837)
1.1.5
@digdir/designsystemet-css
Patch Changes
-
Table: (#3859)
- sorting icon never shrinks, even when using
Buttoncomponent (which isdisplay: flex) as parent - with
data-borderadjustsborder-radiusaccording toborder-width
- sorting icon never shrinks, even when using
-
Tabs: adjusted to allow non-tab-button-elements inside
tablist(#3859) -
Details: content using
overflow: hiddento prevent margin clipping (#3859)
@digdir/designsystemet-react
Patch Changes
-
Suggestion: Fix controlled value being cleared if edited in React 18 strict mode. (#3853)
-
Dialog: Fix
onClosebeing called twice when React is in strict mode (#3854) -
Field, Checkbox, Radio, Switch, Textfield: Fix duplicate ids in
aria-describedbywhen React is in strict mode (#3854) -
Suggestion: (#3857)
- Deprecated
value, useselectedinstead - Deprecated
defaultValue, usedefaultSelectedinstead - Deprecated
onValueChange, useonSelectedChangeinstead - Deprecated
Suggestion.Chips, userenderSelectedonSuggestioninstead - Add
onBeforeMatchtoSuggestionfor custom matching - Revert input
valueto currentselectedwhen no match
- Deprecated
1.1.4
@digdir/designsystemet
Patch Changes
-
Updated non-major dependencies (#3803)
-
Fixed type declaration producing invalid syntax when a color name includes hyphens (#3802)
-
fix: letter-spacing now uses
emunit instead of invalid percentage unit (#3759)- Note: Users should run
npx @digdir/designsystemet@latest tokens build <options>to rebuild css-variables with now valid letter-spacing. This will result in a slight visual change in the typography.
- Note: Users should run
-
Removed non-working
--previewoption (#3758) -
Updated non-major dependencies (#3838)
@digdir/designsystemet-css
Patch Changes
-
Avatar: Text as children have same font-size as data-initials (#3835)
-
Select: Flip chevron when open, uses
:openwith limited availability. Does not work in Safari (#3846) -
Updated non-major dependencies (#3803)
-
SkipLink: Class is now
ds-skip-link. Filename is nowskip-link.css. (#3829) The old class and file is still present, and can imported and used as before. This will be removed in the next major version. -
ToggleGroup: Class is now
ds-toggle-group. Filename is nowtoggle-group.css. (#3829) The old class and file is still present, and can imported and used as before. This will be removed in the next major version.
@digdir/designsystemet-react
Patch Changes
-
Internal change: Removed index files that only exported one component. (#3836)
-
Avatar: Text as children have same font-size as data-initials (#3835)
-
Suggestion: fix crash when changing the value if the initial value was an empty string (#3818)
-
Updated non-major dependencies (#3803)
-
Suggestion: now triggers change on enter or blur, or when clicking an option - not while typing (#3833)
-
Suggestion: Use popover API for datalist (#3845)
-
Updated non-major dependencies (#3838)
-
Internal change: Use kebab case instead of pascal case for files and folders (#3819)
@digdir/designsystemet-theme
Patch Changes
- fix: letter-spacing now uses
emunit instead of invalid percentage unit (#3759)- Note: Users should run
npx @digdir/designsystemet@latest tokens build <options>to rebuild css-variables with now valid letter-spacing. This will result in a slight visual change in the typography.
- Note: Users should run
1.1.3
@digdir/designsystemet-css
Patch Changes
-
Field: The gap between
labelandRadio/Checkbox/Switchis now clickable (#3785) -
Details: Single outer padding when multiple children (#3796)
-
Round to nearest 1px a few places (#3786)
@digdir/designsystemet-react
Patch Changes
-
Field: Make sure there will be no duplicate IDs when having multiple of the same
data-fieldtype (#3794) -
Textfield: Fix wrong type definition for
typeprop (#3797) -
Suggestion: Visual value didn't correctly update in single mode when controlled value was updated externally (#3782)
-
Fix typo in
Suggestion.Chipsjsdoc (#3798) -
usePagination: Don't send negative pages if
showPagesis greater thantotalPages(#3793)
1.1.2
@digdir/designsystemet-css
Patch Changes
- Preserve visual appearance of components in print, excluding large surface backgrounds (#3765)
@digdir/designsystemet-react
Patch Changes
- Suggestion: Ensure the hidden
<select>element, which is only rendered whenSuggestionhas aname, gets a deterministic id instead of one that changes on every page load. (#3777)
1.1.1
@digdir/designsystemet
Patch Changes
-
Updated non-major dependencies (#3774)
-
Fix zod schema error when creating tokens from config file (#3774)
@digdir/designsystemet-css
Patch Changes
-
Updated non-major dependencies (#3774)
-
Suggestion: Reduced padding around
chipremove-button (#3774)
@digdir/designsystemet-react
Patch Changes
1.1.0
@digdir/designsystemet
Patch Changes
-
Update dependency
@commander-js/extra-typingsto v14 (#3734) -
Add experimental option to generate Tailwind config. (#3710) Use
--experimental-tailwindwhen runningtokens buildto generate. -
Round
--ds-size-*CSS variables by 1px instead of by 0.0625rem. With the (#3681) default root font size (16px) the result is the same, but if the user has changed the browser's font size we now avoid fractional pixels. -
Remove unused dependencies (#3737)
-
Updated non-major dependencies (#3696)
-
Updated non-major dependencies (#3732)
@digdir/designsystemet-css
Patch Changes
@digdir/designsystemet-react
Minor Changes
-
Suggestion: API has changed to support multiple values. See Storybook for documentation (#3675)
-
MultiSuggestion: Remove component. Use
<Suggestion>withmultiple. See Storybook for documentation (#3675)
Patch Changes
-
Field: Add
asChildprop to change the default rendered element (#3704) -
Updated non-major dependencies (#3696)
-
fix(Tab): static
useId()in rendering (#3731) -
Updated non-major dependencies (#3732)
@digdir/designsystemet-theme
Patch Changes
-
Round
--ds-size-*CSS variables by 1px instead of by 0.0625rem. With the (#3681) default root font size (16px) the result is the same, but if the user has changed the browser's font size we now avoid fractional pixels. -
Add export for tailwind config for default theme -
@digdir/designsystemet-theme/tailwind. (#3710)
1.0.8
@digdir/designsystemet-theme
Patch Changes
1.0.7
@digdir/designsystemet
Patch Changes
-
Updated non-major dependencies (#3594)
-
Updated non-major dependencies (#3630)
-
Updated non-major dependencies (#3656)
-
Remove outdated
@layerdefinition in generated theme file (#3551) -
Update zod to v4 (#3639)
@digdir/designsystemet-css
Patch Changes
-
Updated non-major dependencies (#3594)
-
Small fixes related to rtl text direction support in multiple components (#3580)
-
Tooltip: add support for Popover-Polyfill (#3645) -
Fix
@charsetusing wrong quotations marks (#3551) -
Dialog: Prefix keyframes (
slide-in,fade-in) withds-dialog(#3602)
@digdir/designsystemet-react
Patch Changes
1.0.6
@digdir/designsystemet
Patch Changes
-
Added
convertColorandgetLuminanceFromColorfunctions (#3512) -
Updated non-major dependencies (#3514)
-
Added colorjs.io as dependency (#3512)
@digdir/designsystemet-css
Patch Changes
- Table: Use font weight
--ds-font-weight-semiboldon header cells (th) (#3508)
@digdir/designsystemet-react
Patch Changes
-
Updated non-major dependencies (#3514)
-
Tooltip: Change element to
spanto be able to render inpand similar elements (#3577) -
ErrorSummary: no longer setsaria-live,aria-relevantandroleattributes. This implementation caused accessibility issues. See the updated accesibility documentation forErrorSummaryfor guidance on how to properly announce the content to screen readers. (#3555) -
Export
LabelRequiredtype (#3564)
1.0.5
@digdir/designsystemet
Patch Changes
-
Fix empty theme file being built when no
support-colorwere defined (#3511) -
Add design-token version to metadata in built theme file (#3510)
@digdir/designsystemet-theme
Patch Changes
1.0.4
@digdir/designsystemet
Patch Changes
-
Remove incomplete
react-beta-to-v1migration. (#3495) -
Improved
tokens buildconsole log and when files are written to disk (#3338) -
Updated metadata in theme file (#3479)
-
Add file (
$designsystemet.json) with metadata fortokens create(#3498) -
Refactored
tokens buildandcreatecode to support future features (#3338) -
Updated non-major dependencies (#3351)
-
Remove individual theme CSS files from
tokens build. (#3475) -
tokens buildshould no longer pick up unwanted CSS files when making single theme file (#3338)
@digdir/designsystemet-css
Patch Changes
-
Add
unset:alltosummary::beforefor correct styling. (#3458) -
Add empty typings for easier import in typescript (#3446)
-
Fieldset: Fix visual regression in 1.0.3 which added unintended padding on
<legend>(#3427)
@digdir/designsystemet-react
Patch Changes
-
Details: Update
@u-elements/u-detailsto0.1.1(#3458) -
Suggestion: Fix keyboard focus trap on list (#3422)
-
Updated non-major dependencies (#3351)
-
Tooltip: Add
autoPlacementprop. By defaulttrue, set tofalseto disable auto placement (#3429) -
MultiSuggestion: Fix keyboard focus trap on list (#3422)
@digdir/designsystemet-theme
Patch Changes
1.0.3
@digdir/designsystemet
Patch Changes
-
Fix
data-coloranddata-color-schemeused on the same element not working in some browsers (#3354) -
Dark mode color adjustments (#3386)
- Reduced the saturation of the colors in dark mode by about 50%.
- Made the background- and surface colors a bit darker.
- Made the text-default color a bit brighter for better contrast.
-
General color adjustments (#3386)
- Changed the luminance of border-default to work on top of surface-hover with 3:1 contrast.
- Changed the luminance of text-subtle and border-strong to work on top of surface-hover with 4.5:1 contrast.
@digdir/designsystemet-css
Patch Changes
-
Replaced usage of
background-default/background-tintedcolor-variables withsurface-default/surface-tintedin components (#3412)DetailsInputFieldSuggestion/MultiSuggestionToggleGroup
-
ToggleGroup: Removed padding between border and buttons, moved focus to be inset on buttons (#3356)
-
Label: Move readonly styling from label to base for more robust setup. Now styles any label & legend element inside field & fieldset. (#3413)
-
Details: Added
--dsc-details-border-block-widthto fix typo in--dsc-details-border-block-wdith. (#3405) The old variable is kept as is, so there are no breaking changes. -
Added new class
ds-readonly-iconfor displaying a the readonly icon (padlock) before an element. (#3413) -
ToggleGroup: Add horizontal scroll when items can't fit in container (#3356)
@digdir/designsystemet-react
Patch Changes
-
Dropdown: Fix
classNamenot being applied toDropdownButton(#3384) -
Field: Removed logic that added
aria-disabledto elements withdata-fieldattribute if input was disabled (#3407)
@digdir/designsystemet-theme
Patch Changes
1.0.2
@digdir/designsystemet
Patch Changes
-
Improve build for built in colors. (#3247)
-
Fix missing
--ds-color-surface-defaultfor colorsdanger,warning,info,successandneutral. (#3247)
@digdir/designsystemet-css
Patch Changes
- Card: Fix default background color token (#3331)
@digdir/designsystemet-react
Patch Changes
-
useCheckboxGroup: Fix React crashing when conditionally rendering
getCheckboxProps. (#3342) -
useRadioGroup: Fix React crashing when conditionally rendering
getRadioProps(#3342)
@digdir/designsystemet-theme
Patch Changes
- Fix missing
--ds-color-surface-defaultfor colorsdanger,warning,info,successandneutral. (#3247)
1.0.0
@digdir/designsystemet
Major Changes
-
🎉 Version 1.0 of Designsystemet! 🎉 (#3290)
We are excited to announce the release of Version 1.0 of Designsystemet! This marks a significant milestone as we establish a solid foundation for future development. 🚀
@digdir/designsystemet-css
Major Changes
-
🎉 Version 1.0 of Designsystemet! 🎉 (#3290)
We are excited to announce the release of Version 1.0 of Designsystemet! This marks a significant milestone as we establish a solid foundation for future development. 🚀
@digdir/designsystemet-react
Major Changes
-
🎉 Version 1.0 of Designsystemet! 🎉 (#3290)
We are excited to announce the release of Version 1.0 of Designsystemet! This marks a significant milestone as we establish a solid foundation for future development. 🚀
@digdir/designsystemet-theme
Major Changes
-
🎉 Version 1.0 of Designsystemet! 🎉 (#3290)
We are excited to announce the release of Version 1.0 of Designsystemet! This marks a significant milestone as we establish a solid foundation for future development. 🚀