From 9a8441550c5ac7a3ab83c0a29e54166c21d90640 Mon Sep 17 00:00:00 2001 From: Zubair Shakoor Date: Thu, 13 Mar 2025 15:02:05 +0500 Subject: [PATCH] fixed tab index for tab press --- src/discussions/learners/learner/LearnerFilterBar.jsx | 4 ++-- src/discussions/posts/post-filter-bar/PostFilterBar.jsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/discussions/learners/learner/LearnerFilterBar.jsx b/src/discussions/learners/learner/LearnerFilterBar.jsx index 32f91218f..bad6e728f 100644 --- a/src/discussions/learners/learner/LearnerFilterBar.jsx +++ b/src/discussions/learners/learner/LearnerFilterBar.jsx @@ -28,10 +28,10 @@ const ActionItem = React.memo(({ style={{ cursor: 'pointer' }} aria-checked={value === selected} // eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex - tabIndex={value === selected ? '0' : '-1'} + tabIndex={'0'} > - + {label} diff --git a/src/discussions/posts/post-filter-bar/PostFilterBar.jsx b/src/discussions/posts/post-filter-bar/PostFilterBar.jsx index f601cb04d..557193c2d 100644 --- a/src/discussions/posts/post-filter-bar/PostFilterBar.jsx +++ b/src/discussions/posts/post-filter-bar/PostFilterBar.jsx @@ -42,10 +42,10 @@ export const ActionItem = React.memo(({ style={{ cursor: 'pointer' }} aria-checked={value === selected} // eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex - tabIndex={value === selected ? '0' : '-1'} + tabIndex={'0'} > - + {label}