-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
fix(material/select): float label on focus if there's a placeholder #19517
Merged
Conversation
This file contains 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
crisbeto
added
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
target: patch
This PR is targeted for the next patch release
labels
Jun 2, 2020
googlebot
added
the
cla: yes
PR author has agreed to Google's Contributor License Agreement
label
Jun 2, 2020
mmalerba
approved these changes
Jun 2, 2020
crisbeto
force-pushed
the
19514/select-floating-label
branch
2 times, most recently
from
September 29, 2020 18:44
ba74a58
to
2a6d2c8
Compare
crisbeto
changed the title
fix(select): float label on focus if there's a placeholder
fix(material/select): float label on focus if there's a placeholder
Sep 29, 2020
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.
crisbeto
force-pushed
the
19514/select-floating-label
branch
from
October 12, 2020 15:20
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
action: merge
The PR is ready for merge by the caretaker
cla: yes
PR author has agreed to Google's Contributor License Agreement
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
target: patch
This PR is targeted for the next patch release
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-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'splaceholder
text that can be shown. This behavior is consistent withMatInput
.Fixes #19514.