From 6c9e8f2fd30fe34ee08af47050a999d1bc9e887e Mon Sep 17 00:00:00 2001 From: ysds Date: Mon, 26 Feb 2018 16:21:51 +0900 Subject: [PATCH] Fix caret alignment --- scss/_button-group.scss | 8 +++++++- scss/mixins/_caret.scss | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/scss/_button-group.scss b/scss/_button-group.scss index c1b826536c50..54951703459c 100644 --- a/scss/_button-group.scss +++ b/scss/_button-group.scss @@ -76,9 +76,15 @@ padding-right: $btn-padding-x * .75; padding-left: $btn-padding-x * .75; - &::after { + &::after, + .dropup &::after, + .dropright &::after { margin-left: 0; } + + .dropleft &::before { + margin-right: 0; + } } .btn-sm + .dropdown-toggle-split { diff --git a/scss/mixins/_caret.scss b/scss/mixins/_caret.scss index 40478e492970..82aea42101a6 100644 --- a/scss/mixins/_caret.scss +++ b/scss/mixins/_caret.scss @@ -14,6 +14,7 @@ @mixin caret-right { border-top: $caret-width solid transparent; + border-right: 0; border-bottom: $caret-width solid transparent; border-left: $caret-width solid; }