diff --git a/packages/mdc-chips/README.md b/packages/mdc-chips/README.md index d3362280cd6..e195abefa09 100644 --- a/packages/mdc-chips/README.md +++ b/packages/mdc-chips/README.md @@ -46,13 +46,17 @@ npm install @material/chips
- Chip One + + Chip One +
- Chip Two + + Chip Two +
... @@ -98,7 +102,9 @@ However, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any
event - Add to calendar + + Add to calendar + ``` @@ -111,7 +117,9 @@ A trailing icon comes with the functionality to remove the chip from the set. If
- Jane Smith + + Jane Smith + cancel @@ -144,9 +152,11 @@ Filter chips are a variant of chips which allow multiple selection from a set of - Filterable content + + Filterable content + - +
... ``` @@ -165,7 +175,9 @@ To use a leading icon in a filter chip, put the `mdc-chip__icon--leading` elemen - Filterable content + + Filterable content + ... @@ -223,7 +235,9 @@ To display a pre-selected filter or choice chip, add the class `mdc-chip--select
- Add to calendar + + Add to calendar +
@@ -243,7 +257,9 @@ To pre-select filter chips that have a leading icon, also add the class `mdc-chi - Filterable content + + Filterable content + @@ -258,13 +274,15 @@ To meet this requirement, add the following to your chip: ```html
- +
``` diff --git a/packages/mdc-chips/_mixins.scss b/packages/mdc-chips/_mixins.scss index 3020fea1951..be3b5efb7e0 100644 --- a/packages/mdc-chips/_mixins.scss +++ b/packages/mdc-chips/_mixins.scss @@ -146,7 +146,7 @@ $ripple-target: ".mdc-chip__ripple"; } } - .mdc-chip__text:focus { + .mdc-chip__primary-action:focus { @include feature-targeting-mixins.targets($feat-structure) { outline: none; } diff --git a/packages/mdc-chips/chip/test/component.test.ts b/packages/mdc-chips/chip/test/component.test.ts index 50bfe2ce12c..250259fd619 100644 --- a/packages/mdc-chips/chip/test/component.test.ts +++ b/packages/mdc-chips/chip/test/component.test.ts @@ -33,7 +33,9 @@ const getFixture = () => { wrapper.innerHTML = `
- Chip content + + Chip content +
`; @@ -53,8 +55,8 @@ const getFixtureWithCheckmark = () => { - - Chip content + + Chip content `;