Skip to content

Commit e983ea7

Browse files
desig9steinsimeonoffChronosSF
authored
fix input prefix/suffix overlying the grid cell focus styles (#12470)
* refactor(grid): fix input prefix/suffix overlying the grid cell focused state Co-authored-by: Simeon Simeonoff <[email protected]> Co-authored-by: Stamen Stoychev <[email protected]>
1 parent f9267e4 commit e983ea7

File tree

1 file changed

+23
-3
lines changed

1 file changed

+23
-3
lines changed

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

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1476,17 +1476,26 @@
14761476
}
14771477

14781478
%igx-grid__td--editing {
1479+
$editing-outline-width: rem(2px);
14791480
background: var-get($theme, 'cell-editing-background') !important;
1480-
box-shadow: inset 0 0 0 rem(2px) var-get($theme, 'edit-mode-color');
1481+
box-shadow: inset 0 0 0 $editing-outline-width var-get($theme, 'edit-mode-color');
14811482
padding: 0 !important;
14821483

14831484
// Have a more stable visual editing experience
14841485
igx-input-group,
14851486
igx-select,
14861487
igx-date-picker,
14871488
igx-time-picker {
1488-
width: 100%;
1489-
height: 100%;
1489+
height: calc(100% - (#{$editing-outline-width} * 2));
1490+
width: calc(100% - (#{$editing-outline-width} * 2));
1491+
margin-inline-start: $editing-outline-width;
1492+
overflow: hidden;
1493+
1494+
igx-input-group {
1495+
width: calc(100% - #{$editing-outline-width}) !important;
1496+
margin-inline-start: 0;
1497+
height: 100% !important;
1498+
}
14901499
}
14911500

14921501
igx-input-group {
@@ -1495,11 +1504,17 @@
14951504
}
14961505

14971506
.igx-input-group__bundle {
1507+
height: 100% !important;
1508+
min-height: 100% !important;
14981509
border: none !important;
14991510

15001511
&::before {
15011512
content: none !important;
15021513
}
1514+
1515+
&::after {
1516+
display: none;
1517+
}
15031518
}
15041519

15051520
&.igx-grid__td--invalid {
@@ -1509,6 +1524,7 @@
15091524

15101525
igx-prefix,
15111526
igx-suffix {
1527+
border-radius: 0 !important;
15121528
padding-top: 0 !important;
15131529
padding-bottom: 0 !important;
15141530
}
@@ -1535,6 +1551,10 @@
15351551
font-size: $grid-cell-fs !important;
15361552
line-height: $grid-cell-lh !important;
15371553
}
1554+
1555+
&%grid-cell-number {
1556+
justify-content: flex-start !important;
1557+
}
15381558
}
15391559

15401560
%grid-cell--pinned {

0 commit comments

Comments
 (0)