Skip to content

fix(details): use DetailsHTMLAttributes#4557

Merged
oddvernes merged 6 commits intomainfrom
fix/react-types
Mar 2, 2026
Merged

fix(details): use DetailsHTMLAttributes#4557
oddvernes merged 6 commits intomainfrom
fix/react-types

Conversation

@oddvernes
Copy link
Collaborator

@oddvernes oddvernes commented Mar 2, 2026

resolves #4472

notes:

  • Breadcrumbs.List uses an ol-element, so it could be typed with OlHTMLAttributes, however, none of these extra attributes are relevant or wanted on this react implementation i think (reversed, start, type)
  • Similarly Breadcrumbs.Item is a li that could be given LiHTMLAttributes, but that only adds value which is not relevant here

Otherwise I didn't find any wrong types, just ButtonHTMLAttributes to Popover.Trigger, and the rest is importing types instead of global React.type

@changeset-bot
Copy link

changeset-bot bot commented Mar 2, 2026

🦋 Changeset detected

Latest commit: acfe8d3

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

Preview deployments for this pull request:

storybook - 2. Mar 2026 - 14:56

@oddvernes oddvernes marked this pull request as ready for review March 2, 2026 13:54
@oddvernes oddvernes merged commit 65491c2 into main Mar 2, 2026
19 checks passed
@oddvernes oddvernes deleted the fix/react-types branch March 2, 2026 14:29
@github-actions github-actions bot mentioned this pull request Mar 2, 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.

Check all types are correct

2 participants