Skip to content

Commit

Permalink
fix(list,menu,select): update layout tokens to latest values and fix …
Browse files Browse the repository at this point in the history
…targets

The layout for the end padding in listitem has changed to 24px, and i realized that I had tokens pointing to the wrong values, so I fixed that too.

PiperOrigin-RevId: 549469035
  • Loading branch information
Elliott Marquez authored and copybara-github committed Jul 20, 2023
1 parent 7760021 commit e9ef7ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions list/lib/listitem/_list-item.scss
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@
.content-wrapper {
display: flex;
width: 100%;
box-sizing: border-box;
border-radius: inherit;
padding-inline-end: var(--_list-item-trailing-space);
}

md-ripple {
Expand Down Expand Up @@ -135,7 +137,6 @@
box-sizing: border-box;
flex: 1 0 0;
padding-inline-start: var(--_list-item-leading-space);
padding-inline-end: var(--_list-item-trailing-space);
z-index: 1;
}

Expand All @@ -153,7 +154,7 @@

slot[name='end']::slotted(*),
.trailing-supporting-text {
margin-inline-end: var(
margin-inline-start: var(
--_list-item-trailing-element-headline-trailing-element-space
);
}
Expand Down
2 changes: 1 addition & 1 deletion tokens/_md-comp-list-item.scss
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ $_default: (
// 'list-item-leading-item-bottom-space': if($exclude-hardcoded-values, null, 8px),
// 'list-item-leading-video-bottom-space': if($exclude-hardcoded-values, null, 0px),
'list-item-trailing-element-headline-trailing-element-space': 16px,
'list-item-trailing-space': if($exclude-hardcoded-values, null, 16px),
'list-item-trailing-space': if($exclude-hardcoded-values, null, 24px),
// go/keep-sorted end
);
}
Expand Down

0 comments on commit e9ef7ec

Please sign in to comment.