diff --git a/docs/4.0/components/progress.md b/docs/4.0/components/progress.md index 4cbc333aaf54..07217d939b27 100644 --- a/docs/4.0/components/progress.md +++ b/docs/4.0/components/progress.md @@ -55,14 +55,14 @@ Add labels to your progress bars by placing text within the `.progress-bar`. ## Height -We only set a `height` value on the `.progress-bar`, so if you change that value the outer `.progress` will automatically resize accordingly. +We only set a `height` value on the `.progress`, so if you change that value the inner `.progress-bar` will automatically resize accordingly. {% example html %} -
-
+
+
-
-
+
+
{% endexample %} diff --git a/scss/_progress.scss b/scss/_progress.scss index f7491a64b291..efbb4403407d 100644 --- a/scss/_progress.scss +++ b/scss/_progress.scss @@ -5,21 +5,19 @@ .progress { display: flex; + height: $progress-height; overflow: hidden; // force rounded corners by cropping it font-size: $progress-font-size; - line-height: $progress-height; - text-align: center; background-color: $progress-bg; @include border-radius($progress-border-radius); - @include box-shadow($progress-box-shadow); } .progress-bar { - height: $progress-height; - line-height: $progress-height; + display: flex; + align-items: center; + justify-content: center; color: $progress-bar-color; background-color: $progress-bar-bg; - @include transition($progress-bar-transition); } .progress-bar-striped {