Skip to content

fix(toggle-group): re-introduce disabled on items#4618

Merged
mimarz merged 2 commits intomainfrom
fix/toggle-group-disabled
Mar 13, 2026
Merged

fix(toggle-group): re-introduce disabled on items#4618
mimarz merged 2 commits intomainfrom
fix/toggle-group-disabled

Conversation

@oddvernes
Copy link
Collaborator

@oddvernes oddvernes commented Mar 12, 2026

resolves #4581

the styling is now done via setting aria-disabled on the label (because it has ds-button class this works), but perhaps it can be done with a bit of :has selector in .ds-toggle-group instead to avoid that extra dom-manipulation needed when used as raw web. But then again using disabled is not something we recommend in general so 🤷

@changeset-bot
Copy link

changeset-bot bot commented Mar 12, 2026

🦋 Changeset detected

Latest commit: 5a3e4c2

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 Patch
@digdir/designsystemet-web Patch
@digdir/designsystemet Patch
@digdir/designsystemet-css Patch
@digdir/designsystemet-types Patch

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

@github-actions
Copy link
Contributor

github-actions bot commented Mar 12, 2026

Preview deployments for this pull request:

storybook - 12. Mar 2026 - 15:04

Copy link
Member

@Barsnes Barsnes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems fine to me. Could maybe add some comments in code, but I think this is good enough

@mimarz mimarz merged commit 9f7d318 into main Mar 13, 2026
16 checks passed
@mimarz mimarz deleted the fix/toggle-group-disabled branch March 13, 2026 11:35
@github-actions github-actions bot mentioned this pull request Mar 13, 2026
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.

Support for using disabled in toggle-group

3 participants