components icon indicating copy to clipboard operation
components copied to clipboard

Link in Avatar

Open DanielleRameau opened this issue 2 years ago • 3 comments

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)

DanielleRameau avatar Dec 13 '23 12:12 DanielleRameau

Uploading Screenshot 2023-12-13 at 13.00.30.png…

DanielleRameau avatar Dec 13 '23 12:12 DanielleRameau

Image

DanielleRameau avatar Mar 05 '24 08:03 DanielleRameau

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.

jpzwarte avatar Mar 18 '24 09:03 jpzwarte