File tree Expand file tree Collapse file tree 3 files changed +4
-1
lines changed
apps/accounts/src/settings/tabs/tools/software
libs/ui/lib/components/form/form-groups/form-input/input-select Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -279,6 +279,7 @@ const Software: FC<SoftwareProps> = (props: SoftwareProps) => {
279279 name = 'softwareTypes'
280280 label = 'Software Type *'
281281 error = { formErrors . softwareType }
282+ placeholder = 'Select a Software Type'
282283 dirty
283284 />
284285 < InputText
Original file line number Diff line number Diff line change 55 align-items : center ;
66 margin-top : $sp-1 ;
77 cursor : pointer ;
8- color : $black-100 ;
8+ color : $black-60 ;
99
1010 & -icon {
1111 margin-left : auto ;
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ interface InputSelectProps {
3232 readonly name : string
3333 readonly onChange : ( event : ChangeEvent < HTMLInputElement > ) => void
3434 readonly options : ReadonlyArray < InputSelectOption >
35+ readonly placeholder ?: string
3536 readonly tabIndex ?: number
3637 readonly value ?: string
3738}
@@ -79,6 +80,7 @@ const InputSelect: FC<InputSelectProps> = (props: InputSelectProps) => {
7980 >
8081 < div className = { styles . selected } onClick = { toggleIfNotDisabled } >
8182 < span className = 'body-small' > { selectedOption ? label ( selectedOption ) : '' } </ span >
83+ < span className = 'body-small' > { ! selectedOption && ! ! props . placeholder ? props . placeholder : '' } </ span >
8284 < span className = { styles [ 'selected-icon' ] } >
8385 < IconOutline . ChevronDownIcon />
8486 </ span >
You can’t perform that action at this time.
0 commit comments