Skip to content

Commit f47e12e

Browse files
JamesJanssoncrisbeto
authored andcommitted
docs(material/chips): fix image stretching in examples (#25116)
Fix image stretch issue raised here: #19822 (cherry picked from commit 272a358)
1 parent 5568f90 commit f47e12e

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,14 @@
11
<mat-chip-list aria-label="Dog selection">
22
<mat-chip>
3-
<mat-chip-avatar>
4-
<img src="https://material.angular.io/assets/img/examples/shiba1.jpg" alt="Photo of a Shiba Inu"/>
5-
</mat-chip-avatar>
3+
<img matChipAvatar src="https://material.angular.io/assets/img/examples/shiba1.jpg" alt="Photo of a Shiba Inu"/>
64
Dog one
75
</mat-chip>
86
<mat-chip color="primary">
9-
<mat-chip-avatar>
10-
<img src="https://material.angular.io/assets/img/examples/shiba1.jpg" alt="Photo of a Shiba Inu"/>
11-
</mat-chip-avatar>
7+
<img matChipAvatar src="https://material.angular.io/assets/img/examples/shiba1.jpg" alt="Photo of a Shiba Inu"/>
128
Dog two
139
</mat-chip>
1410
<mat-chip color="accent">
15-
<mat-chip-avatar>
16-
<img src="https://material.angular.io/assets/img/examples/shiba1.jpg" alt="Photo of a Shiba Inu"/>
17-
</mat-chip-avatar>
11+
<img matChipAvatar src="https://material.angular.io/assets/img/examples/shiba1.jpg" alt="Photo of a Shiba Inu"/>
1812
Dog three
1913
</mat-chip>
2014
</mat-chip-list>

0 commit comments

Comments
 (0)