Skip to content

Commit 51def6c

Browse files
committed
site: improvements
1 parent 23be69c commit 51def6c

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

site/src/css/_forms.scss

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff 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);

site/src/playground/js/playground.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)