|
747 | 747 | }
|
748 | 748 | }
|
749 | 749 | }
|
| 750 | + |
| 751 | + &:not(%form-group-display--focused, %form-group-display--filled) { |
| 752 | + &:has(input:not(:placeholder-shown, [type='file'])) { |
| 753 | + %form-group-label { |
| 754 | + @include type-style('subtitle-1'); |
| 755 | + transform: translateY(0); |
| 756 | + } |
| 757 | + } |
| 758 | + } |
750 | 759 | }
|
751 | 760 | }
|
752 | 761 |
|
753 | 762 | %form-group-placeholder {
|
754 |
| - %form-group-label { |
755 |
| - transition: none !important; |
| 763 | + &:has(input:placeholder-shown, textarea:placeholder-shown) { |
| 764 | + %form-group-label { |
| 765 | + transition: none !important; |
| 766 | + } |
756 | 767 | }
|
757 | 768 | }
|
758 | 769 |
|
|
1255 | 1266 |
|
1256 | 1267 | %form-group-label--focused-border,
|
1257 | 1268 | %form-group-label--filled-border,
|
1258 |
| - %form-group-label--placeholder-border, |
1259 | 1269 | %form-group-label--file-border {
|
1260 | 1270 | %igx-input-group__notch {
|
1261 | 1271 | border-block-start-color: transparent !important;
|
1262 | 1272 | }
|
1263 | 1273 | }
|
1264 | 1274 |
|
| 1275 | + %form-group-label--placeholder-border { |
| 1276 | + &:has(input:placeholder-shown, textarea:placeholder-shown) { |
| 1277 | + %igx-input-group__notch { |
| 1278 | + border-block-start-color: transparent !important; |
| 1279 | + } |
| 1280 | + } |
| 1281 | + } |
| 1282 | + |
1265 | 1283 | %form-group-label--focused-border {
|
1266 | 1284 | %form-group-bundle-start {
|
1267 | 1285 | border-inline-start-width: rem(2px);
|
|
1349 | 1367 | width: calc(100% - #{rem(2px)});
|
1350 | 1368 | }
|
1351 | 1369 | }
|
| 1370 | + |
| 1371 | + %textarea-group:not(%form-group-display--focused, %form-group-display--filled) { |
| 1372 | + &:has(textarea:not(:placeholder-shown)) { |
| 1373 | + %form-group-textarea-label:not(%textarea-group-label--focused) { |
| 1374 | + @include type-style('subtitle-1'); |
| 1375 | + |
| 1376 | + top: calc($input-top-padding - #{rem(3px)}); |
| 1377 | + transform: translateY(0); |
| 1378 | + margin-bottom: auto; |
| 1379 | + } |
| 1380 | + } |
| 1381 | + } |
| 1382 | + |
| 1383 | + %textarea-group:not(%form-group-display--focused, %form-group-display--filled) { |
| 1384 | + &:has(%form-group-display--border, textarea:not(:placeholder-shown)) { |
| 1385 | + %igx-input-group__notch { |
| 1386 | + border-block-start-width: rem(1px); |
| 1387 | + } |
| 1388 | + } |
| 1389 | + } |
1352 | 1390 | }
|
1353 | 1391 |
|
1354 | 1392 | %form-group-textarea-group-bundle {
|
|
0 commit comments