Skip to content

Commit

Permalink
fix(input): wrong padding in indigo theme (#844)
Browse files Browse the repository at this point in the history
* fix(input): wrong padding in indigo theme
---------

Co-authored-by: Simeon Simeonoff <sim.simeonoff@gmail.com>
  • Loading branch information
SisIvanova and simeonoff authored Aug 1, 2023
1 parent e0d297e commit 0553e2a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
4 changes: 4 additions & 0 deletions src/components/combo/themes/light/combo.indigo.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ $theme: digest-schema($combo-schema);
@include css-vars-from-theme($dropdown-theme, 'ig-dropdown');


igc-input::part(container) {
padding-inline: 0;
}

[part='helper-text'] {
margin-top: rem(6px);
padding-inline: pad-inline(rem(8px), rem(12px), rem(16px));
Expand Down
8 changes: 4 additions & 4 deletions src/components/input/themes/light/input.indigo.scss
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@ $theme: digest-schema(extend(
grid-area: 1 / 2;
}

[part*='input prefixed'] {
padding-inline-start: 0;
[part~='prefixed'] {
padding-inline-start: rem(4px);
}

[part*='input suffixed'] {
padding-inline-end: 0;
[part~='suffixed'] {
padding-inline-end: rem(4px);
}

[part='helper-text'] {
Expand Down
4 changes: 4 additions & 0 deletions src/components/select/themes/light/select.indigo.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ $theme: digest-schema($schema);
color: var-get($input-theme, 'filled-text-color');
}

igc-input::part(container) {
padding-inline: 0;
}

[part='helper-text'] {
margin-top: rem(6px);
padding-inline: pad-inline(rem(8px), rem(12px), rem(16px));
Expand Down

0 comments on commit 0553e2a

Please sign in to comment.