screen reader and keyboard usability pass

This commit is contained in:
2026-08-23 17:51:46 +03:00
parent db54882933
commit 093b27f3f4
33 changed files with 638 additions and 640 deletions
+1 -1
View File
@@ -118,7 +118,7 @@ export default function Select({ value, options, onChange, className, style }: P
aria-selected={String(o.value) === String(value)}
tabIndex={i === (selectedIndex >= 0 ? selectedIndex : 0) ? 0 : -1}
className={`cv-select-option ${String(o.value) === String(value) ? 'cv-select-option-active' : ''}`}
onClick={() => { onChange(o.value); close() }}
onClick={() => { onChange(o.value); close(); triggerRef.current?.focus() }}
onKeyDown={e => onOptionKeyDown(e, i)}
type="button"
>