Skip to content

Commit 58dd802

Browse files
committedAug 15, 2023
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. (cherry picked from commit 43dbbe2)
1 parent 8f161e8 commit 58dd802

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
 

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

+7
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@
2929
// Explicitly set to `block` since the browser defaults custom elements to `inline`.
3030
display: block;
3131

32+
// Explicitly set a `text-align` so that the content isn't affected by the parent (see #27613).
33+
text-align: left;
34+
35+
[dir='rtl'] & {
36+
text-align: right;
37+
}
38+
3239
// Inverts the progress bar horizontally in `query` mode.
3340
&[mode='query'] {
3441
transform: scaleX(-1);

0 commit comments

Comments
 (0)
Please sign in to comment.