Skip to content

feat(Suggestion): add count display mode for multiple selection#4943

Draft
adrianflatner wants to merge 3 commits into
digdir:mainfrom
adrianflatner:feat/suggestion-count-tag
Draft

feat(Suggestion): add count display mode for multiple selection#4943
adrianflatner wants to merge 3 commits into
digdir:mainfrom
adrianflatner:feat/suggestion-count-tag

Conversation

@adrianflatner
Copy link
Copy Markdown
Contributor

@adrianflatner adrianflatner commented Jun 3, 2026

Summary (WIP)

When display="count" is set on a multiple Suggestion, selected chips
are hidden and a count tag (e.g. "2 valgt") is shown inside the input
using a CSS ::before pseudo-element with content: attr(data-count).

The tag hides on focus to avoid overlapping typed text.

Customize the label via the --dsc-count-label CSS variable
(defaults to "valgt").

Checks

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Jun 3, 2026

🦋 Changeset detected

Latest commit: 1aeaf16

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 5 packages
Name Type
@digdir/designsystemet-react Minor
@digdir/designsystemet-css Minor
@digdir/designsystemet Minor
@digdir/designsystemet-types Minor
@digdir/designsystemet-web Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@adrianflatner adrianflatner force-pushed the feat/suggestion-count-tag branch from 1b01b38 to b4d5dfa Compare June 4, 2026 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant