Skip to content

Commit

Permalink
Prevent tabbing on checkboxes
Browse files Browse the repository at this point in the history
  • Loading branch information
felixhabib committed Apr 17, 2024
1 parent bf5b4c1 commit 13c262a
Show file tree
Hide file tree
Showing 2 changed files with 12,462 additions and 8,959 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,9 @@ const TagOption = ({
onClick={handleCheckboxClick}
className={styles.TagOptionCheckbox}
checked={checked}
aria-checked={checked}
onChange={onSelect ? () => onSelect(tag) : undefined}
role="presentation"
tabIndex={-1}
/>
<span>{tag.description}</span>
</label>
Expand Down Expand Up @@ -244,9 +245,7 @@ export const TagSelector = ({
aria-controls="available-tags"
aria-autocomplete="list"
aria-expanded="false"
data-active-option={`checkbox-${
dropdownOptions[getIndexOfActiveOption()]?.id
}`}
// Todo - potentially remove "checkbox-" prefix
aria-activedescendant={`checkbox-${
dropdownOptions[getIndexOfActiveOption()]?.id
}`}
Expand Down
Loading

0 comments on commit 13c262a

Please sign in to comment.