Skip to content

Commit a32f834

Browse files
committed
add role=group
1 parent c248045 commit a32f834

File tree

1 file changed

+20
-12
lines changed

1 file changed

+20
-12
lines changed

src/demo-app/a11y/card/card-a11y.html

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
<section>
2+
<h2>Dogs group</h2>
3+
<p>Showing a card with a group of content</p>
4+
<md-card class="example-card" role="group">
5+
<md-card-content>
6+
<p>Herding Group</p>
7+
<p>Hound Group</p>
8+
<p>Non-Sporting Group</p>
9+
<p>Sporting Group</p>
10+
<p>Terrier Group</p>
11+
<p>Toy Group</p>
12+
<p>Working Group</p>
13+
<p>Foundation Stock Service</p>
14+
<p>Miscellaneous Class</p>
15+
</md-card-content>
16+
</md-card>
17+
</section>
18+
119
<section>
220
<h2>Husky</h2>
321
<p>Showing a card with title only</p>
@@ -19,8 +37,7 @@ <h2>Malamute</h2>
1937
<section>
2038
<h2>German Shepherd</h2>
2139
<p>
22-
Showing a card with title, subtitle, and a footer. The footer displays a progress bar when
23-
user search for more dogs.
40+
Showing a card with title, subtitle, and a footer.
2441
</p>
2542
<md-card class="example-card">
2643
<md-card-subtitle>Dog breed</md-card-subtitle>
@@ -30,17 +47,9 @@ <h2>German Shepherd</h2>
3047
Germany. The breed's officially recognized name is German Shepherd Dog in the English
3148
language. The breed is also known as the Alsatian in Britain and Ireland.
3249
</md-card-content>
33-
<md-card-actions>
34-
Search for more dogs...
35-
<button md-button (click)="showProgress = !showProgress">
36-
{{showProgress ? 'Cancel' : 'Search'}}
37-
</button>
38-
</md-card-actions>
3950
<md-card-footer>
40-
<md-progress-bar mode="indeterminate" aria-label="Loading" *ngIf="showProgress">
41-
</md-progress-bar>
51+
People also search for Rottweiler, Siberian Husky, Labrador Retriever, Doberman Pinscher
4252
</md-card-footer>
43-
4453
</md-card>
4554
</section>
4655

@@ -81,5 +90,4 @@ <h2>Shiba Inu</h2>
8190
<button md-button (click)="openSnackbar('Shared Shiba Inu')">share</button>
8291
</md-card-actions>
8392
</md-card>
84-
8593
</section>

0 commit comments

Comments
 (0)