Skip to content

Commit

Permalink
fix(select): floating label overlapping elements above select
Browse files Browse the repository at this point in the history
Adds some padding to the top of a select, reserving enough space for the floating label.

Fixes #6171.
  • Loading branch information
crisbeto committed Aug 2, 2017
1 parent 8a23157 commit 2652c8a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib/select/_select-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,15 @@
}

@mixin mat-select-typography($config) {
$trigger-font-size: mat-font-size($config, subheading-2);

.mat-select {
// Reserve enough space for the floating placeholder.
padding-top: $trigger-font-size;
font-family: mat-font-family($config);
}

.mat-select-trigger {
font-size: mat-font-size($config, subheading-2);
font-size: $trigger-font-size;
}
}

0 comments on commit 2652c8a

Please sign in to comment.