|
255 | 255 | /// @param {Map} $theme - The theme used to style the component. |
256 | 256 | @mixin chip($theme) { |
257 | 257 | @include css-vars($theme); |
258 | | - $transition: all 120ms $in-out-quad; |
259 | 258 | $chip-max-width: 32ch; |
260 | 259 |
|
261 | 260 | $variant: map.get($theme, '_meta', 'variant'); |
|
308 | 307 | position: relative; |
309 | 308 | display: inline-flex; |
310 | 309 | flex-shrink: 0; |
311 | | - transition: $transition; |
312 | | - transition-property: top, left; |
313 | 310 |
|
314 | 311 | // Fix: The grid resizing does not autosize the filter header cells with the default filter chips |
315 | 312 | // https://github.com/IgniteUI/igniteui-angular/pull/12770/files/efd2a274038c051e82561903f8799fd03265fd74#r1150993630 |
316 | 313 | min-width: max-content; |
317 | | - |
318 | | - [dir='rtl'] & { |
319 | | - transition-property: top right; |
320 | | - } |
321 | | - |
322 | 314 | touch-action: none; |
323 | 315 | outline: none; |
324 | 316 |
|
|
336 | 328 | color: var-get($theme, 'focus-selected-text-color'); |
337 | 329 | background: var-get($theme, 'focus-selected-background'); |
338 | 330 | border-color: var-get($theme, 'focus-selected-border-color'); |
339 | | - transition: $transition; |
340 | 331 | box-shadow: $box-shadow-focus-selected; |
341 | 332 | } |
342 | 333 | } |
|
377 | 368 | user-select: none; |
378 | 369 | overflow: hidden; |
379 | 370 | cursor: pointer; |
380 | | - // hacking `overflow: hidden` with border radius |
381 | | - // not playing nicely together |
382 | 371 | filter: opacity(1); |
383 | | - // transition: all 120ms ease-in; |
384 | 372 |
|
385 | 373 | igx-avatar { |
386 | 374 | display: flex !important; |
|
424 | 412 | color: var-get($theme, 'selected-text-color'); |
425 | 413 | background: var-get($theme, 'selected-background'); |
426 | 414 | border-color: var-get($theme, 'selected-border-color'); |
427 | | - transition: $transition; |
428 | 415 | } |
429 | 416 |
|
430 | 417 | %igx-chip__item--primary { |
|
759 | 746 | %igx-chip__select { |
760 | 747 | display: inline-flex; |
761 | 748 | align-items: center; |
| 749 | + max-width: rem(24px); |
762 | 750 | opacity: 1; |
763 | 751 | z-index: 1; |
764 | | - transition: opacity 120ms $out-quad, width 120ms $out-quad; |
| 752 | + transition: max-width .12s $in-out-quad, opacity .12s $in-out-quad .06s; |
| 753 | + transition-behavior: allow-discrete; |
765 | 754 |
|
766 | | - > * { |
767 | | - width: inherit !important; |
| 755 | + @starting-style { |
| 756 | + max-width: 0; |
| 757 | + opacity: 0; |
768 | 758 | } |
769 | 759 | } |
770 | 760 |
|
|
0 commit comments