components
components copied to clipboard
Link in Avatar
Make it possible to replace the title with a link. (both figma and code) Refactor display of the name, so it doesn't use the name object but just slot to render the name (developers can ass the link in the slot)
### Tasks
- [x] replace title with link (figma)
- [x] make it possible to add a link instead of a title (code)
- [x] avatar + link are clickable as a whole, they do have the same target
- [x] add a href styling (deliver tokens) use borderRadius.focusring.default for border radius of focus ring
- [ ] Documentation: possible to use as a link, but not usable as an action (wrap it in a clickable element) (Alvaro)
My suggestion would be to have an href property on the avatar, and then have the avatar wrap the display name in a link tag. This is also how <sl-tab> works.