Skip to content
Permalink
Browse files

fix(segment): update segment border for rtl (#18326)

references #17012
  • Loading branch information...
brandyscarney committed May 21, 2019
1 parent 845def8 commit 805b2258766a6554b603974a8912ba79a8060e3f
@@ -71,6 +71,11 @@
}

:host(:not(:first-of-type)) {
@include rtl() {
border-right-width: 0;
border-left-width: var(--border-width);
}

border-left-width: 0;
}

@@ -121,10 +121,16 @@

@each $element in $elements {
@if str-contains($element, ":host(") {
$updated-element: str-replace($element, ")", "");
$updated-element: str-replace($updated-element, ":host(", ":host-context(#{$addHostSelector})");
$scoped-element: $element;

$new-element: append($new-element, $updated-element, space);
@if str-contains($element, "))") {
$scoped-element: str-replace($scoped-element, "))", ")");
} @else {
$scoped-element: str-replace($scoped-element, ")", "");
}
$scoped-element: str-replace($scoped-element, ":host(", ":host-context(#{$addHostSelector})");

$new-element: append($new-element, $scoped-element, space);
} @else {
$new-element: append($new-element, $element, space);
}

0 comments on commit 805b225

Please sign in to comment.
You can’t perform that action at this time.