We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac028d8 commit db1f700Copy full SHA for db1f700
src/index.tsx
@@ -106,8 +106,6 @@ const InternalSegmentedOption: React.FC<{
106
className={classNames(className, {
107
[`${prefixCls}-item-disabled`]: disabled,
108
})}
109
- role="option"
110
- aria-selected={checked}
111
>
112
<input
113
className={`${prefixCls}-item-input`}
@@ -116,7 +114,12 @@ const InternalSegmentedOption: React.FC<{
116
114
checked={checked}
117
115
onChange={handleChange}
118
/>
119
- <div className={`${prefixCls}-item-label`} title={title}>
+ <div
+ className={`${prefixCls}-item-label`}
+ title={title}
120
+ role="option"
121
+ aria-selected={checked}
122
+ >
123
{label}
124
</div>
125
</label>
0 commit comments