File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 12
12
[color] ="color "
13
13
class ="mat-mdc-paginator-page-size-select ">
14
14
< mat-select
15
+ #selectRef
15
16
[value] ="pageSize "
16
17
[disabled] ="disabled "
17
18
[aria-labelledby] ="_pageSizeLabelId "
25
26
</ mat-option >
26
27
}
27
28
</ mat-select >
29
+ < div class ="mat-mdc-paginator-touch-target " (click) ="selectRef.open() "> </ div >
28
30
</ mat-form-field >
29
31
}
30
32
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ $page-size-margin-right: 8px;
9
9
$items-per-page-label-margin : 0 4px ;
10
10
$selector-margin : 0 4px ;
11
11
$selector-trigger-width : 84px ;
12
+ $touch-target-height : 48px ;
12
13
13
14
$range-label-margin : 0 32px 0 24px ;
14
15
$button-icon-size : 28px ;
@@ -47,7 +48,7 @@ $button-icon-size: 28px;
47
48
.mat-mdc-select {
48
49
// The smaller font size inherited from the paginator throws off the centering of the select
49
50
// inside the form field. This `line-height` helps to center it relative to the other text.
50
- line-height : 2 ;
51
+ line-height : 1.5 ;
51
52
}
52
53
}
53
54
@@ -133,3 +134,14 @@ $button-icon-size: 28px;
133
134
outline : solid 1px ;
134
135
}
135
136
}
137
+
138
+ .mat-mdc-paginator-touch-target {
139
+ position : absolute ;
140
+ top : 50% ;
141
+ left : 50% ;
142
+ width : $selector-trigger-width ;
143
+ height : $touch-target-height ;
144
+ background-color : transparent ;
145
+ transform : translate (-50% , -50% );
146
+ cursor : pointer ;
147
+ }
You can’t perform that action at this time.
0 commit comments