From cc12bd21a66987fdb4a0d6de47b25ef74d81770f Mon Sep 17 00:00:00 2001 From: Alina Andrieieva Date: Thu, 7 Sep 2023 17:44:11 +0300 Subject: [PATCH 01/12] improved a11y with aria-attribules for input, select, and option --- packages/react-select/src/Select.tsx | 84 ++++++++++++++++++- .../src/components/LiveRegion.tsx | 11 +-- 2 files changed, 86 insertions(+), 9 deletions(-) diff --git a/packages/react-select/src/Select.tsx b/packages/react-select/src/Select.tsx index 16daa33094..3242eab3fd 100644 --- a/packages/react-select/src/Select.tsx +++ b/packages/react-select/src/Select.tsx @@ -329,6 +329,8 @@ interface State< inputIsHidden: boolean; isFocused: boolean; focusedOption: Option | null; + focusedOptionId: string | null; + focusableOptionsWithIds: FocusableOptionWithId