mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-08 17:22:31 +03:00
Fix dropdown radius if $dropdown-padding-y is not 0 (#28127)
This commit is contained in:
committed by
XhmikosR
parent
1275e35336
commit
d4e782efab
+9
-5
@@ -132,12 +132,16 @@
|
|||||||
background-color: transparent; // For `<button>`s
|
background-color: transparent; // For `<button>`s
|
||||||
border: 0; // For `<button>`s
|
border: 0; // For `<button>`s
|
||||||
|
|
||||||
&:first-child {
|
// Prevent dropdown overflow if there's no padding
|
||||||
@include border-top-radius($dropdown-inner-border-radius);
|
// See https://github.com/twbs/bootstrap/pull/27703
|
||||||
}
|
@if $dropdown-padding-y == 0 {
|
||||||
|
&:first-child {
|
||||||
|
@include border-top-radius($dropdown-inner-border-radius);
|
||||||
|
}
|
||||||
|
|
||||||
&:last-child {
|
&:last-child {
|
||||||
@include border-bottom-radius($dropdown-inner-border-radius);
|
@include border-bottom-radius($dropdown-inner-border-radius);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@include hover-focus {
|
@include hover-focus {
|
||||||
|
|||||||
Reference in New Issue
Block a user