From d803ffcf954f92c95dcd4c00bd389302cf0086cb Mon Sep 17 00:00:00 2001 From: Cory LaViska Date: Fri, 31 Dec 2021 11:18:44 -0500 Subject: [PATCH] update alt attrib --- docs/components/avatar.md | 52 +++++++++++++++++++-------------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/docs/components/avatar.md b/docs/components/avatar.md index 0ccb298b8..61b3f5711 100644 --- a/docs/components/avatar.md +++ b/docs/components/avatar.md @@ -7,14 +7,14 @@ Avatars are used to represent a person or object. Like [images](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img), you should always provide `alt` text for avatars as alternate text for assistive devices. ```html preview - + ``` ```jsx react import { SlAvatar } from '@shoelace-style/shoelace/dist/react'; const App = () => ( - + ); ``` @@ -27,7 +27,7 @@ To use an image for the avatar, set the `image` and `alt` attributes. This will ```html preview ``` @@ -37,7 +37,7 @@ import { SlAvatar } from '@shoelace-style/shoelace/dist/react'; const App = () => ( ); ``` @@ -47,14 +47,14 @@ const App = () => ( When you don't have an image to use, you can set the `initials` attribute to show something more personalized than an icon. ```html preview - + ``` ```jsx react import { SlAvatar } from '@shoelace-style/shoelace/dist/react'; const App = () => ( - + ); ``` @@ -63,15 +63,15 @@ const App = () => ( When no image or initials are set, an icon will be shown. The default avatar shows a generic "user" icon, but you can customize this with the `icon` slot. ```html preview - + - + - + ``` @@ -81,15 +81,15 @@ import { SlAvatar, SlIcon } from '@shoelace-style/shoelace/dist/react'; const App = () => ( <> - + - + - + @@ -101,9 +101,9 @@ const App = () => ( Avatars can be shaped using the `shape` attribute. ```html preview - - - + + + ``` ```jsx react @@ -111,9 +111,9 @@ import { SlAvatar, SlIcon } from '@shoelace-style/shoelace/dist/react'; const App = () => ( <> - - - + + + ); ``` @@ -126,22 +126,22 @@ You can group avatars with a few lines of CSS.
@@ -174,22 +174,22 @@ const App = () => (