Skip to content

Commit

Permalink
fix(progressindicator): adjust styles for progress step with optional…
Browse files Browse the repository at this point in the history
… label position (#5356)

* fix(progressindicator): adjust styles for progress step with optional label
  • Loading branch information
abbeyhrt committed Feb 17, 2020
1 parent acb9458 commit ea14f98
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 18 deletions.
11 changes: 4 additions & 7 deletions packages/components/docs/sass.md
Original file line number Diff line number Diff line change
Expand Up @@ -20640,12 +20640,11 @@ Progress indicator styles
width: rem(40px);
}

.#{$prefix}--progress--vertical {
display: block;
}
// Vertical Variant

.#{$prefix}--progress--vertical .#{$prefix}--progress-step {
padding-bottom: rem(24px);
.#{$prefix}--progress--vertical {
display: flex;
flex-direction: column;
}

.#{$prefix}--progress--vertical .#{$prefix}--progress-step,
Expand Down Expand Up @@ -20685,12 +20684,10 @@ Progress indicator styles

.#{$prefix}--progress--vertical .#{$prefix}--progress-optional {
margin-top: auto;
position: initial;
margin-left: 2.25rem;
}

.#{$prefix}--progress--vertical .#{$prefix}--progress-line {
top: 0;
left: 0;
height: 100%;
width: 1px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,12 @@
height: $carbon--spacing-05;
border-radius: 50%;
margin: 9px $carbon--spacing-03 0 0;
fill: $interactive-01;
fill: $interactive-04;
}

.#{$prefix}--progress-label {
@include type-style('body-short-01');
color: $text-01;
line-height: 1.45;
max-width: rem(88px);
margin: $carbon--spacing-03 0 0 0;
Expand Down Expand Up @@ -131,7 +132,7 @@
left: 0;
margin-left: $carbon--spacing-06;
margin-top: rem(28px);
color: $text-01;
color: $text-02;
text-align: start;
}

Expand All @@ -143,8 +144,8 @@
}

.#{$prefix}--progress-step--current svg {
stroke: $interactive-01;
fill: $interactive-01;
stroke: $interactive-04;
fill: $interactive-04;

path:last-of-type {
stroke-width: 40%;
Expand Down Expand Up @@ -225,12 +226,11 @@
width: rem(40px);
}

.#{$prefix}--progress--vertical {
display: block;
}
// Vertical Variant

.#{$prefix}--progress--vertical .#{$prefix}--progress-step {
padding-bottom: rem(24px);
.#{$prefix}--progress--vertical {
display: flex;
flex-direction: column;
}

.#{$prefix}--progress--vertical .#{$prefix}--progress-step,
Expand Down Expand Up @@ -270,12 +270,10 @@

.#{$prefix}--progress--vertical .#{$prefix}--progress-optional {
margin-top: auto;
position: initial;
margin-left: 2.25rem;
}

.#{$prefix}--progress--vertical .#{$prefix}--progress-line {
top: 0;
left: 0;
height: 100%;
width: 1px;
Expand Down

0 comments on commit ea14f98

Please sign in to comment.