Skip to content

Placeholder overflow is hidden now #5865

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/lib/select/select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,14 @@ $mat-select-trigger-underline-height: 1px !default;
padding: 0 2px;
transform-origin: left top;
flex-grow: 1;


// If the placeholder is very long, the overflow should be hidden
// and replaced with three dots instead.
// Otherwise, a long placeholder will be displayed in two lines.
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;

// These values are duplicated from animation code in order to
// allow placeholders to sometimes float without animating,
// for example when the value is set programmatically.
Expand Down