Skip to content

Commit d88ef8c

Browse files
committed
minor fixes
1 parent 4be4015 commit d88ef8c

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/lib/select/_select-theme.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
}
2020
}
2121

22-
.mat-select-border {
22+
.mat-select-underline {
2323
background-color: mat-color($foreground, divider);
2424

2525
.mat-select:focus:not(.mat-select-disabled) & {

src/lib/select/select.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<span class="mat-select-value-text">{{ selected?.viewValue }}</span>
66
</span>
77
<span class="mat-select-arrow"></span>
8-
<span class="mat-select-border"></span>
8+
<span class="mat-select-underline"></span>
99
</div>
1010

1111
<template cdk-connected-overlay [origin]="origin" [open]="panelOpen" hasBackdrop (backdropClick)="close()"

src/lib/select/select.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ $mat-select-panel-max-height: 256px !default;
1616

1717
.mat-select-trigger {
1818
display: flex;
19-
justify-content: space-between;
2019
align-items: center;
2120
height: $mat-select-trigger-height;
2221
min-width: $mat-select-trigger-min-width;
@@ -29,7 +28,7 @@ $mat-select-panel-max-height: 256px !default;
2928
}
3029
}
3130

32-
.mat-select-border {
31+
.mat-select-underline {
3332
position: absolute;
3433
bottom: 0;
3534
left: 0;
@@ -47,6 +46,7 @@ $mat-select-panel-max-height: 256px !default;
4746
position: relative;
4847
padding: 0 2px;
4948
transform-origin: left top;
49+
flex-grow: 1;
5050

5151
// These values are duplicated from animation code in order to
5252
// allow placeholders to sometimes float without animating,
@@ -77,6 +77,7 @@ $mat-select-panel-max-height: 256px !default;
7777
.mat-select-value {
7878
position: absolute;
7979
max-width: calc(100% - #{($mat-select-arrow-size + $mat-select-arrow-margin) * 2});
80+
flex-grow: 1;
8081

8182
// Firefox and some versions of IE incorrectly keep absolutely
8283
// positioned children of flex containers in the flex flow when calculating

0 commit comments

Comments
 (0)