fix(material/select): float label on focus if there's a placeholder#19517
Merged
mmalerba merged 1 commit intoangular:masterfrom Mar 10, 2021
Merged
fix(material/select): float label on focus if there's a placeholder#19517mmalerba merged 1 commit intoangular:masterfrom
mmalerba merged 1 commit intoangular:masterfrom
Conversation
mmalerba
approved these changes
Jun 2, 2020
ba74a58 to
2a6d2c8
Compare
Historically we've only floated the `mat-select` label if a value is selected or the panel is open, because we wouldn't otherwise have anything to show. These changes make it so that we also float it on focus, if there's `placeholder` text that can be shown. This behavior is consistent with `MatInput`. Fixes angular#19514.
2a6d2c8 to
6c9e594
Compare
mmalerba
pushed a commit
that referenced
this pull request
Mar 10, 2021
…19517) Historically we've only floated the `mat-select` label if a value is selected or the panel is open, because we wouldn't otherwise have anything to show. These changes make it so that we also float it on focus, if there's `placeholder` text that can be shown. This behavior is consistent with `MatInput`. Fixes #19514. (cherry picked from commit 7a972fb)
crisbeto
added a commit
to crisbeto/material2
that referenced
this pull request
Mar 11, 2021
…s a placeholder This is the equivalent of angular#19517 for the MDC-based select. Historically we've only floated the `mat-select` label if a value is selected or the panel is open, because we wouldn't otherwise have anything to show. These changes make it so that we also float it on focus, if there's `placeholder` text that can be shown. This behavior is consistent with `MatInput`.
crisbeto
added a commit
to crisbeto/material2
that referenced
this pull request
Mar 11, 2021
…s a placeholder This is the equivalent of angular#19517 for the MDC-based select. Historically we've only floated the `mat-select` label if a value is selected or the panel is open, because we wouldn't otherwise have anything to show. These changes make it so that we also float it on focus, if there's `placeholder` text that can be shown. This behavior is consistent with `MatInput`.
crisbeto
added a commit
to crisbeto/material2
that referenced
this pull request
Mar 12, 2021
…s a placeholder This is the equivalent of angular#19517 for the MDC-based select. Historically we've only floated the `mat-select` label if a value is selected or the panel is open, because we wouldn't otherwise have anything to show. These changes make it so that we also float it on focus, if there's `placeholder` text that can be shown. This behavior is consistent with `MatInput`.
This was referenced Mar 17, 2021
crisbeto
added a commit
to crisbeto/material2
that referenced
this pull request
Mar 21, 2021
…s a placeholder This is the equivalent of angular#19517 for the MDC-based select. Historically we've only floated the `mat-select` label if a value is selected or the panel is open, because we wouldn't otherwise have anything to show. These changes make it so that we also float it on focus, if there's `placeholder` text that can be shown. This behavior is consistent with `MatInput`.
andrewseguin
pushed a commit
that referenced
this pull request
Mar 23, 2021
…s a placeholder (#22187) This is the equivalent of #19517 for the MDC-based select. Historically we've only floated the `mat-select` label if a value is selected or the panel is open, because we wouldn't otherwise have anything to show. These changes make it so that we also float it on focus, if there's `placeholder` text that can be shown. This behavior is consistent with `MatInput`.
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Historically we've only floated the
mat-selectlabel if a value is selected or the panel is open, because we wouldn't otherwise have anything to show. These changes make it so that we also float it on focus, if there'splaceholdertext that can be shown. This behavior is consistent withMatInput.Fixes #19514.