Skip to content

Commit 67cbbfc

Browse files
update tablist snapshots
1 parent ac7293a commit 67cbbfc

File tree

1 file changed

+28
-26
lines changed

1 file changed

+28
-26
lines changed

src/tabList/__snapshots__/tabList.test.js.snap

Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -9,55 +9,55 @@ exports[`TabList structure : default options 1`] = `
99
<li
1010
aria-controls="rc-dyn-tabs-p-1"
1111
aria-expanded={true}
12-
aria-labelledby="rc-dyn-tabs-l-1"
12+
aria-label="tab1"
1313
aria-selected={true}
1414
className="rc-dyn-tabs-tab rc-dyn-tabs-selected"
15+
id="rc-dyn-tabs-l-1"
1516
onClick={[Function]}
1617
role="tab"
1718
tab-id="1"
1819
tabIndex={0}
20+
title="tab1"
1921
>
2022
<button
2123
className="rc-dyn-tabs-title"
22-
id="rc-dyn-tabs-l-1"
2324
role="presentation"
2425
tab-id="1"
2526
tabIndex={-1}
26-
title=""
2727
>
2828
tab1
2929
</button>
3030
<span
3131
className="rc-dyn-tabs-close"
32-
role="presentation"
32+
role="button"
3333
>
3434
×
3535
</span>
3636
</li>
3737
<li
3838
aria-controls="rc-dyn-tabs-p-2"
3939
aria-expanded={false}
40-
aria-labelledby="rc-dyn-tabs-l-2"
40+
aria-label="tab2"
4141
aria-selected={false}
4242
className="rc-dyn-tabs-tab"
43+
id="rc-dyn-tabs-l-2"
4344
onClick={[Function]}
4445
role="tab"
4546
tab-id="2"
4647
tabIndex={-1}
48+
title="tab2"
4749
>
4850
<button
4951
className="rc-dyn-tabs-title"
50-
id="rc-dyn-tabs-l-2"
5152
role="presentation"
5253
tab-id="2"
5354
tabIndex={-1}
54-
title=""
5555
>
5656
tab2
5757
</button>
5858
<span
5959
className="rc-dyn-tabs-close"
60-
role="presentation"
60+
role="button"
6161
>
6262
×
6363
</span>
@@ -75,55 +75,55 @@ exports[`TabList structure : isVertical option 1`] = `
7575
<li
7676
aria-controls="rc-dyn-tabs-p-1"
7777
aria-expanded={true}
78-
aria-labelledby="rc-dyn-tabs-l-1"
78+
aria-label="tab1"
7979
aria-selected={true}
8080
className="rc-dyn-tabs-tab rc-dyn-tabs-selected"
81+
id="rc-dyn-tabs-l-1"
8182
onClick={[Function]}
8283
role="tab"
8384
tab-id="1"
8485
tabIndex={0}
86+
title="tab1"
8587
>
8688
<button
8789
className="rc-dyn-tabs-title"
88-
id="rc-dyn-tabs-l-1"
8990
role="presentation"
9091
tab-id="1"
9192
tabIndex={-1}
92-
title=""
9393
>
9494
tab1
9595
</button>
9696
<span
9797
className="rc-dyn-tabs-close"
98-
role="presentation"
98+
role="button"
9999
>
100100
×
101101
</span>
102102
</li>
103103
<li
104104
aria-controls="rc-dyn-tabs-p-2"
105105
aria-expanded={false}
106-
aria-labelledby="rc-dyn-tabs-l-2"
106+
aria-label="tab2"
107107
aria-selected={false}
108108
className="rc-dyn-tabs-tab"
109+
id="rc-dyn-tabs-l-2"
109110
onClick={[Function]}
110111
role="tab"
111112
tab-id="2"
112113
tabIndex={-1}
114+
title="tab2"
113115
>
114116
<button
115117
className="rc-dyn-tabs-title"
116-
id="rc-dyn-tabs-l-2"
117118
role="presentation"
118119
tab-id="2"
119120
tabIndex={-1}
120-
title=""
121121
>
122122
tab2
123123
</button>
124124
<span
125125
className="rc-dyn-tabs-close"
126-
role="presentation"
126+
role="button"
127127
>
128128
×
129129
</span>
@@ -142,12 +142,13 @@ exports[`TabList structure : none accessibility option 1`] = `
142142
onClick={[Function]}
143143
tab-id="1"
144144
tabIndex={0}
145+
title="tab1"
145146
>
146147
<button
147148
className="rc-dyn-tabs-title"
149+
role="presentation"
148150
tab-id="1"
149151
tabIndex={-1}
150-
title=""
151152
>
152153
tab1
153154
</button>
@@ -162,12 +163,13 @@ exports[`TabList structure : none accessibility option 1`] = `
162163
onClick={[Function]}
163164
tab-id="2"
164165
tabIndex={-1}
166+
title="tab2"
165167
>
166168
<button
167169
className="rc-dyn-tabs-title"
170+
role="presentation"
168171
tab-id="2"
169172
tabIndex={-1}
170-
title=""
171173
>
172174
tab2
173175
</button>
@@ -190,55 +192,55 @@ exports[`TabList structure : rtl option 1`] = `
190192
<li
191193
aria-controls="rc-dyn-tabs-p-1"
192194
aria-expanded={true}
193-
aria-labelledby="rc-dyn-tabs-l-1"
195+
aria-label="tab1"
194196
aria-selected={true}
195197
className="rc-dyn-tabs-tab rc-dyn-tabs-selected"
198+
id="rc-dyn-tabs-l-1"
196199
onClick={[Function]}
197200
role="tab"
198201
tab-id="1"
199202
tabIndex={0}
203+
title="tab1"
200204
>
201205
<button
202206
className="rc-dyn-tabs-title"
203-
id="rc-dyn-tabs-l-1"
204207
role="presentation"
205208
tab-id="1"
206209
tabIndex={-1}
207-
title=""
208210
>
209211
tab1
210212
</button>
211213
<span
212214
className="rc-dyn-tabs-close"
213-
role="presentation"
215+
role="button"
214216
>
215217
×
216218
</span>
217219
</li>
218220
<li
219221
aria-controls="rc-dyn-tabs-p-2"
220222
aria-expanded={false}
221-
aria-labelledby="rc-dyn-tabs-l-2"
223+
aria-label="tab2"
222224
aria-selected={false}
223225
className="rc-dyn-tabs-tab"
226+
id="rc-dyn-tabs-l-2"
224227
onClick={[Function]}
225228
role="tab"
226229
tab-id="2"
227230
tabIndex={-1}
231+
title="tab2"
228232
>
229233
<button
230234
className="rc-dyn-tabs-title"
231-
id="rc-dyn-tabs-l-2"
232235
role="presentation"
233236
tab-id="2"
234237
tabIndex={-1}
235-
title=""
236238
>
237239
tab2
238240
</button>
239241
<span
240242
className="rc-dyn-tabs-close"
241-
role="presentation"
243+
role="button"
242244
>
243245
×
244246
</span>

0 commit comments

Comments
 (0)