diff --git a/src/pages/ValidatorOnboarding/KeyGeneration/AutocompleteInput.css b/src/pages/ValidatorOnboarding/KeyGeneration/AutocompleteInput.css new file mode 100644 index 00000000..5bc7f925 --- /dev/null +++ b/src/pages/ValidatorOnboarding/KeyGeneration/AutocompleteInput.css @@ -0,0 +1,16 @@ +.suggestion-list { + max-height: 100px; + overflow-y: scroll; + border: 1px solid #ccc; + border-radius: 4px; + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); +} + +.suggestion-item { + padding: 5px; + cursor: pointer; +} + +.suggestion-item:hover { + background-color: #f1f1f1; +} diff --git a/src/pages/ValidatorOnboarding/KeyGeneration/AutocompleteInput.tsx b/src/pages/ValidatorOnboarding/KeyGeneration/AutocompleteInput.tsx index 39164432..fbc6538d 100644 --- a/src/pages/ValidatorOnboarding/KeyGeneration/AutocompleteInput.tsx +++ b/src/pages/ValidatorOnboarding/KeyGeneration/AutocompleteInput.tsx @@ -4,6 +4,7 @@ import wordlist from 'web-bip39/wordlists/english' import { RootState } from '../../../redux/store' import { setMnemonic, setWord } from '../../../redux/ValidatorOnboarding/KeyGeneration/slice' +import './AutocompleteInput.css' type AutocompleteInputProps = { index: number @@ -50,9 +51,13 @@ const AutocompleteInput = ({ index }: AutocompleteInputProps) => { /> {isFocused && (