Skip to content

Commit

Permalink
fix: nested-interactive error for a11y axe
Browse files Browse the repository at this point in the history
  • Loading branch information
vagusX committed Aug 5, 2024
1 parent ac028d8 commit efd5eaf
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,6 @@ const InternalSegmentedOption: React.FC<{
className={classNames(className, {
[`${prefixCls}-item-disabled`]: disabled,
})}
role="option"
aria-selected={checked}
>
<input
className={`${prefixCls}-item-input`}
Expand All @@ -116,7 +114,12 @@ const InternalSegmentedOption: React.FC<{
checked={checked}
onChange={handleChange}
/>
<div className={`${prefixCls}-item-label`} title={title}>
<div
className={`${prefixCls}-item-label`}
title={title}
role="option"
aria-selected={checked}
>
{label}
</div>
</label>
Expand Down

0 comments on commit efd5eaf

Please sign in to comment.