Skip to content

Conversation

@oddvernes
Copy link
Collaborator

@oddvernes oddvernes commented Dec 16, 2025

resolves #2306

Also adds asChild support to Avatar
adds --dsc-avatar-font-size variable to Avatar to make this easier to override (mainly for the +99 use case)

@changeset-bot
Copy link

changeset-bot bot commented Dec 16, 2025

🦋 Changeset detected

Latest commit: 4069ffd

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-css Minor
@digdir/designsystemet-react Minor
@digdir/designsystemet Minor
@digdir/designsystemet-theme Minor
@digdir/designsystemet-types Minor

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 Dec 16, 2025

Preview deployments for this pull request:

storybook - 15. Jan 2026 - 09:41

www - 15. Jan 2026 - 09:46

@oddvernes oddvernes marked this pull request as ready for review January 6, 2026 12:10
@eirikbacker
Copy link
Contributor

Agree on the EXPERIMENTAL_ 🤗 Just saw this; https://css-tricks.com/responsive-list-of-avatars-using-modern-css-part-1/ is there any inspiration we should draw from it? individual hovers? ☺️

@oddvernes
Copy link
Collaborator Author

oddvernes commented Jan 12, 2026

I concluded that individual hovers are too clunky and only works when the avatars are fairly spread apart 😅
There is a version of this when tabbing through the avatarts if they are focusabe (links)

@Barsnes
Copy link
Member

Barsnes commented Jan 12, 2026

I concluded that individual hovers are too clunky and only works when the avatars are fairly spread apart 😅 There is a version of this when tabbing through the avatarts if they are focusabe (links)

Since we are unsure, lets do EXPERIMENTAL_ first.
The component has quite a lot of API things to it as well, and I think it's good to release this and ask for feedback :)

If we have not recieved any concrete feedback or bug issues in 4/5 minor releases we can remove EXPERMIENTAL_. I believe this would give us enough time

@Barsnes
Copy link
Member

Barsnes commented Jan 12, 2026

@oddvernes let me know when www docs are good to be reviewd :)
Let's try to get this into our next release

oddvernes and others added 3 commits January 15, 2026 09:38
Co-authored-by: Tobias Barsnes <tobias.barsnes@digdir.no>
Co-authored-by: Tobias Barsnes <tobias.barsnes@digdir.no>
@oddvernes oddvernes merged commit e7649bc into main Jan 15, 2026
18 checks passed
@oddvernes oddvernes deleted the feat/avatar-stack branch January 15, 2026 08:52
@github-actions github-actions bot mentioned this pull request Jan 14, 2026
Barsnes added a commit that referenced this pull request Jan 20, 2026
Co-authored-by: Tobias Barsnes <tobias.barsnes@digdir.no>
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.

Add group of avatars to React

4 participants