Skip to content

Commit

Permalink
fix(select): set default font size (#2976)
Browse files Browse the repository at this point in the history
  • Loading branch information
kara authored and tinayuangao committed Feb 10, 2017
1 parent 07ec765 commit 40bc486
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/core/option/_option.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
@import '../style/menu-common';
@import '../a11y/a11y';

/** Default size of option text. */
$mat-option-font-size: 16px !default;

/**
* This mixin contains shared option styles between the select and
* autocomplete components.
Expand All @@ -11,6 +14,7 @@
position: relative;
cursor: pointer;
outline: none;
font-size: $mat-option-font-size;

&[aria-disabled='true'] {
cursor: default;
Expand Down
2 changes: 2 additions & 0 deletions src/lib/select/select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ $mat-select-trigger-min-width: 112px !default;
$mat-select-arrow-size: 5px !default;
$mat-select-arrow-margin: 4px !default;
$mat-select-panel-max-height: 256px !default;
$mat-select-trigger-font-size: 16px !default;

.mat-select {
display: inline-block;
Expand All @@ -25,6 +26,7 @@ $mat-select-panel-max-height: 256px !default;
cursor: pointer;
position: relative;
box-sizing: border-box;
font-size: $mat-select-trigger-font-size;

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

0 comments on commit 40bc486

Please sign in to comment.