From cacf614baedb1400b5a5bab86ebd87e7f6b5771d Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Mon, 12 Feb 2024 11:58:37 +0100 Subject: [PATCH] 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. --- src/material/list/list.scss | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/material/list/list.scss b/src/material/list/list.scss index 2500f8e5b4f2..9291984fee05 100644 --- a/src/material/list/list.scss +++ b/src/material/list/list.scss @@ -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;