Skip to content

style(card): add support for <picture>-based stretched images in navigation-type Card#4137

Merged
Barsnes merged 6 commits intodigdir:mainfrom
Nettsentrisk:patch-1
Nov 4, 2025
Merged

style(card): add support for <picture>-based stretched images in navigation-type Card#4137
Barsnes merged 6 commits intodigdir:mainfrom
Nettsentrisk:patch-1

Conversation

@Nettsentrisk
Copy link
Contributor

@Nettsentrisk Nettsentrisk commented Oct 13, 2025

Summary

Adds missing support for <picture> based images to be styled in the same manner as other media types within cards.

Checks

Extends support for using the picture element when stretching content out to the borders when acting as the sole child of the card component.
@changeset-bot
Copy link

changeset-bot bot commented Oct 13, 2025

🦋 Changeset detected

Latest commit: 87f8221

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

This PR includes changesets to release 4 packages
Name Type
@digdir/designsystemet-css Patch
@digdir/designsystemet-react Patch
@digdir/designsystemet Patch
@digdir/designsystemet-theme 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

@Nettsentrisk Nettsentrisk changed the title Add support for <picture>-based stretched images in navigation-type Card style(card): add support for <picture>-based stretched images in navigation-type Card Oct 13, 2025
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.

Hi, thanks for the PR!
You need to add a changeset, take a look at our changelogs to see how we format them

@Barsnes
Copy link
Member

Barsnes commented Nov 4, 2025

I have gone ahead and added a changeset to this branch - thanks for contributing!

@Barsnes Barsnes merged commit 70ca58d into digdir:main Nov 4, 2025
6 of 8 checks passed
@github-actions github-actions bot mentioned this pull request Nov 4, 2025
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