Skip to content

Commit 43dbbe2

Browse files
authored
fix(material/progress-bar): alignment affected by parent text-align (#27646)
Fixes that the progress bar's alignment was affected by the parent's element's `text-align`. Fixes #27613.
1 parent bbc807a commit 43dbbe2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@
2323
// Explicitly set to `block` since the browser defaults custom elements to `inline`.
2424
display: block;
2525

26+
// Explicitly set a `text-align` so that the content isn't affected by the parent (see #27613).
27+
text-align: left;
28+
29+
[dir='rtl'] & {
30+
text-align: right;
31+
}
32+
2633
// Inverts the progress bar horizontally in `query` mode.
2734
&[mode='query'] {
2835
transform: scaleX(-1);

0 commit comments

Comments
 (0)