Skip to content

Commit 7750b20

Browse files
authored
fix: correct role for a11y (#195)
* fix: correct role for a11y * chore: not blame
1 parent 636b6bd commit 7750b20

2 files changed

Lines changed: 0 additions & 8 deletions

File tree

src/Rate.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,6 @@ function Rate(props: RateProps, ref: React.Ref<RateRef>) {
238238
onBlur={disabled ? null : onInternalBlur}
239239
onKeyDown={disabled ? null : onInternalKeyDown}
240240
ref={rateRef}
241-
role="radiogroup"
242241
{...pickAttrs(restProps, { aria: true, data: true, attr: true })}
243242
>
244243
{starNodes}

tests/__snapshots__/simple.spec.js.snap

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
exports[`rate allowHalf render works 1`] = `
44
<ul
55
class="rc-rate custom"
6-
role="radiogroup"
76
tabindex="0"
87
>
98
<li
@@ -78,7 +77,6 @@ exports[`rate allowHalf render works 1`] = `
7877
exports[`rate allowHalf render works in RTL 1`] = `
7978
<ul
8079
class="rc-rate custom rc-rate-rtl"
81-
role="radiogroup"
8280
tabindex="0"
8381
>
8482
<li
@@ -153,7 +151,6 @@ exports[`rate allowHalf render works in RTL 1`] = `
153151
exports[`rate allowHalf render works more than half 1`] = `
154152
<ul
155153
class="rc-rate custom"
156-
role="radiogroup"
157154
tabindex="0"
158155
>
159156
<li
@@ -228,7 +225,6 @@ exports[`rate allowHalf render works more than half 1`] = `
228225
exports[`rate full render works 1`] = `
229226
<ul
230227
class="rc-rate custom"
231-
role="radiogroup"
232228
tabindex="0"
233229
>
234230
<li
@@ -303,7 +299,6 @@ exports[`rate full render works 1`] = `
303299
exports[`rate full render works in RTL 1`] = `
304300
<ul
305301
class="rc-rate custom rc-rate-rtl"
306-
role="radiogroup"
307302
tabindex="0"
308303
>
309304
<li
@@ -378,7 +373,6 @@ exports[`rate full render works in RTL 1`] = `
378373
exports[`rate full render works with character function 1`] = `
379374
<ul
380375
class="rc-rate"
381-
role="radiogroup"
382376
tabindex="0"
383377
>
384378
<li
@@ -453,7 +447,6 @@ exports[`rate full render works with character function 1`] = `
453447
exports[`rate full render works with character node 1`] = `
454448
<ul
455449
class="rc-rate"
456-
role="radiogroup"
457450
tabindex="0"
458451
>
459452
<li

0 commit comments

Comments
 (0)