Changelog
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. 🚀