Small UX improvements

This commit is contained in:
Justin 2022-06-07 12:45:36 -04:00
parent 6b07a7c3b6
commit 2c3bfefa4c
2 changed files with 3 additions and 2 deletions

View file

@ -285,7 +285,7 @@ export default class AutosuggestInput extends ImmutablePureComponent<IAutosugges
<input
type='text'
className={classNames({
'block w-full rounded-md sm:text-sm border-gray-300 dark:border-gray-600 dark:bg-slate-800 dark:text-white dark:placeholder:text-gray-500 focus:ring-primary-500 focus:border-primary-500': true,
'block w-full sm:text-sm border-gray-300 dark:border-gray-600 dark:bg-slate-800 dark:text-white dark:placeholder:text-gray-500 focus:ring-primary-500 focus:border-primary-500': true,
}, className)}
ref={this.setInput}
disabled={disabled}

View file

@ -84,6 +84,7 @@ const Option = (props: IOption) => {
</div>
<AutosuggestInput
className='rounded-md'
placeholder={intl.formatMessage(messages.option_placeholder, { number: index + 1 })}
maxLength={maxChars}
value={title}
@ -93,7 +94,7 @@ const Option = (props: IOption) => {
onSuggestionsClearRequested={onSuggestionsClearRequested}
onSuggestionSelected={onSuggestionSelected}
searchTokens={[':']}
autoFocus
autoFocus={index === 0}
/>
</HStack>