Skip to content

Commit b70d00a

Browse files
authored
Merge pull request #5783 from IgniteUI/chip-max-width
refactor(chip): limit the amount of symbols in prefix/suffix
2 parents acc24d8 + 7e13e96 commit b70d00a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

projects/igniteui-angular/src/lib/core/styles/components/chip/_chip-theme.scss

+5-4
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@
215215
@include igx-root-css-vars($theme);
216216

217217
$transition: all 120ms $ease-in-out-quad;
218-
$chip-max-width: 24ch;
218+
$chip-max-width: 32ch;
219219

220220
$chip-height-material: (
221221
comfortable: rem(32px),
@@ -338,9 +338,10 @@
338338

339339
%igx-chip__prefix,
340340
%igx-chip__suffix {
341-
display: inline-flex;
342-
align-items: center;
343-
justify-content: center;
341+
@include ellipsis();
342+
display: inline-block;
343+
vertical-align: middle;
344+
max-width: $chip-max-width;
344345
}
345346

346347
%igx-chip__suffix {

0 commit comments

Comments
 (0)