Element: #845 Decorative (display/avatar)
What it shows: Avatars next to a visible name, marked decorative so a screen reader says the name once.
When to use: Lists, headers and comment rows where the avatar repeats the name written beside it.
Spec:
- `` followed by `{name}` in each `
`
- People are `Ada Lovelace` and `Grace Hopper` in a `ul` with `list-style: none`
Tags: avatar, decorative, aria-hidden, name, list, a11y
Needs: @codeatlasdev/ui@4.6.0
Components: Avatar
Live demo: https://ui.codeatlas.com.br/docs/display/avatar#decorative
{#each ['Ada Lovelace', 'Grace Hopper'] as name}
-
{name}
{/each}