Skip to content

fix(web): test friendliness#4672

Open
eirikbacker wants to merge 36 commits intomainfrom
fix/test-friendliness
Open

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

Conversation

@eirikbacker
Copy link
Copy Markdown
Contributor

@eirikbacker eirikbacker commented Mar 26, 2026

  • 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
  • Important: Fixing Link with with icon styling

@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: 3c31d10

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 - 1. Apr 2026 - 15:44

themebuilder - 1. Apr 2026 - 15:45

www - 1. Apr 2026 - 15:51

@eirikbacker eirikbacker marked this pull request as ready for review April 1, 2026 08:06
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.

2 participants