|
496 | 496 | }
|
497 | 497 | }
|
498 | 498 | }
|
| 499 | + |
| 500 | + &:not(%form-group-display--focused, %form-group-display--filled) { |
| 501 | + &:has(input:not(:placeholder-shown, [type='file'])) { |
| 502 | + %form-group-label { |
| 503 | + @include type-style('subtitle-1'); |
| 504 | + transform: translateY(0); |
| 505 | + } |
| 506 | + } |
| 507 | + } |
499 | 508 | }
|
500 | 509 | }
|
501 | 510 |
|
502 | 511 | %form-group-placeholder {
|
503 |
| - %form-group-label { |
504 |
| - transition: none !important; |
| 512 | + &:has(input:placeholder-shown, textarea:placeholder-shown) { |
| 513 | + %form-group-label { |
| 514 | + transition: none !important; |
| 515 | + } |
505 | 516 | }
|
506 | 517 | }
|
507 | 518 |
|
|
1004 | 1015 |
|
1005 | 1016 | %form-group-label--focused-border,
|
1006 | 1017 | %form-group-label--filled-border,
|
1007 |
| - %form-group-label--placeholder-border, |
1008 | 1018 | %form-group-label--file-border {
|
1009 | 1019 | %igx-input-group__notch {
|
1010 | 1020 | border-block-start-color: transparent !important;
|
1011 | 1021 | }
|
1012 | 1022 | }
|
1013 | 1023 |
|
| 1024 | + %form-group-label--placeholder-border { |
| 1025 | + &:has(input:placeholder-shown, textarea:placeholder-shown) { |
| 1026 | + %igx-input-group__notch { |
| 1027 | + border-block-start-color: transparent !important; |
| 1028 | + } |
| 1029 | + } |
| 1030 | + } |
| 1031 | + |
1014 | 1032 | %form-group-label--focused-border {
|
1015 | 1033 | %form-group-bundle-start {
|
1016 | 1034 | border-inline-start-width: rem(2px);
|
|
1098 | 1116 | width: calc(100% - #{rem(2px)});
|
1099 | 1117 | }
|
1100 | 1118 | }
|
| 1119 | + |
| 1120 | + %textarea-group:not(%form-group-display--focused, %form-group-display--filled) { |
| 1121 | + &:has(textarea:not(:placeholder-shown)) { |
| 1122 | + %form-group-textarea-label:not(%textarea-group-label--focused) { |
| 1123 | + @include type-style('subtitle-1'); |
| 1124 | + |
| 1125 | + top: calc($input-top-padding - #{rem(3px)}); |
| 1126 | + transform: translateY(0); |
| 1127 | + margin-bottom: auto; |
| 1128 | + } |
| 1129 | + } |
| 1130 | + } |
| 1131 | + |
| 1132 | + %textarea-group:not(%form-group-display--focused, %form-group-display--filled) { |
| 1133 | + &:has(%form-group-display--border, textarea:not(:placeholder-shown)) { |
| 1134 | + %igx-input-group__notch { |
| 1135 | + border-block-start-width: rem(1px); |
| 1136 | + } |
| 1137 | + } |
| 1138 | + } |
1101 | 1139 | }
|
1102 | 1140 |
|
1103 | 1141 | %form-group-textarea-group-bundle {
|
|
0 commit comments