Skip to content

Commit

Permalink
fix(base): Causes internal text in a chip to not overflow and instead…
Browse files Browse the repository at this point in the history
… be truncated by ellipsis.

PiperOrigin-RevId: 315508754
  • Loading branch information
material-web-copybara authored and copybara-github committed Jun 9, 2020
1 parent 3ee488f commit b83d720
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/mdc-chips/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,13 @@ $ripple-target: ".mdc-chip__ripple";
}
}

.mdc-chip__overflow {
@include feature-targeting-mixins.targets($feat-structure) {
text-overflow: ellipsis;
overflow: hidden;
}
}

.mdc-chip__text {
@include feature-targeting-mixins.targets($feat-structure) {
white-space: nowrap;
Expand Down

0 comments on commit b83d720

Please sign in to comment.