Skip to content

Commit f200409

Browse files
authored
fix(chip) styles for improved layout and responsiveness. (#1588)
1 parent abc545c commit f200409

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

src/components/chip/themes/chip.base.scss

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,24 @@
22
@use 'styles/utilities' as *;
33

44
:host {
5-
display: inline-flex;
5+
display: inline-block;
66
vertical-align: top;
77
}
88

99
:host button {
1010
@include type-style('body-2');
11+
@include ellipsis();
1112

12-
display: flex;
13+
display: grid;
14+
grid-auto-flow: column;
1315
justify-content: center;
1416
align-items: center;
1517
font-family: var(--ig-font-family);
1618
border-style: none;
1719
box-shadow: none;
1820
cursor: pointer;
19-
padding: pad(2px, 6px, 12px);
21+
padding: 0 pad-inline(rem(2px), rem(6px), rem(12px));
22+
gap: sizable(rem(3px), rem(6px), rem(8px));
2023

2124
&[disabled] {
2225
pointer-events: none;
@@ -110,14 +113,8 @@
110113
justify-content: center;
111114
}
112115

113-
[part='prefix'] {
114-
margin-inline-end: pad-inline(rem(3px), rem(6px), rem(8px));
115-
}
116-
117-
[part='suffix'] {
118-
margin-inline-start: pad-inline(rem(3px), rem(6px), rem(8px));
119-
}
120-
121116
::slotted(*) {
122-
display: flex;
117+
@include ellipsis();
118+
119+
max-width: 32ch;
123120
}

0 commit comments

Comments
 (0)