Skip to content

Commit

Permalink
chore(list): ensure the menu is always on the far right
Browse files Browse the repository at this point in the history
Sometimes, `primaryComponent`s in list items need to get
`order: 2;` to be placed after the text. But since the default `order`
of all lit item children is `0`, we need to push the menu to the far right
by giving it a bigger order number. Also, by making this into a variable
we can handle other edge-cases in consuming components.
  • Loading branch information
Kiarokh authored and Befkadu1 committed Jun 20, 2024
1 parent c931db8 commit 429fab9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/list/list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ $list-mdc-list-item: 0;
// the action menu on the right side a list item
line-height: 100%;
margin-right: -0.5rem;
order: var(--limel-list-meta-order, 3);
}

.mdc-deprecated-list-item__graphic {
Expand Down

0 comments on commit 429fab9

Please sign in to comment.