Skip to content

Commit b9d20c0

Browse files
committed
fix(select): extra whitespace around placeholder
Fixes some extra whitespace being added around the placeholder. Fixes #6923.
1 parent 79a2567 commit b9d20c0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/lib/select/select.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
[class.mat-floating-placeholder]="_hasValue()"
1111
[@transformPlaceholder]="_getPlaceholderAnimationState()"
1212
[style.opacity]="_getPlaceholderOpacity()"
13-
[style.width.px]="_selectedValueWidth"> {{ placeholder }} </span>
13+
[style.width.px]="_selectedValueWidth">{{ placeholder }}</span>
1414

1515
<span class="mat-select-value" *ngIf="_hasValue()">
1616
<span class="mat-select-value-text" [ngSwitch]="!!customTrigger">

src/lib/select/select.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ $mat-select-trigger-underline-height: 1px !default;
7676

7777
// TODO: Double-check accessibility of this style
7878
.mat-select-required &::after {
79-
content: '*';
79+
content: ' *';
8080
}
8181
}
8282

0 commit comments

Comments
 (0)