File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed
Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -19,15 +19,18 @@ textarea.form-control::placeholder {
1919 border-bottom-left-radius : var (--bs-border-radius );
2020}
2121
22- @media (prefers-color-scheme : dark ) {
23- :root {
24- /* plugin overrides */
25- --iti-border-color : #5b5b5b ;
26- --iti-dropdown-bg : var (--bs-dark );
27- --iti-icon-color : var (--bs-body-color );
22+ :root {
23+ /* plugin overrides (NOTE: the bootstrap vars handle dark mode automatically) */
24+ --iti-border-color : var (--bs-border-color );
25+ --iti-dropdown-bg : var (--bs-body-bg );
26+ --iti-icon-color : var (--bs-body-color );
27+ --iti-hover-color : #f8f9fa ;
28+
29+ @media (prefers-color-scheme : dark ) {
2830 --iti-hover-color : #30363d ;
2931 }
3032}
33+
3134.iti__dropdown-content ,
3235.iti__search-input {
3336 border-radius : var (--bs-border-radius );
Original file line number Diff line number Diff line change @@ -48,7 +48,8 @@ function shouldDisableKeepDropdownOpen(state) {
4848 state . useFullscreenPopup ||
4949 ! state . allowDropdown ||
5050 state . disabled ||
51- state . readOnly
51+ state . readOnly ||
52+ state . dropdownContainer // uses pos:fixed so can't be kept open on scroll
5253 ) ;
5354}
5455
You can’t perform that action at this time.
0 commit comments