File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818 }
1919
2020 .mat-mdc-basic-chip {
21- margin : auto 10px ;
21+ margin : 8 px 10px ;
2222 }
2323
2424 mat-chip-grid input {
Original file line number Diff line number Diff line change 2727 < ng-content > </ ng-content >
2828 < span class ="mat-mdc-chip-primary-focus-indicator mat-focus-indicator "> </ span >
2929 </ span >
30+ < span class ="mat-mdc-chip-touch-target "> </ span >
3031 </ button >
3132</ span >
3233
Original file line number Diff line number Diff line change 3131
3232 < span class ="mat-mdc-chip-primary-focus-indicator mat-focus-indicator " aria-hidden ="true "> </ span >
3333 </ span >
34+ < span class ="mat-mdc-chip-touch-target "> </ span >
3435</ span >
3536
3637@if (_hasTrailingIcon()) {
Original file line number Diff line number Diff line change 1616 }
1717
1818 .mdc-evolution-chip {
19- margin : 4 px 0 4 px 8px ;
19+ margin : 8 px 0 8 px 8px ;
2020 }
2121
2222 [dir = ' rtl' ] & {
Original file line number Diff line number Diff line change 1111 < ng-content > </ ng-content >
1212 < span class ="mat-mdc-chip-primary-focus-indicator mat-focus-indicator "> </ span >
1313 </ span >
14+ < span class ="mat-mdc-chip-touch-target "> </ span >
1415 </ span >
1516</ span >
1617
Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ $_graphic-padding: 6px;
1212$_trailing-action-padding : 8px ;
1313$_avatar-leading-padding : 4px ;
1414$_avatar-trailing-padding : 8px ;
15+ $_touch-target-size : 48px ;
16+ $_touch-target-vertical-padding : 8px ;
1517
1618$fallbacks : m3-chip .get-tokens ();
1719
@@ -27,6 +29,27 @@ $fallbacks: m3-chip.get-tokens();
2729 max-width : 100% ;
2830}
2931
32+ .mat-mdc-standard-chip ,
33+ .mat-mdc-basic-chip ,
34+ .mat-mdc-evolution-chip {
35+ /* Ensures basic/unstyled chips also have a 32px min-height baseline */
36+ min-height : 32px ;
37+
38+ /* 8px top and bottom margin for 48px touch target separation */
39+ margin-top : $_touch-target-vertical-padding ;
40+ margin-bottom : $_touch-target-vertical-padding ;
41+ }
42+
43+ .mat-mdc-chip-touch-target {
44+ position : absolute ;
45+ top : 50% ;
46+ left : 0 ;
47+ right : 0 ;
48+ height : $_touch-target-size ;
49+ transform : translateY (-50% );
50+ pointer-events : auto ;
51+ }
52+
3053.mdc-evolution-chip__cell ,
3154.mdc-evolution-chip__action {
3255 height : 100% ;
You can’t perform that action at this time.
0 commit comments