Skip to content

Commit d0618bc

Browse files
committed
fix(material/progress-bar): incorrect alignment if direction is set on element
Fixes an issue where the progress bar was looking for `dir="rtl"` only on parent elements, but on itself. We can avoid the problem altogether by using a directionality-agnostic property. Fixes #28572.
1 parent 78a292b commit d0618bc

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/material/progress-bar/progress-bar.scss

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,7 @@
1616
display: block;
1717

1818
// Explicitly set a `text-align` so that the content isn't affected by the parent (see #27613).
19-
text-align: left;
20-
21-
[dir='rtl'] & {
22-
text-align: right;
23-
}
19+
text-align: start;
2420

2521
// Inverts the progress bar horizontally in `query` mode.
2622
&[mode='query'] {

0 commit comments

Comments
 (0)