Skip to content

Commit d858ad9

Browse files
devversionandrewseguin
authored andcommitted
chore: better color usage for chip demo (#7254)
* Improves the example for the chips that shows how the color can be set for chips. * Fixes a typo in the chips readme References #7243
1 parent 85ce16d commit d858ad9

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/lib/chips/chips.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ between the two components. This directive adds chip-specific behaviors to the i
3535
within `<mat-form-field>` for adding and removing chips. The `<input>` with `MatChipInput` can
3636
be placed inside or outside the chip-list element.
3737

38-
An exmaple of chip input placed inside the chip-list element.
38+
An example of chip input placed inside the chip-list element.
3939
<!-- example(chips-input) -->
4040

4141
An example of chip input placed outside the chip-list element.
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<mat-chip-list class="mat-chip-list-stacked">
2-
<mat-chip *ngFor="let chipColor of availableColors"
3-
selected="true"
4-
color="{{chipColor.color}}">
5-
{{chipColor.name}}
2+
<mat-chip *ngFor="let chip of availableColors" selected="true" [color]="chip.color">
3+
{{chip.name}}
64
</mat-chip>
75
</mat-chip-list>

0 commit comments

Comments
 (0)