Skip to content

Commit 4275747

Browse files
authored
Merge pull request #75 from mendix/fix-dark-mode-dropdown
[WT-2645] Add necessary styles for dropdown dark mode
2 parents 9c51f6c + d68c05b commit 4275747

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

styles/native/js/core/widgets/dropdown.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export const DropDown = {
4444
},
4545
/* New dropdown styles start */
4646
valueContainer: {
47-
// All ViewStyle properties & rippleColor are allowed
47+
// All ViewStyle properties & rippleColor are allowed
4848
},
4949
menuWrapper: {
5050
// All ViewStyle properties are allowed
@@ -59,9 +59,11 @@ export const DropDown = {
5959
maxWidth: 500,
6060
paddingVertical: 6,
6161
paddingHorizontal: 16,
62+
backgroundColor: input.backgroundColor,
6263
},
6364
item: {
64-
// All TextStlye properties are allowed
65+
// All TextStlye properties are allowed
66+
color: input.color,
6567
},
6668
selectedItem: {
6769
// All TextStlye properties are allowed
@@ -79,10 +81,10 @@ export const DropDown = {
7981
backgroundColor: input.backgroundColor,
8082
},
8183
pickerItemIOS: {
82-
// All TextStyle properties are allowed
84+
// All TextStyle properties are allowed
8385
},
8486
pickerBackdropIOS: {
85-
// All ViewStyle properties are allowed
87+
// All ViewStyle properties are allowed
8688
},
8789
pickerTopIOS: {
8890
// All ViewStyle properties are allowed

styles/native/ts/core/widgets/dropdown.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,11 @@ export const DropDown: DropDownType = {
6363
maxWidth: 500,
6464
paddingVertical: 6,
6565
paddingHorizontal: 16,
66+
backgroundColor: input.backgroundColor,
6667
},
6768
item: {
6869
// All TextStlye properties are allowed
70+
color: input.color,
6971
},
7072
selectedItem: {
7173
// All TextStlye properties are allowed

0 commit comments

Comments
 (0)