Skip to content

Commit 11c376c

Browse files
desig9steinsimeonoffLipata
authored
style(input) fix sizing overrides when input is used inside a grid cell. (#12970)
Co-authored-by: Simeon Simeonoff <[email protected]> Co-authored-by: Nikolay Alipiev <[email protected]>
1 parent cdf97dd commit 11c376c

File tree

1 file changed

+18
-15
lines changed

1 file changed

+18
-15
lines changed

projects/igniteui-angular/src/lib/core/styles/components/grid/_grid-theme.scss

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1521,25 +1521,26 @@
15211521
padding: 0 !important;
15221522

15231523
// Have a more stable visual editing experience
1524-
igx-input-group,
1524+
> igx-input-group,
1525+
igx-combo,
15251526
igx-select,
15261527
igx-date-picker,
15271528
igx-time-picker {
1528-
height: calc(100% - (#{$editing-outline-width} * 2));
1529-
width: calc(100% - (#{$editing-outline-width} * 2));
1530-
margin-inline-start: $editing-outline-width;
1529+
position: relative;
1530+
height: calc(100% - #{$editing-outline-width * 2});
1531+
width: calc(100% - #{$editing-outline-width * 2});
1532+
inset-inline-start: $editing-outline-width;
15311533
overflow: hidden;
1532-
1533-
igx-input-group {
1534-
width: calc(100% - #{$editing-outline-width}) !important;
1535-
margin-inline-start: 0;
1536-
height: 100% !important;
1537-
}
15381534
}
15391535

15401536
igx-input-group {
1537+
height: 100%;
1538+
1539+
input {
1540+
height: 100%;
1541+
}
1542+
15411543
--theme: fluent;
1542-
padding-top: 0 !important;
15431544
}
15441545

15451546
.igx-input-group__bundle {
@@ -1556,6 +1557,12 @@
15561557
}
15571558
}
15581559

1560+
.igx-input-group__bundle-main,
1561+
.igx-input-group__bundle-start,
1562+
.igx-input-group__bundle-end {
1563+
height: calc(100% - #{$editing-outline-width * 2});
1564+
}
1565+
15591566
&.igx-grid__td--invalid {
15601567
box-shadow: inset 0 0 0 rem(2px) color($color: 'error') !important;
15611568
padding-inline-end: rem(4px) !important;
@@ -1576,10 +1583,6 @@
15761583
display: none;
15771584
}
15781585

1579-
%form-group-bundle {
1580-
height: 100%;
1581-
}
1582-
15831586
input {
15841587
margin: 0 auto;
15851588
max-width: 100%;

0 commit comments

Comments
 (0)