Skip to content

Commit

Permalink
fix(split-pane): properly show border in rtl mode (#20995)
Browse files Browse the repository at this point in the history
closes #20994

Co-authored-by: Ramez Atassi <ramez@al-salamah.net>
  • Loading branch information
ataramez and Ramez Atassi committed Apr 8, 2020
1 parent 8a02b28 commit 7a21708
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 12 deletions.
10 changes: 4 additions & 6 deletions core/src/components/split-pane/split-pane.ios.scss
Expand Up @@ -11,17 +11,15 @@
}

:host(.split-pane-visible) ::slotted(.split-pane-side) {
@include border(0, var(--border), 0, 0);

min-width: var(--side-min-width);
max-width: var(--side-max-width);

border-right: var(--border);
border-left: 0;
}

:host(.split-pane-visible) ::slotted(.split-pane-side[side=end]) {
@include border(0, 0, 0, var(--border));

min-width: var(--side-min-width);
max-width: var(--side-max-width);

border-right: 0;
border-left: var(--border);
}
10 changes: 4 additions & 6 deletions core/src/components/split-pane/split-pane.md.scss
Expand Up @@ -11,17 +11,15 @@
}

:host(.split-pane-visible) ::slotted(.split-pane-side) {
@include border(0, var(--border), 0, 0);

min-width: var(--side-min-width);
max-width: var(--side-max-width);

border-right: var(--border);
border-left: 0;
}

:host(.split-pane-visible) ::slotted(.split-pane-side[side=end]) {
@include border(0, 0, 0, var(--border));

min-width: var(--side-min-width);
max-width: var(--side-max-width);

border-right: 0;
border-left: var(--border);
}
10 changes: 10 additions & 0 deletions core/src/themes/ionic.mixins.scss
Expand Up @@ -324,6 +324,16 @@
bottom: $bottom;
}

// Add border for all directions
// @param {string} $top
// @param {string} $end
// @param {string} $bottom
// @param {string} $start
// ----------------------------------------------------------
@mixin border($top, $end: $top, $bottom: $top, $start: $end) {
@include property(border, $top, $end, $bottom, $start);
}

// Add border radius for all directions
// @param {string} $top-start
// @param {string} $top-end
Expand Down

0 comments on commit 7a21708

Please sign in to comment.