Repository navigation
@digdir/designsystemet@1.24.0
Minor Changes
-
New
typesoutput for generating TypeScript declarations for your theme's colors (types.d.ts). Thecssoutput no longer creates type declarations by default, so add"types"tooutputto get them. (#5444) -
CLI: New
outputfield for choosing what the CLI creates. It defaults to["css"]. Each output is saved in a default folder, which you can change withdir: (#5416)"css": CSS, indesignsystemet"types": type declarations, indesignsystemet"design-tokens": design tokens, indesignsystemet/design-tokens
-
CLI: Set
cleanDirtotrueon an output in the newoutputfield to delete the files in itsdirbefore generating files.cleanDirisfalseby default, likeclean. Design tokens that are built from (tokensDir), and folders of outputs withcleanDir: false, are kept when they are inside a cleaned folder. Before deleting anything, the CLI stops with an error if a cleaned folder contains the config file, is one of those folders, is a symlink, or has a symlink on the way to one of them or to another output. (#5416) -
New
tailwindoption on thecssoutput. Set this to the desired Tailwind version to generate<theme>.tailwind.css. Defaults tofalse, which does not generate a Tailwind file. (#5438)"v3"generates the same file as before."v4"uses@theme inline, so Tailwind utilities reference the--ds-*variables directly anddata-color,data-color-schemeanddata-sizealso apply to them, at any depth in the DOM.
Patch Changes
-
Fix
<theme>.tailwind.cssmissing variables--text-sm,--text-mdand--text-lg, mapped to the body font sizes. Generate a new theme file to get the updated fixed file. (#5451) -
Deprecated: Commands
token createandtoken build. Usedesignsystemetwith newoutputfield indesignsystemet.config.jsonto configure outputs. (#5416) -
Deprecated unused design token
link.color.visited, CSS custom property--ds-link-color-visitedand config optionoverrides.linkVisited. To style visited links, style.ds-link:visitedinstead. (#5574) -
Replace
fast-globwith Node's built-infs.globin CSS migrations. Thanks @wfeiring (#5505) -
Update npm non-major dependencies (#5506)
-
Update npm non-major dependencies (#5479)
-
Update npm non-major dependencies (#5553)
-
Update npm non-major dependencies (#5588)
-
Update npm non-major dependencies (#5521)
-
Deprecated:
outDirandcleanare deprecated in the Config schema, and replaced byoutput[].dirandoutput[].cleanDirfor the respective output type. (#5416) -
CLI: The config file (
designsystemet.config.json), includingtypography, is no longer experimental. Future changes to the config schema follow semver and come with automatic migrations. (#5597) -
Tailwind: Sets CSS
@layerin<theme>.tailwind.cssfor easier usage (#5570) -
Add banner about usage to generated CSS theme and tailwind files. (#5570)
@digdir/designsystemet-css@1.24.0
Minor Changes
-
New
ds-focus--withinhelper class that adds the focus ring when the element or any of its descendants have focus (:focus-within). (#5569) -
CSS: Ensure utility classes such as
.ds-focusand.ds-iconalways take precedence over component by assigning them to a new CSS layerds.utils, ordered afterds.components. For exampleds-sr-onlywill now correctly take precedence overds-label. (#5594)
Patch Changes
-
Fix
<theme>.tailwind.cssmissing variables--text-sm,--text-mdand--text-lg, mapped to the body font sizes. Generate a new theme file to get the updated fixed file. (#5451) -
Link: Deprecated CSS custom property
--dsc-link-color--visited. Style.ds-link:visitedinstead. (#5574) -
Deprecated unused design token
link.color.visited, CSS custom property--ds-link-color-visitedand config optionoverrides.linkVisited. To style visited links, style.ds-link:visitedinstead. (#5574) -
Update npm non-major dependencies (#5506)
-
data-color: Sets
colorto--ds-color-text-defaultso text color updates when the color mode changes. (#5419) -
Suggestion: No longer counts the hidden empty option in the screen reader hit count when other options are shown (#5457)
-
Breadcrumbs, Chip, Dialog, Pagination, Suggestion: Added English translations of the default labels set in CSS custom properties. (#5501)
-
Table: No longer causes sort buttons to overflow border-radius (thanks @ericbstie) (#5441)
-
Alert, Error summary, Table: Revert
border-radiusfrom--ds-border-radius-lgto--ds-border-radius-mdto harmonize with sibling elements (#5440) -
Update npm non-major dependencies (#5479)
-
Table: Applies hover and sorted background to
th[aria-sort]instead of nested<button>(#5441) -
Update npm non-major dependencies (#5588)
-
Update npm non-major dependencies (#5521)
-
Dialog: Added a default label through the CSS custom property
--dsc-dialog-close-labelfor the close button. (#5501) -
Combobox: Use inline SVGs for icons (#5514)
@digdir/designsystemet-react@1.24.0
Patch Changes
-
Dialog: Deprecates
TriggerContextandTrigger, which will be removed in the next major version. Use native Invokers Commands API onButtonwithcommand="show-modal"(orcommand="--show-non-modal") andcommandforset to the dialog'sid. (#5580) -
Dropdown, Popover: Deprecates
TriggerContextandTrigger, which will be removed in the next major version. Use native Popover API onButtonwithpopovertargetset to the popover's or dropdown'sid. (#5580) -
Search: Deprecates
Search,Search.Input,Search.ClearandSearch.Button, which will be removed in the next major version. Read Search is being removed, what should you do? for how to add a search button, search icon or clear button. (#5579) -
Update npm non-major dependencies (#5506)
-
Combobox: Removed inline SVGs, now using inline CSS icons (#5514)
-
Update npm non-major dependencies (#5479)
-
Dialog: Fixed accessible name warning when heading is present (#5473)
-
ToggleGroup: Now allows overwriting
data-variantonToggleGroup.Item(#5455) -
Update npm non-major dependencies (#5553)
-
Remove
@navikt/aksel-iconsas a dependency (#5514) -
AvatarStack: Now stable, please switch from
EXPERIMENTAL_AvatarStacktoAvatarStack(#5496) -
Popover, Dropdown: Now stay in sync when opened or closed with the native Popover API, such as
showPopover(),hidePopover()ortogglePopover(), when not usingopen. Before, the next click on the trigger could do nothing, andEscor a click outside would not close it. (#5582) -
Update npm non-major dependencies (#5588)
-
Update npm non-major dependencies (#5521)
-
Dialog: Automatically uses the first heading as its accessible name if one is missing, and warns when neither is provided. (#5447)
-
Textarea: Fixed hydration warning (#5473)
@digdir/designsystemet-types@1.24.0
No changes in this release.
@digdir/designsystemet-web@1.24.0
Patch Changes
-
Suggestion: No longer counts the hidden empty option in the screen reader hit count when other options are shown (#5457)
-
Update npm non-major dependencies (#5479)
-
Dialog: Fixed accessible name warning when heading is present (#5473)
-
Update npm non-major dependencies (#5553)
-
Update npm non-major dependencies (#5521)
-
Automatically load relevant helpers when using isolated component files (
dialogloadsinvokers,fieldloadsreadonly,togglegrouploadsreadonlyandfocusgroup) (#5447) -
Dialog: Automatically uses the first heading as its accessible name if one is missing, and warns when neither is provided. (#5447)
figma-ui-kit@1.24.0
Patch Changes
-
Link: The icon on visited links now uses
text/subtle, the same color as the link text. It used to uselink/color/visited, an old variable that is no longer in use. If you have your own copy of the UI kit, see how to fix it in Figma. (#4969) (#5574) -
Search Deprecated in Figma and will be removed in the next major version. Read more about what you should do in Figma here (#5578) (#5596) by @Thunear