Skip to content

Commit d4d0e78

Browse files
committed
perf(material/table): Use text-align: start instead of descendent dir selector.
1 parent ef53e73 commit d4d0e78

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/material/table/table.scss

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,8 @@ $fallbacks: m3-table.get-tokens();
3939
.mdc-data-table__cell {
4040
box-sizing: border-box;
4141
overflow: hidden;
42-
text-align: left;
42+
text-align: start;
4343
text-overflow: ellipsis;
44-
45-
[dir='rtl'] & {
46-
text-align: right;
47-
}
4844
}
4945

5046
.mdc-data-table__cell,
@@ -103,11 +99,7 @@ $fallbacks: m3-table.get-tokens();
10399
text-overflow: ellipsis;
104100
overflow: hidden;
105101
outline: none;
106-
text-align: left;
107-
108-
[dir='rtl'] & {
109-
text-align: right;
110-
}
102+
text-align: start;
111103

112104
.mdc-data-table__row:last-child > & {
113105
border-bottom: none;

0 commit comments

Comments
 (0)