Skip to content

Commit bd86ad9

Browse files
committed
MP-85 & MP-87 select dropdoen UI fixes
1 parent 11a3d81 commit bd86ad9

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

src/apps/accounts/src/settings/tabs/tools/software/Software.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

src/libs/ui/lib/components/form/form-groups/form-input/input-select/InputSelect.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
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;

src/libs/ui/lib/components/form/form-groups/form-input/input-select/InputSelect.tsx

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

0 commit comments

Comments
 (0)