Skip to content

Commit 058e3d0

Browse files
authored
style(grid): use native input class insead of tag as selector (#16774)
1 parent 0727fad commit 058e3d0

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

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

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -185,12 +185,12 @@
185185
igx-input-group {
186186
background: var-get($theme, 'cell-editing-background');
187187

188-
input {
188+
.igx-input-group__input {
189189
height: 100%;
190190
color: var-get($theme, 'cell-editing-foreground');
191191
}
192192

193-
input:focus {
193+
.igx-input-group__input:focus {
194194
color: var-get($theme, 'cell-editing-focus-foreground');
195195
}
196196
}
@@ -270,6 +270,8 @@
270270

271271
.igx-input-group__input {
272272
padding-inline: sizable(rem(4px), rem(6px), rem(8px)) !important;
273+
margin: 0 auto;
274+
max-width: 100%;
273275
}
274276

275277
igx-date-range-picker {
@@ -280,11 +282,6 @@
280282
display: none;
281283
}
282284

283-
input {
284-
margin: 0 auto;
285-
max-width: 100%;
286-
}
287-
288285
%form-group-input {
289286
// ignore global typography
290287
font-size: $grid-cell-fs !important;

0 commit comments

Comments
 (0)