Skip to content

Commit 7df01ff

Browse files
author
Pooya Parsa
committed
fix(input-group): fix dropdown rounded corners. closes bootstrap-vue#1560.
1 parent 3ad8a9a commit 7df01ff

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

src/components/dropdown/dropdown.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/* workaround for https://github.com/bootstrap-vue/bootstrap-vue/issues/1560 */
2+
/* source: _input-group.scss */
3+
4+
.input-group > .input-group-prepend > .b-dropdown > .btn,
5+
.input-group > .input-group-append:not(:last-child) > .b-dropdown > .btn,
6+
.input-group > .input-group-append:last-child > .b-dropdown:not(:last-child):not(.dropdown-toggle) > .btn {
7+
border-top-right-radius: 0;
8+
border-bottom-right-radius: 0;
9+
}
10+
11+
.input-group > .input-group-append > .b-dropdown > .btn,
12+
.input-group > .input-group-prepend:not(:first-child) > .b-dropdown > .btn,
13+
.input-group > .input-group-prepend:first-child > .b-dropdown:not(:first-child) > .btn {
14+
border-top-left-radius: 0;
15+
border-bottom-left-radius: 0;
16+
}

src/components/dropdown/dropdown.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import idMixin from '../../mixins/id'
22
import dropdownMixin from '../../mixins/dropdown'
33
import bButton from '../button/button'
44

5+
import './dropdown.css'
6+
57
export default {
68
mixins: [idMixin, dropdownMixin],
79
components: { bButton },

0 commit comments

Comments
 (0)