File tree Expand file tree Collapse file tree 3 files changed +4
-1
lines changed
packages/core/src/components/Picker Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ function PickerExample() {
3131 options = { OPTIONS }
3232 value = { value1 }
3333 mode = "dropdown"
34+ dropDownTextColor = "red"
3435 onValueChange = { ( value ) => setValue ( value . toString ( ) ) }
3536 style = { { marginBottom : 20 } }
3637 />
Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ export interface CommonDropDownPickerProps extends CommonPickerProps {
4646 selectedIconSize ?: number ;
4747 dropDownBackgroundColor ?: string ;
4848 dropDownBorderColor ?: string ;
49+ dropDownTextColor ?: string ;
4950 dropDownBorderWidth ?: number ;
5051 dropDownBorderRadius ?: number ;
5152}
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ const DropDownPicker: React.FC<
3333 selectedIconSize = 20 ,
3434 dropDownBackgroundColor = theme . colors . background ,
3535 dropDownBorderColor = theme . colors . divider ,
36+ dropDownTextColor = theme . colors . strong ,
3637 dropDownBorderWidth = 1 ,
3738 dropDownBorderRadius = 8 ,
3839 children : childrenProp ,
@@ -104,7 +105,7 @@ const DropDownPicker: React.FC<
104105 multiple = { isMultiSelect }
105106 style = { { display : "none" } } // To not render the default input container
106107 listItemLabelStyle = { [
107- { color : theme . colors . strong , fontSize : 14 } ,
108+ { color : dropDownTextColor , fontSize : 14 } ,
108109 pickerItemTextStyles ,
109110 ] }
110111 selectedItemLabelStyle = { [
You can’t perform that action at this time.
0 commit comments