Skip to content

Commit 51632b7

Browse files
committed
fix(select): set default font size
1 parent 4b830d3 commit 51632b7

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+
$md-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: $md-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
@@ -8,6 +8,7 @@ $md-select-trigger-min-width: 112px !default;
88
$md-select-arrow-size: 5px !default;
99
$md-select-arrow-margin: 4px !default;
1010
$md-select-panel-max-height: 256px !default;
11+
$md-select-trigger-font-size: 16px !default;
1112

1213
md-select {
1314
display: inline-block;
@@ -23,6 +24,7 @@ md-select {
2324
cursor: pointer;
2425
position: relative;
2526
box-sizing: border-box;
27+
font-size: $md-select-trigger-font-size;
2628

2729
[aria-disabled='true'] & {
2830
@include md-control-disabled-underline();

0 commit comments

Comments
 (0)