Skip to content

Commit

Permalink
refactor(list): update item gaps (#1480)
Browse files Browse the repository at this point in the history
  • Loading branch information
SisIvanova authored Nov 15, 2024
1 parent 401c4b1 commit 2bd65b6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 21 deletions.
2 changes: 2 additions & 0 deletions src/components/list/themes/item.base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
display: flex;
align-items: center;
position: relative;
gap: rem(16px);
transition: background .15s ease-out;
padding-inline: pad-inline(rem(4px), rem(8px), rem(16px));
padding-block: pad-block(rem(2px), rem(4px), rem(8px));
Expand All @@ -28,6 +29,7 @@
display: flex;
align-items: center;
justify-content: center;
gap: rem(8px);
}

[part='title'] {
Expand Down
2 changes: 2 additions & 0 deletions src/components/list/themes/shared/container/list.indigo.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ $theme: $indigo;

:host {
--component-size: var(--ig-size, #{var-get($theme, 'default-size')}) !important;

gap: rem(4px);
}
8 changes: 0 additions & 8 deletions src/components/list/themes/shared/item/list-item.common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,3 @@ $theme: $material;
[part='end'] {
color: var-get($theme, 'item-action-color');
}

[name='start']::slotted(*) {
margin-inline-end: pad(rem(16px));
}

[name='end']::slotted(*) {
margin-inline-start: pad(rem(16px));
}
17 changes: 4 additions & 13 deletions src/components/list/themes/shared/item/list-item.indigo.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,12 @@
@include type-style('body-2');
}

[part='start'],
[part='end'] {
gap: rem(8px);
}

[name='start']::slotted(*) {
margin-inline-end: 0;
}

[name='end']::slotted(*) {
margin-inline-start: 0;
}

[part='header'] {
display: flex;
flex-direction: column;
gap: rem(2px);
}

[part='end'] {
gap: sizable(rem(4px), rem(6px), rem(8px));
}

0 comments on commit 2bd65b6

Please sign in to comment.