screen reader and keyboard usability pass
This commit is contained in:
@@ -104,8 +104,8 @@ export default function CommunityCluesPanel({ onClose }: { onClose: () => void }
|
||||
onChange={e => setWord(e.target.value.toUpperCase().replace(/[^A-Z]/g, ''))}
|
||||
onKeyDown={e => e.key === 'Enter' && search()}
|
||||
/>
|
||||
<button className="btn btn-sm btn-primary" onClick={search} disabled={!word.trim()}>
|
||||
<IconSearch size={14} />
|
||||
<button className="btn btn-sm btn-primary" onClick={search} disabled={!word.trim()} aria-label="Search">
|
||||
<IconSearch size={14} aria-hidden="true" />
|
||||
</button>
|
||||
</div>
|
||||
|
||||
@@ -128,8 +128,8 @@ export default function CommunityCluesPanel({ onClose }: { onClose: () => void }
|
||||
maxLength={500}
|
||||
onKeyDown={e => e.key === 'Enter' && submitClue()}
|
||||
/>
|
||||
<button className="btn btn-sm btn-primary" onClick={submitClue} disabled={submitting || !newClue.trim()}>
|
||||
<IconSend2 size={14} />
|
||||
<button className="btn btn-sm btn-primary" onClick={submitClue} disabled={submitting || !newClue.trim()} aria-label={t('game.submit')}>
|
||||
<IconSend2 size={14} aria-hidden="true" />
|
||||
</button>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user