Skip to content

Commit

Permalink
fix(select): extra whitespace around placeholder (angular#6955)
Browse files Browse the repository at this point in the history
Fixes some extra whitespace being added around the placeholder.

Fixes angular#6923.
  • Loading branch information
crisbeto authored and josephperrott committed Sep 15, 2017
1 parent 6728130 commit 7eed076
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/select/select.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[class.mat-floating-placeholder]="_hasValue()"
[@transformPlaceholder]="_getPlaceholderAnimationState()"
[style.opacity]="_getPlaceholderOpacity()"
[style.width.px]="_selectedValueWidth"> {{ placeholder }} </span>
[style.width.px]="_selectedValueWidth">{{ placeholder }}</span>

<span class="mat-select-value" *ngIf="_hasValue()">
<span class="mat-select-value-text" [ngSwitch]="!!customTrigger">
Expand Down
2 changes: 1 addition & 1 deletion src/lib/select/select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ $mat-select-trigger-underline-height: 1px !default;

// TODO: Double-check accessibility of this style
.mat-select-required &::after {
content: '*';
content: ' *';
}
}

Expand Down

0 comments on commit 7eed076

Please sign in to comment.