Skip to content

Commit 40bc486

Browse files
karatinayuangao
authored andcommitted
fix(select): set default font size (#2976)
1 parent 07ec765 commit 40bc486

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/lib/core/option/_option.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
@import '../style/menu-common';
22
@import '../a11y/a11y';
33

4+
/** Default size of option text. */
5+
$mat-option-font-size: 16px !default;
6+
47
/**
58
* This mixin contains shared option styles between the select and
69
* autocomplete components.
@@ -11,6 +14,7 @@
1114
position: relative;
1215
cursor: pointer;
1316
outline: none;
17+
font-size: $mat-option-font-size;
1418

1519
&[aria-disabled='true'] {
1620
cursor: default;

src/lib/select/select.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ $mat-select-trigger-min-width: 112px !default;
99
$mat-select-arrow-size: 5px !default;
1010
$mat-select-arrow-margin: 4px !default;
1111
$mat-select-panel-max-height: 256px !default;
12+
$mat-select-trigger-font-size: 16px !default;
1213

1314
.mat-select {
1415
display: inline-block;
@@ -25,6 +26,7 @@ $mat-select-panel-max-height: 256px !default;
2526
cursor: pointer;
2627
position: relative;
2728
box-sizing: border-box;
29+
font-size: $mat-select-trigger-font-size;
2830

2931
[aria-disabled='true'] & {
3032
@include mat-control-disabled-underline();

0 commit comments

Comments
 (0)