Skip to content

Commit

Permalink
fix(list): improve distances between elements within list items
Browse files Browse the repository at this point in the history
  • Loading branch information
Kiarokh authored and Befkadu1 committed Jun 20, 2024
1 parent 6e30ec9 commit c931db8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
11 changes: 5 additions & 6 deletions src/components/list/list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ $list-mdc-list-item: 0;
}

.mdc-deprecated-list-item__graphic {
margin-right: functions.pxToRem(8);
margin-right: 0;
}

&.mdc-deprecated-list--avatar-list {
Expand All @@ -138,7 +138,6 @@ $list-mdc-list-item: 0;
rgb(var(--contrast-900))
);
color: var(--icon-color, rgba(var(--color-white), 0.88));
margin-right: functions.pxToRem(12);
margin-left: functions.pxToRem(-4);
}

Expand Down Expand Up @@ -224,16 +223,16 @@ $list-mdc-list-item: 0;
limel-icon.mdc-deprecated-list-item__graphic {
// Tweaks to make icon lists align nicely with badge-icon lists.
&[size='x-small'] {
margin-right: functions.pxToRem(4);
margin-right: 0;
}
&[size='small'] {
margin-right: functions.pxToRem(8);
margin-right: 0;
}
&[size='medium'] {
margin-right: functions.pxToRem(8);
margin-right: 0.25rem;
}
&[size='large'] {
margin-right: functions.pxToRem(12);
margin-right: 0.5rem;
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion src/components/menu-list/menu-list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
font-size: functions.pxToRem(13);

.mdc-deprecated-list-item__graphic {
margin-right: functions.pxToRem(14);
margin-right: 0;
margin-left: -0.75rem;
}
}

Expand Down

0 comments on commit c931db8

Please sign in to comment.