Skip to content

Commit 11e6979

Browse files
fix(select-field): Add bottom margin when dropdown has top placement (#3302)
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
1 parent ce27f70 commit 11e6979

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

‎src/components/select-field/SelectField.scss‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,16 @@
5555
.bdl-SelectFieldDropdown {
5656
z-index: 4;
5757
min-width: 100%;
58-
margin-top: $bdl-grid-unit * 2;
5958
overflow-x: hidden;
6059
border-radius: $bdl-border-radius-size-med;
60+
61+
&[data-placement='bottom-start'] {
62+
margin-top: $bdl-grid-unit * 2;
63+
}
64+
65+
&[data-placement='top-start'] {
66+
margin-bottom: $bdl-grid-unit * 2;
67+
}
6168
}
6269

6370
.bdl-SelectField-optionText {

0 commit comments

Comments
 (0)