mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(select): set default font size (#2976)
This commit is contained in:
@@ -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.
|
||||
@@ -11,6 +14,7 @@
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
outline: none;
|
||||
font-size: $mat-option-font-size;
|
||||
|
||||
&[aria-disabled='true'] {
|
||||
cursor: default;
|
||||
|
||||
@@ -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;
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user