|
505 | 505 | position: absolute;
|
506 | 506 | width: 100%;
|
507 | 507 | transform: translateY(50%); /* 8px, base is 16px */
|
508 |
| - line-height: rem(16px, map-get($base-scale-size, 'comfortable')) !important; |
509 |
| - height: rem(18px, map-get($base-scale-size, 'comfortable')); |
| 508 | + line-height: 1 !important; |
| 509 | + height: rem(18px); |
510 | 510 | backface-visibility: hidden;
|
511 | 511 | will-change: transform;
|
512 | 512 | transform-origin: top left;
|
|
518 | 518 | }
|
519 | 519 |
|
520 | 520 | %form-group-label--cosy {
|
521 |
| - line-height: rem(16px, map-get($base-scale-size, 'cosy')) !important; |
522 |
| - height: rem(18px, map-get($base-scale-size, 'cosy')); |
| 521 | + margin-top: rem(-4.5px); |
523 | 522 | }
|
524 | 523 |
|
525 | 524 | %form-group-label--compact {
|
526 |
| - line-height: rem(16px, map-get($base-scale-size, 'compact')) !important; |
527 |
| - height: rem(18px, map-get($base-scale-size, 'compact')); |
| 525 | + margin-top: rem(-4px); |
528 | 526 | }
|
529 | 527 |
|
530 | 528 | %form-group-label--box {
|
|
574 | 572 | color: --var($theme, 'filled-text-color');
|
575 | 573 | outline-style: none;
|
576 | 574 | box-shadow: none;
|
| 575 | + border-top: rem(3px) solid transparent; |
| 576 | + padding-bottom: rem(3px); |
577 | 577 |
|
578 | 578 | &::-webkit-input-placeholder {
|
579 | 579 | line-height: normal;
|
|
886 | 886 | $input-text-props: igx-type-scale-category($type-scale, $input-text);
|
887 | 887 |
|
888 | 888 | @include igx-scope('.igx-typography') {
|
889 |
| - %form-group-label { |
890 |
| - @include igx-type-style($type-scale, $input-text) { |
891 |
| - // This is embarrassing but there's no other |
892 |
| - // way to extract the font-size the user sets |
893 |
| - // in case they use custom typography :( |
894 |
| - // We need the padding so that the text doesn't get |
895 |
| - // cut off. |
896 |
| - padding-bottom: map-get($input-text-props, 'font-size'); |
897 |
| - } |
898 |
| - } |
899 |
| - |
900 | 889 | %form-group-input {
|
901 | 890 | @include igx-type-style($type-scale, $input-text) {
|
902 | 891 | margin: 0;
|
|
0 commit comments