File tree Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 22
22
height : var (--_container-height );
23
23
cursor : pointer ;
24
24
-webkit-tap-highlight-color : transparent ;
25
+ max-width : 100% ;
25
26
26
27
@include ripple .theme (
27
28
(
96
97
}
97
98
98
99
.primary.action {
100
+ // Set a min-width on the primary action so that trailing actions remain
101
+ // inside the chip as the chip is resized.
102
+ min-width : 0 ;
99
103
padding-inline-start : var (--_leading-space );
100
104
padding-inline-end : var (--_trailing-space );
101
105
}
151
155
display : flex ;
152
156
font-family : var (--_label-text-font );
153
157
font-size : var (--_label-text-size );
154
- line-height : var (--_label-text-line-height );
155
158
font-weight : var (--_label-text-weight );
156
159
height : 100% ;
157
- text-overflow : ellipsis ;
160
+ line-height : var (--_label-text-line-height );
161
+ overflow : hidden ;
158
162
user-select : none ;
163
+ }
164
+
165
+ .label-text {
166
+ overflow : hidden ;
167
+ text-overflow : ellipsis ;
159
168
white-space : nowrap ;
160
169
}
161
170
Original file line number Diff line number Diff line change @@ -129,7 +129,9 @@ export abstract class Chip extends LitElement {
129
129
< span class ="leading icon " aria-hidden ="true ">
130
130
${ this . renderLeadingIcon ( ) }
131
131
</ span >
132
- < span class ="label "> ${ this . label } </ span >
132
+ < span class ="label ">
133
+ < span class ="label-text "> ${ this . label } </ span >
134
+ </ span >
133
135
< span class ="touch "> </ span >
134
136
` ;
135
137
}
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ export class TestTable<S extends string = string> extends LitElement {
82
82
</ th >
83
83
${ this . states . map (
84
84
( state , colIndex ) => html `
85
- < td class ="md3-test-table__cell ">
85
+ < td class ="md3-test-table__cell " part =" cell " >
86
86
< slot name ="${ `${ rowIndex } -${ colIndex } ` } ">
87
87
< div class ="md3-test-table__text "> N/A</ div >
88
88
</ slot >
You can’t perform that action at this time.
0 commit comments