diff --git a/src/lib/stepper/stepper.scss b/src/lib/stepper/stepper.scss index a91a241de129..4999373d4d3a 100644 --- a/src/lib/stepper/stepper.scss +++ b/src/lib/stepper/stepper.scss @@ -76,18 +76,23 @@ $mat-stepper-line-gap: 8px !default; height: auto; padding: $mat-stepper-side-gap; - [dir='ltr'] &:not(:last-child)::after, + &:not(:last-child)::after, [dir='rtl'] &:not(:first-child)::after { @extend %mat-header-horizontal-line-label-position-bottom; right: 0; } - [dir='ltr'] &:not(:first-child)::before, + &:not(:first-child)::before, [dir='rtl'] &:not(:last-child)::before { @extend %mat-header-horizontal-line-label-position-bottom; left: 0; } + [dir='rtl'] &:last-child::before, + [dir='rtl'] &:first-child::after { + display: none; + } + & .mat-step-icon, & .mat-step-icon-not-touched { // Cleans margin both for ltr and rtl direction