Skip to content

Commit d6a94d7

Browse files
committed
fix(select): set default font size
1 parent fe113eb commit d6a94d7

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
@import '../core/style/form-common';
44
@import '../core/a11y/a11y';
55

6+
67
$mat-select-trigger-height: 30px !default;
78
$mat-select-trigger-min-width: 112px !default;
89
$mat-select-arrow-size: 5px !default;
910
$mat-select-arrow-margin: 4px !default;
1011
$mat-select-panel-max-height: 256px !default;
12+
$mat-select-trigger-font-size: 16px !default;
1113

1214
.mat-select {
1315
display: inline-block;
@@ -23,6 +25,7 @@ $mat-select-panel-max-height: 256px !default;
2325
cursor: pointer;
2426
position: relative;
2527
box-sizing: border-box;
28+
font-size: $mat-select-trigger-font-size;
2629

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

0 commit comments

Comments
 (0)