You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/components/card.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,16 @@ You can also add an image to the card using the `@image` parameter:
23
23
</ul>
24
24
```
25
25
26
+
By default images will be considered decorative and ignored by screen readers, but if you want to provide an alt text for the image you can provide it with the `@alt` parameter:
27
+
28
+
```html
29
+
<ulclass="list-unstyled">
30
+
<EsCard@image="/ember-logo.png"@alt="Ember Logo">
31
+
This is a card
32
+
</EsCard>
33
+
</ul>
34
+
```
35
+
26
36
By default the card will have the image to the left of the content. If you want to make the card a **vertical** card you can apply the `vertical` attribute;
0 commit comments