Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/material/list/_list-inherited-structure.scss
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,12 @@ $fallbacks: m3-list.get-tokens();
margin-right: 32px;
}

// Icon font stylesheets (e.g. Material Icons/Symbols) set `direction: ltr` on the icon, so
// the logical margins from `list.scss` resolve as LTR inside an RTL list. Swap the token
// values here instead of hardcoding them, so that RTL mirrors LTR for any theme.
[dir='rtl'] .mdc-list-item--with-leading-icon & {
margin-left: 32px;
margin-right: 16px;
margin-left: token-utils.slot(list-list-item-leading-icon-end-space, $fallbacks);
margin-right: token-utils.slot(list-list-item-leading-icon-start-space, $fallbacks);
}

.mdc-list-item--with-leading-icon:hover & {
Expand Down
Loading