Skip to content

Commit

Permalink
fix(material/list): use direction-agnostic text-align
Browse files Browse the repository at this point in the history
Avoids some extra styles by using `text-align: start` instead of having to flip it manually for RTL.
  • Loading branch information
crisbeto committed Feb 12, 2024
1 parent f12488a commit cacf614
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/material/list/list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,7 @@ mat-action-list button {
font: inherit;
outline: inherit;
-webkit-tap-highlight-color: transparent;
text-align: left;

[dir='rtl'] & {
text-align: right;
}
text-align: start;

&::-moz-focus-inner {
border: 0;
Expand Down

0 comments on commit cacf614

Please sign in to comment.