Skip to content

fix(web): test friendliness#4672

Draft
eirikbacker wants to merge 13 commits intomainfrom
fix/test-friendliness
Draft

fix(web): test friendliness#4672
eirikbacker wants to merge 13 commits intomainfrom
fix/test-friendliness

Conversation

@eirikbacker
Copy link
Copy Markdown
Contributor

  • Several teams have experienced that their tests needs rework after launching @digdir/designsystemet-web
  • This branch helps enhance backwards compatibility also for tests

Fixes:

  • <Pagination.Button> again extends <Button> as it used to in @digdir/designsystemet-react
  • invokers-polyfill/fn is inlined as the module resolvement is not Jest compatible
  • ToggleGroup now uses pure aria-label instead og data-toggle-group
  • All rendering runs instantly if possible (no more requestAnimationFrame+debounce in mutations)
  • ReadOnly does not stop native actions like CMD+D for bookmarking etc
  • Field has more surgical control of re-rendering to boost performance
  • Field code is re-tested in screen readers and now includes documentation on why aria-labelledby is needed for fieldsets

@eirikbacker eirikbacker self-assigned this Mar 26, 2026
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Mar 26, 2026

🦋 Changeset detected

Latest commit: 991f2dd

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-web Patch
@digdir/designsystemet-react 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
Copy Markdown
Contributor

github-actions bot commented Mar 26, 2026

Preview deployments for this pull request:

storybook - 28. Mar 2026 - 14:24

themebuilder - 28. Mar 2026 - 14:24

www - 28. Mar 2026 - 14:30

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