Skip to content

Commit b852bba

Browse files
authored
fix(b-dropdown-form): fix SCSS styling when placed in a nav dropdown (fixes #4220) (#4223)
1 parent 9f216df commit b852bba

File tree

1 file changed

+25
-27
lines changed

1 file changed

+25
-27
lines changed

src/components/dropdown/_dropdown-form.scss

Lines changed: 25 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -6,35 +6,33 @@ $bv-dropdown-form-defined: false !default;
66

77
// Custom styles for <b-dropdown-form>
88
// Based on class `.dropdown-item`
9-
.dropdown.b-dropdown {
10-
.b-dropdown-form {
11-
display: inline-block;
12-
padding: $dropdown-item-padding-y $dropdown-item-padding-x;
13-
width: 100%;
14-
clear: both;
15-
font-weight: $font-weight-normal;
9+
.b-dropdown-form {
10+
display: inline-block;
11+
padding: $dropdown-item-padding-y $dropdown-item-padding-x;
12+
width: 100%;
13+
clear: both;
14+
font-weight: $font-weight-normal;
1615

17-
&:focus {
18-
// From https://github.com/twbs/bootstrap/blob/master/scss/_reboot.scss
19-
// mimicking button:focus styling.
20-
// We add important here as anything with tabindex `-1` and focused will not
21-
// have a focus ring due to reboot.scss and it's `!important` override.
22-
// Needed for keyboard navigation high-lighting
23-
outline: 1px dotted !important;
24-
outline: 5px auto -webkit-focus-ring-color !important;
25-
}
16+
&:focus {
17+
// From https://github.com/twbs/bootstrap/blob/master/scss/_reboot.scss
18+
// mimicking button:focus styling.
19+
// We add important here as anything with tabindex `-1` and focused will not
20+
// have a focus ring due to reboot.scss and it's `!important` override.
21+
// Needed for keyboard navigation high-lighting
22+
outline: 1px dotted !important;
23+
outline: 5px auto -webkit-focus-ring-color !important;
24+
}
2625

27-
&.disabled,
28-
&:disabled {
29-
outline: 0 !important;
30-
color: $dropdown-link-disabled-color;
31-
pointer-events: none;
32-
// background-color: transparent;
33-
// Remove CSS gradients if they're enabled
34-
// @if $enable-gradients {
35-
// background-image: none;
36-
// }
37-
}
26+
&.disabled,
27+
&:disabled {
28+
outline: 0 !important;
29+
color: $dropdown-link-disabled-color;
30+
pointer-events: none;
31+
// background-color: transparent;
32+
// Remove CSS gradients if they're enabled
33+
// @if $enable-gradients {
34+
// background-image: none;
35+
// }
3836
}
3937
}
4038
}

0 commit comments

Comments
 (0)