Skip to content

Commit 01ba420

Browse files
committed
fix(input-group): some japanese symbols get cut off
1 parent f6eb111 commit 01ba420

File tree

1 file changed

+6
-17
lines changed

1 file changed

+6
-17
lines changed

projects/igniteui-angular/src/lib/core/styles/components/input/_input-group-theme.scss

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -505,8 +505,8 @@
505505
position: absolute;
506506
width: 100%;
507507
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);
510510
backface-visibility: hidden;
511511
will-change: transform;
512512
transform-origin: top left;
@@ -518,13 +518,11 @@
518518
}
519519

520520
%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);
523522
}
524523

525524
%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);
528526
}
529527

530528
%form-group-label--box {
@@ -574,6 +572,8 @@
574572
color: --var($theme, 'filled-text-color');
575573
outline-style: none;
576574
box-shadow: none;
575+
border-top: rem(3px) solid transparent;
576+
padding-bottom: rem(3px);
577577

578578
&::-webkit-input-placeholder {
579579
line-height: normal;
@@ -886,17 +886,6 @@
886886
$input-text-props: igx-type-scale-category($type-scale, $input-text);
887887

888888
@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-
900889
%form-group-input {
901890
@include igx-type-style($type-scale, $input-text) {
902891
margin: 0;

0 commit comments

Comments
 (0)