Skip to content

Commit ddeeb18

Browse files
mitchellwillsjosephperrott
authored andcommitted
fix(list): override native button text align in action list (#15404)
This happens to work when the content is just text; however, content gets center aligned when there are matLine elements nested in a <button mat-list-item>.
1 parent a7f1981 commit ddeeb18

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/lib/list/list.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,11 @@ mat-action-list {
279279
outline: inherit;
280280
-webkit-tap-highlight-color: transparent;
281281

282+
text-align: left;
283+
[dir='rtl'] & {
284+
text-align: right;
285+
}
286+
282287
&::-moz-focus-inner {
283288
border: 0;
284289
}

0 commit comments

Comments
 (0)