Skip to content

Commit 4f518f9

Browse files
committed
fix(material/list): use direction-agnostic text-align
Avoids some extra styles by using `text-align: start` instead of having to flip it manually for RTL.
1 parent 27df9cf commit 4f518f9

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/material/list/list.scss

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,7 @@ mat-action-list button {
186186
font: inherit;
187187
outline: inherit;
188188
-webkit-tap-highlight-color: transparent;
189-
text-align: left;
190-
191-
[dir='rtl'] & {
192-
text-align: right;
193-
}
189+
text-align: start;
194190

195191
&::-moz-focus-inner {
196192
border: 0;

0 commit comments

Comments
 (0)