Skip to content

Commit

Permalink
docs: add accessible label to tag stories (#1606)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vahid1919 authored Nov 6, 2024
1 parent 88fa31e commit 484f683
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/components/src/templates/tag.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,28 +25,33 @@ export const filterTagGroupMorningstarRating = {
name: 'Filter Tag Group with Morningstar Rating',
render: () => html`
<sd-tag selected>
<label class="sr-only">5 stars</label>
<sd-icon name="system/star-filled" color="currentColor"></sd-icon>
<sd-icon name="system/star-filled" color="currentColor"></sd-icon>
<sd-icon name="system/star-filled" color="currentColor"></sd-icon>
<sd-icon name="system/star-filled" color="currentColor"></sd-icon>
<sd-icon name="system/star-filled" color="currentColor"></sd-icon>
</sd-tag>
<sd-tag>
<label class="sr-only">4 stars</label>
<sd-icon name="system/star-filled" color="currentColor"></sd-icon>
<sd-icon name="system/star-filled" color="currentColor"></sd-icon>
<sd-icon name="system/star-filled" color="currentColor"></sd-icon>
<sd-icon name="system/star-filled" color="currentColor"></sd-icon>
</sd-tag>
<sd-tag>
<label class="sr-only">3 stars</label>
<sd-icon name="system/star-filled" color="currentColor"></sd-icon>
<sd-icon name="system/star-filled" color="currentColor"></sd-icon>
<sd-icon name="system/star-filled" color="currentColor"></sd-icon>
</sd-tag>
<sd-tag>
<label class="sr-only">2 stars</label>
<sd-icon name="system/star-filled" color="currentColor"></sd-icon>
<sd-icon name="system/star-filled" color="currentColor"></sd-icon>
</sd-tag>
<sd-tag>
<label class="sr-only">1 star</label>
<sd-icon name="system/star-filled" color="currentColor"></sd-icon>
</sd-tag>
`
Expand Down

0 comments on commit 484f683

Please sign in to comment.