Commit b994349
authored
fix(material-experimental/mdc-select): float label on focus if there'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`.1 parent 75e191d commit b994349
File tree
3 files changed
+20
-6
lines changed- scripts
- src/material-experimental/mdc-select
3 files changed
+20
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | 143 | | |
147 | 144 | | |
148 | 145 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2364 | 2364 | | |
2365 | 2365 | | |
2366 | 2366 | | |
| 2367 | + | |
| 2368 | + | |
| 2369 | + | |
| 2370 | + | |
| 2371 | + | |
| 2372 | + | |
| 2373 | + | |
| 2374 | + | |
| 2375 | + | |
| 2376 | + | |
| 2377 | + | |
| 2378 | + | |
| 2379 | + | |
| 2380 | + | |
| 2381 | + | |
| 2382 | + | |
2367 | 2383 | | |
2368 | 2384 | | |
2369 | 2385 | | |
| |||
4123 | 4139 | | |
4124 | 4140 | | |
4125 | 4141 | | |
4126 | | - | |
| 4142 | + | |
4127 | 4143 | | |
4128 | 4144 | | |
4129 | 4145 | | |
| |||
4134 | 4150 | | |
4135 | 4151 | | |
4136 | 4152 | | |
| 4153 | + | |
4137 | 4154 | | |
4138 | 4155 | | |
4139 | 4156 | | |
| |||
4238 | 4255 | | |
4239 | 4256 | | |
4240 | 4257 | | |
4241 | | - | |
| 4258 | + | |
4242 | 4259 | | |
4243 | 4260 | | |
4244 | 4261 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| |||
0 commit comments