Skip to content

Commit f1fdce8

Browse files
author
Wesley
committed
update dropdown & reference
1 parent 4122f12 commit f1fdce8

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,6 @@ export const DropDown: DropDownType = {
3737
fontFamily: input.fontFamily,
3838
placeholderTextColor: input.placeholderTextColor, // Only applied when useUniformDesign is true
3939
},
40-
valueDisabled: {
41-
// All TextStyle properties are allowed
42-
...TextBox.inputDisabled
43-
},
4440
validationMessage: {
4541
// All TextStyle properties are allowed
4642
...TextBox.validationMessage,
@@ -49,6 +45,10 @@ export const DropDown: DropDownType = {
4945
valueFocused: {
5046
// All TextStyle properties are allowed
5147
},
48+
valueDisabled: {
49+
// All TextStyle properties are allowed
50+
...TextBox.inputDisabled
51+
},
5252
valueContainer: {
5353
// All ViewStyle properties & rippleColor are allowed
5454
flexDirection: "row",
@@ -125,10 +125,10 @@ export const DropDownVertical: DropDownType = {
125125
labelDisabled: TextBoxVertical.labelDisabled,
126126
value: DropDown.value,
127127
valueFocused: DropDown.valueFocused,
128-
valueContainerDisabled: DropDown.valueContainerDisabled,
129128
validationMessage: TextBoxVertical.validationMessage,
130129
valueContainer: DropDown.valueContainer,
131130
valueContainerFocused: DropDown.valueContainerFocused,
131+
valueContainerDisabled: DropDown.valueContainerDisabled,
132132
menuWrapper: DropDown.menuWrapper,
133133
itemContainer: DropDown.itemContainer,
134134
item: DropDown.item,

styles/native/ts/core/widgets/referenceselector.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { border, contrast, font, input } from "../variables";
2-
import { DropDown, DropDownVertical } from "./dropdown";
2+
import { DropDownVertical } from "./dropdown";
33
import { TextBox, TextBoxVertical } from "./textbox";
44
import { DropDownType } from "../../types/widgets";
55
/*
@@ -39,10 +39,6 @@ export const ReferenceSelector: DropDownType = {
3939
overflow: "hidden",
4040
placeholderTextColor: input.placeholderTextColor, // Only applied when useUniformDesign is true
4141
},
42-
valueDisabled: {
43-
// All TextStyle properties are allowed
44-
...TextBox.inputDisabled
45-
},
4642
validationMessage: {
4743
// All TextStyle properties are allowed
4844
...TextBox.validationMessage,
@@ -51,6 +47,10 @@ export const ReferenceSelector: DropDownType = {
5147
valueFocused: {
5248
// All TextStyle properties are allowed
5349
},
50+
valueDisabled: {
51+
// All TextStyle properties are allowed
52+
...TextBox.inputDisabled
53+
},
5454
valueContainer: {
5555
// All ViewStyle properties & rippleColor are allowed
5656
flexDirection: "row",
@@ -125,12 +125,12 @@ export const ReferenceSelectorVertical: DropDownType = {
125125
containerDisabled: TextBoxVertical.containerDisabled,
126126
label: TextBoxVertical.label,
127127
labelDisabled: TextBoxVertical.labelDisabled,
128-
value: DropDown.value,
129-
valueFocused: DropDown.valueFocused,
130-
valueContainerDisabled: DropDown.valueContainerDisabled,
128+
value: DropDownVertical.value,
129+
valueFocused: DropDownVertical.valueFocused,
131130
validationMessage: TextBoxVertical.validationMessage,
132131
valueContainer: DropDownVertical.valueContainer,
133132
valueContainerFocused: DropDownVertical.valueContainerFocused,
133+
valueContainerDisabled: DropDownVertical.valueContainerDisabled,
134134
menuWrapper: DropDownVertical.menuWrapper,
135135
itemContainer: DropDownVertical.itemContainer,
136136
item: DropDownVertical.item,

0 commit comments

Comments
 (0)