Skip to content

Commit 1858609

Browse files
committed
minor fixes
1 parent 44b4e18 commit 1858609

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
@@ -19,7 +19,6 @@ $mat-select-trigger-font-size: 16px !default;
1919

2020
.mat-select-trigger {
2121
display: flex;
22-
justify-content: space-between;
2322
align-items: center;
2423
height: $mat-select-trigger-height;
2524
min-width: $mat-select-trigger-min-width;
@@ -34,7 +33,7 @@ $mat-select-trigger-font-size: 16px !default;
3433
}
3534
}
3635

37-
.mat-select-border {
36+
.mat-select-underline {
3837
position: absolute;
3938
bottom: 0;
4039
left: 0;
@@ -52,6 +51,7 @@ $mat-select-trigger-font-size: 16px !default;
5251
position: relative;
5352
padding: 0 2px;
5453
transform-origin: left top;
54+
flex-grow: 1;
5555

5656
// These values are duplicated from animation code in order to
5757
// allow placeholders to sometimes float without animating,
@@ -82,6 +82,7 @@ $mat-select-trigger-font-size: 16px !default;
8282
.mat-select-value {
8383
position: absolute;
8484
max-width: calc(100% - #{($mat-select-arrow-size + $mat-select-arrow-margin) * 2});
85+
flex-grow: 1;
8586

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

0 commit comments

Comments
 (0)