@zohodesk/components 1.0.0-temp-259.3 → 1.0.0-temp-259.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/ColorSelect/__tests__/__snapshots__/ColorMultiSelect.spec.js.snap +3 -3
- package/es/ColorSelect/__tests__/__snapshots__/ColorSingleSelect.spec.js.snap +6 -6
- package/es/DateTime/__tests__/__snapshots__/DateTime.spec.js.snap +6 -6
- package/es/DateTime/__tests__/__snapshots__/DateTimePopupHeader.spec.js.snap +3 -3
- package/es/DateTime/__tests__/__snapshots__/DateWidget.spec.js.snap +1 -1
- package/es/DateTime/__tests__/__snapshots__/Time.spec.js.snap +3 -3
- package/es/MultiSelect/__tests__/__snapshots__/MultiSelect.spec.js.snap +4 -4
- package/es/MultiSelect/__tests__/__snapshots__/MultiSelectHeader.spec.js.snap +1 -1
- package/es/Select/__tests__/__snapshots__/GroupSelect.spec.js.snap +1 -1
- package/es/Select/__tests__/__snapshots__/Select.spec.js.snap +75 -75
- package/es/Select/__tests__/__snapshots__/SelectWithIcon.spec.js.snap +1 -1
- package/es/Tab/__tests__/__snapshots__/TabLayout.spec.js.snap +4 -4
- package/es/Tag/__tests__/__snapshots__/Tag.spec.js.snap +48 -48
- package/es/TextBoxIcon/__tests__/__snapshots__/TextBoxIcon.spec.js.snap +3 -3
- package/es/shared/ArrowIcon/__tests__/__snapshots__/ArrowIcon.spec.js.snap +10 -10
- package/es/v1/Button/Button.js +56 -25
- package/es/v1/Button/README.md +4 -2
- package/es/v1/Button/__tests__/Button.spec.js +3 -3
- package/es/v1/Button/__tests__/__snapshots__/Button.spec.js.snap +144 -21
- package/es/v1/Button/constants/index.js +3 -3
- package/es/v1/Button/constants/presets.js +11 -0
- package/es/v1/Button/css/cssJSLogic.js +5 -6
- package/es/v1/Button/props/defaultProps.js +3 -0
- package/es/v1/helpers/colorHelpers/background/backgroundColor.module.css +31 -527
- package/es/v1/helpers/colorHelpers/border/borderColor.module.css +24 -408
- package/es/v1/helpers/colorHelpers/colorHelper.js +8 -5
- package/es/v1/helpers/colorHelpers/paletteUtilities.README.md +141 -336
- package/es/v1/helpers/colorHelpers/text/textColor.module.css +72 -288
- package/lib/ColorSelect/__tests__/__snapshots__/ColorMultiSelect.spec.js.snap +3 -3
- package/lib/ColorSelect/__tests__/__snapshots__/ColorSingleSelect.spec.js.snap +6 -6
- package/lib/DateTime/__tests__/__snapshots__/DateTime.spec.js.snap +6 -6
- package/lib/DateTime/__tests__/__snapshots__/DateTimePopupHeader.spec.js.snap +3 -3
- package/lib/DateTime/__tests__/__snapshots__/DateWidget.spec.js.snap +1 -1
- package/lib/DateTime/__tests__/__snapshots__/Time.spec.js.snap +3 -3
- package/lib/MultiSelect/__tests__/__snapshots__/MultiSelect.spec.js.snap +4 -4
- package/lib/MultiSelect/__tests__/__snapshots__/MultiSelectHeader.spec.js.snap +1 -1
- package/lib/Select/__tests__/__snapshots__/GroupSelect.spec.js.snap +1 -1
- package/lib/Select/__tests__/__snapshots__/Select.spec.js.snap +75 -75
- package/lib/Select/__tests__/__snapshots__/SelectWithIcon.spec.js.snap +1 -1
- package/lib/Tab/__tests__/__snapshots__/TabLayout.spec.js.snap +4 -4
- package/lib/Tag/__tests__/__snapshots__/Tag.spec.js.snap +48 -48
- package/lib/TextBoxIcon/__tests__/__snapshots__/TextBoxIcon.spec.js.snap +3 -3
- package/lib/shared/ArrowIcon/__tests__/__snapshots__/ArrowIcon.spec.js.snap +10 -10
- package/lib/v1/Button/Button.js +49 -25
- package/lib/v1/Button/README.md +4 -2
- package/lib/v1/Button/__tests__/Button.spec.js +2 -2
- package/lib/v1/Button/__tests__/__snapshots__/Button.spec.js.snap +144 -21
- package/lib/v1/Button/constants/index.js +3 -3
- package/lib/v1/Button/constants/presets.js +13 -1
- package/lib/v1/Button/css/cssJSLogic.js +10 -13
- package/lib/v1/Button/props/defaultProps.js +3 -0
- package/lib/v1/helpers/colorHelpers/background/backgroundColor.module.css +31 -527
- package/lib/v1/helpers/colorHelpers/border/borderColor.module.css +24 -408
- package/lib/v1/helpers/colorHelpers/colorHelper.js +8 -5
- package/lib/v1/helpers/colorHelpers/paletteUtilities.README.md +141 -336
- package/lib/v1/helpers/colorHelpers/text/textColor.module.css +72 -288
- package/package.json +7 -7
|
@@ -4,6 +4,7 @@ exports[`Button Presets Should render preset BLACK_TEXT_BRAND_ONHOVER 1`] = `
|
|
|
4
4
|
<DocumentFragment>
|
|
5
5
|
<button
|
|
6
6
|
aria-busy="false"
|
|
7
|
+
aria-disabled="false"
|
|
7
8
|
aria-pressed="false"
|
|
8
9
|
class="buttonReset button text-black hover:text-brand-80 focus:text-brand-80 active:text-brand-80 border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
9
10
|
type="button"
|
|
@@ -27,6 +28,7 @@ exports[`Button Presets Should render preset BLACK_TEXT_BRAND_ONHOVER in selecte
|
|
|
27
28
|
<DocumentFragment>
|
|
28
29
|
<button
|
|
29
30
|
aria-busy="false"
|
|
31
|
+
aria-disabled="false"
|
|
30
32
|
aria-pressed="true"
|
|
31
33
|
class="buttonReset button selected:text-brand-80 border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
32
34
|
type="button"
|
|
@@ -50,6 +52,7 @@ exports[`Button Presets Should render preset BRAND_BG_ONSELECT 1`] = `
|
|
|
50
52
|
<DocumentFragment>
|
|
51
53
|
<button
|
|
52
54
|
aria-busy="false"
|
|
55
|
+
aria-disabled="false"
|
|
53
56
|
aria-pressed="false"
|
|
54
57
|
class="buttonReset button text-brand-80 hover:text-brand-100 focus:text-brand-100 active:text-brand-100 border-brand-80 hover:border-brand-100 focus:border-brand-100 active:border-brand-100 sizeMedium shapeRoundedRectangle variantText"
|
|
55
58
|
type="button"
|
|
@@ -73,6 +76,7 @@ exports[`Button Presets Should render preset BRAND_BG_ONSELECT in selected state
|
|
|
73
76
|
<DocumentFragment>
|
|
74
77
|
<button
|
|
75
78
|
aria-busy="false"
|
|
79
|
+
aria-disabled="false"
|
|
76
80
|
aria-pressed="true"
|
|
77
81
|
class="buttonReset button selected:bg-brand-80 selected:text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle variantText"
|
|
78
82
|
type="button"
|
|
@@ -96,6 +100,7 @@ exports[`Button Presets Should render preset BRAND_GHOST 1`] = `
|
|
|
96
100
|
<DocumentFragment>
|
|
97
101
|
<button
|
|
98
102
|
aria-busy="false"
|
|
103
|
+
aria-disabled="false"
|
|
99
104
|
aria-pressed="false"
|
|
100
105
|
class="buttonReset button text-brand-80 hover:text-brand-100 focus:text-brand-100 active:text-brand-100 border-brand-80 hover:border-brand-100 focus:border-brand-100 active:border-brand-100 sizeMedium shapeRoundedRectangle variantText"
|
|
101
106
|
type="button"
|
|
@@ -119,6 +124,7 @@ exports[`Button Presets Should render preset BRAND_GHOST in selected state 1`] =
|
|
|
119
124
|
<DocumentFragment>
|
|
120
125
|
<button
|
|
121
126
|
aria-busy="false"
|
|
127
|
+
aria-disabled="false"
|
|
122
128
|
aria-pressed="true"
|
|
123
129
|
class="buttonReset button selected:text-brand-80 selected:border-brand-80 sizeMedium shapeRoundedRectangle variantText"
|
|
124
130
|
type="button"
|
|
@@ -142,6 +148,7 @@ exports[`Button Presets Should render preset BRAND_TEXT_ONLY 1`] = `
|
|
|
142
148
|
<DocumentFragment>
|
|
143
149
|
<button
|
|
144
150
|
aria-busy="false"
|
|
151
|
+
aria-disabled="false"
|
|
145
152
|
aria-pressed="false"
|
|
146
153
|
class="buttonReset button text-brand-80 hover:text-brand-100 focus:text-brand-100 active:text-brand-100 border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
147
154
|
type="button"
|
|
@@ -165,6 +172,7 @@ exports[`Button Presets Should render preset BRAND_TEXT_ONLY in selected state 1
|
|
|
165
172
|
<DocumentFragment>
|
|
166
173
|
<button
|
|
167
174
|
aria-busy="false"
|
|
175
|
+
aria-disabled="false"
|
|
168
176
|
aria-pressed="true"
|
|
169
177
|
class="buttonReset button selected:text-brand-80 border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
170
178
|
type="button"
|
|
@@ -188,6 +196,7 @@ exports[`Button Presets Should render preset BRAND_TEXT_TINTED_DANGER_HOVER 1`]
|
|
|
188
196
|
<DocumentFragment>
|
|
189
197
|
<button
|
|
190
198
|
aria-busy="false"
|
|
199
|
+
aria-disabled="false"
|
|
191
200
|
aria-pressed="false"
|
|
192
201
|
class="buttonReset button hover:bg-red-10 focus:bg-red-10 active:bg-red-10 text-brand-80 hover:text-red-70 focus:text-red-70 active:text-red-70 border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
193
202
|
type="button"
|
|
@@ -211,6 +220,7 @@ exports[`Button Presets Should render preset BRAND_TEXT_TINTED_DANGER_HOVER in s
|
|
|
211
220
|
<DocumentFragment>
|
|
212
221
|
<button
|
|
213
222
|
aria-busy="false"
|
|
223
|
+
aria-disabled="false"
|
|
214
224
|
aria-pressed="true"
|
|
215
225
|
class="buttonReset button selected:bg-red-10 selected:text-red-70 selected:border-red-30 sizeMedium shapeRoundedRectangle variantText"
|
|
216
226
|
type="button"
|
|
@@ -234,6 +244,7 @@ exports[`Button Presets Should render preset BRAND_TEXT_TINTED_HOVER 1`] = `
|
|
|
234
244
|
<DocumentFragment>
|
|
235
245
|
<button
|
|
236
246
|
aria-busy="false"
|
|
247
|
+
aria-disabled="false"
|
|
237
248
|
aria-pressed="false"
|
|
238
249
|
class="buttonReset button hover:bg-brand-10 focus:bg-brand-10 active:bg-brand-10 text-brand-80 hover:text-brand-100 focus:text-brand-100 active:text-brand-100 border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
239
250
|
type="button"
|
|
@@ -257,6 +268,7 @@ exports[`Button Presets Should render preset BRAND_TEXT_TINTED_HOVER in selected
|
|
|
257
268
|
<DocumentFragment>
|
|
258
269
|
<button
|
|
259
270
|
aria-busy="false"
|
|
271
|
+
aria-disabled="false"
|
|
260
272
|
aria-pressed="true"
|
|
261
273
|
class="buttonReset button selected:bg-brand-10 selected:text-brand-80 selected:border-brand-10 sizeMedium shapeRoundedRectangle variantText"
|
|
262
274
|
type="button"
|
|
@@ -280,6 +292,7 @@ exports[`Button Presets Should render preset BRAND_TINTED_OUTLINE 1`] = `
|
|
|
280
292
|
<DocumentFragment>
|
|
281
293
|
<button
|
|
282
294
|
aria-busy="false"
|
|
295
|
+
aria-disabled="false"
|
|
283
296
|
aria-pressed="false"
|
|
284
297
|
class="buttonReset button bg-brand-10 hover:bg-brand-20 focus:bg-brand-20 active:bg-brand-20 text-brand-80 hover:text-brand-100 focus:text-brand-100 active:text-brand-100 border-brand-10 hover:border-brand-100 focus:border-brand-100 active:border-brand-100 sizeMedium shapeRoundedRectangle variantText"
|
|
285
298
|
type="button"
|
|
@@ -303,6 +316,7 @@ exports[`Button Presets Should render preset BRAND_TINTED_OUTLINE in selected st
|
|
|
303
316
|
<DocumentFragment>
|
|
304
317
|
<button
|
|
305
318
|
aria-busy="false"
|
|
319
|
+
aria-disabled="false"
|
|
306
320
|
aria-pressed="true"
|
|
307
321
|
class="buttonReset button selected:bg-brand-10 selected:text-brand-80 selected:border-brand-10 sizeMedium shapeRoundedRectangle variantText"
|
|
308
322
|
type="button"
|
|
@@ -326,6 +340,7 @@ exports[`Button Presets Should render preset SECONDARY_GHOST_BRAND_TINTED_ONSELE
|
|
|
326
340
|
<DocumentFragment>
|
|
327
341
|
<button
|
|
328
342
|
aria-busy="false"
|
|
343
|
+
aria-disabled="false"
|
|
329
344
|
aria-pressed="false"
|
|
330
345
|
class="buttonReset button text-black hover:text-black focus:text-black active:text-black border-grey-65 hover:border-grey-55 focus:border-grey-55 active:border-grey-55 sizeMedium shapeRoundedRectangle variantText"
|
|
331
346
|
type="button"
|
|
@@ -349,6 +364,7 @@ exports[`Button Presets Should render preset SECONDARY_GHOST_BRAND_TINTED_ONSELE
|
|
|
349
364
|
<DocumentFragment>
|
|
350
365
|
<button
|
|
351
366
|
aria-busy="false"
|
|
367
|
+
aria-disabled="false"
|
|
352
368
|
aria-pressed="true"
|
|
353
369
|
class="buttonReset button selected:bg-brand-10 selected:text-black selected:border-brand-10 sizeMedium shapeRoundedRectangle variantText"
|
|
354
370
|
type="button"
|
|
@@ -368,10 +384,59 @@ exports[`Button Presets Should render preset SECONDARY_GHOST_BRAND_TINTED_ONSELE
|
|
|
368
384
|
</DocumentFragment>
|
|
369
385
|
`;
|
|
370
386
|
|
|
387
|
+
exports[`Button Presets Should render preset SECONDARY_GHOST_CANCEL 1`] = `
|
|
388
|
+
<DocumentFragment>
|
|
389
|
+
<button
|
|
390
|
+
aria-busy="false"
|
|
391
|
+
aria-disabled="false"
|
|
392
|
+
aria-pressed="false"
|
|
393
|
+
class="buttonReset button text-grey-65 hover:text-grey-100 focus:text-grey-100 active:text-grey-100 border-grey-65 hover:border-grey-55 focus:border-grey-55 active:border-grey-55 sizeMedium shapeRoundedRectangle variantText"
|
|
394
|
+
type="button"
|
|
395
|
+
>
|
|
396
|
+
<div
|
|
397
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
398
|
+
data-id="flex"
|
|
399
|
+
data-test-id="flex"
|
|
400
|
+
>
|
|
401
|
+
<div
|
|
402
|
+
class="dotted size13"
|
|
403
|
+
>
|
|
404
|
+
Button
|
|
405
|
+
</div>
|
|
406
|
+
</div>
|
|
407
|
+
</button>
|
|
408
|
+
</DocumentFragment>
|
|
409
|
+
`;
|
|
410
|
+
|
|
411
|
+
exports[`Button Presets Should render preset SECONDARY_GHOST_CANCEL in selected state 1`] = `
|
|
412
|
+
<DocumentFragment>
|
|
413
|
+
<button
|
|
414
|
+
aria-busy="false"
|
|
415
|
+
aria-disabled="false"
|
|
416
|
+
aria-pressed="true"
|
|
417
|
+
class="buttonReset button selected:bg-grey-65 selected:text-white border-grey-65 sizeMedium shapeRoundedRectangle variantText"
|
|
418
|
+
type="button"
|
|
419
|
+
>
|
|
420
|
+
<div
|
|
421
|
+
class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
|
|
422
|
+
data-id="flex"
|
|
423
|
+
data-test-id="flex"
|
|
424
|
+
>
|
|
425
|
+
<div
|
|
426
|
+
class="dotted size13"
|
|
427
|
+
>
|
|
428
|
+
Button
|
|
429
|
+
</div>
|
|
430
|
+
</div>
|
|
431
|
+
</button>
|
|
432
|
+
</DocumentFragment>
|
|
433
|
+
`;
|
|
434
|
+
|
|
371
435
|
exports[`Button Presets Should render preset SUCCESS_GHOST 1`] = `
|
|
372
436
|
<DocumentFragment>
|
|
373
437
|
<button
|
|
374
438
|
aria-busy="false"
|
|
439
|
+
aria-disabled="false"
|
|
375
440
|
aria-pressed="false"
|
|
376
441
|
class="buttonReset button text-green-80 hover:text-green-100 focus:text-green-100 active:text-green-100 border-green-80 hover:border-green-100 focus:border-green-100 active:border-green-100 sizeMedium shapeRoundedRectangle variantText"
|
|
377
442
|
type="button"
|
|
@@ -395,6 +460,7 @@ exports[`Button Presets Should render preset SUCCESS_GHOST in selected state 1`]
|
|
|
395
460
|
<DocumentFragment>
|
|
396
461
|
<button
|
|
397
462
|
aria-busy="false"
|
|
463
|
+
aria-disabled="false"
|
|
398
464
|
aria-pressed="true"
|
|
399
465
|
class="buttonReset button selected:text-green-80 selected:border-green-80 sizeMedium shapeRoundedRectangle variantText"
|
|
400
466
|
type="button"
|
|
@@ -418,6 +484,7 @@ exports[`Button Presets Should render preset SUCCESS_TEXT_ONLY 1`] = `
|
|
|
418
484
|
<DocumentFragment>
|
|
419
485
|
<button
|
|
420
486
|
aria-busy="false"
|
|
487
|
+
aria-disabled="false"
|
|
421
488
|
aria-pressed="false"
|
|
422
489
|
class="buttonReset button text-green-80 hover:text-green-100 focus:text-green-100 active:text-green-100 border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
423
490
|
type="button"
|
|
@@ -441,6 +508,7 @@ exports[`Button Presets Should render preset SUCCESS_TEXT_ONLY in selected state
|
|
|
441
508
|
<DocumentFragment>
|
|
442
509
|
<button
|
|
443
510
|
aria-busy="false"
|
|
511
|
+
aria-disabled="false"
|
|
444
512
|
aria-pressed="true"
|
|
445
513
|
class="buttonReset button selected:text-green-80 border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
446
514
|
type="button"
|
|
@@ -464,6 +532,7 @@ exports[`Button Presets Should render preset SUCCESS_TINTED_OUTLINE 1`] = `
|
|
|
464
532
|
<DocumentFragment>
|
|
465
533
|
<button
|
|
466
534
|
aria-busy="false"
|
|
535
|
+
aria-disabled="false"
|
|
467
536
|
aria-pressed="false"
|
|
468
537
|
class="buttonReset button bg-green-10 hover:bg-green-30 focus:bg-green-30 active:bg-green-30 text-green-80 hover:text-green-100 focus:text-green-100 active:text-green-100 border-green-30 hover:border-green-100 focus:border-green-100 active:border-green-100 sizeMedium shapeRoundedRectangle variantText"
|
|
469
538
|
type="button"
|
|
@@ -487,6 +556,7 @@ exports[`Button Presets Should render preset SUCCESS_TINTED_OUTLINE in selected
|
|
|
487
556
|
<DocumentFragment>
|
|
488
557
|
<button
|
|
489
558
|
aria-busy="false"
|
|
559
|
+
aria-disabled="false"
|
|
490
560
|
aria-pressed="true"
|
|
491
561
|
class="buttonReset button selected:bg-green-10 selected:text-green-80 selected:border-green-30 sizeMedium shapeRoundedRectangle variantText"
|
|
492
562
|
type="button"
|
|
@@ -511,6 +581,7 @@ exports[`Button Should apply a11yAttributes to the button 1`] = `
|
|
|
511
581
|
<button
|
|
512
582
|
aria-busy="false"
|
|
513
583
|
aria-describedby="button-description"
|
|
584
|
+
aria-disabled="false"
|
|
514
585
|
aria-label="Smart Button"
|
|
515
586
|
aria-pressed="false"
|
|
516
587
|
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
@@ -535,6 +606,7 @@ exports[`Button Should apply customAttributes to button elements 1`] = `
|
|
|
535
606
|
<DocumentFragment>
|
|
536
607
|
<button
|
|
537
608
|
aria-busy="false"
|
|
609
|
+
aria-disabled="false"
|
|
538
610
|
aria-pressed="false"
|
|
539
611
|
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
540
612
|
data-wrapper="wrapperAttr"
|
|
@@ -560,6 +632,7 @@ exports[`Button Should apply customClass to wrapper, text and icon 1`] = `
|
|
|
560
632
|
<DocumentFragment>
|
|
561
633
|
<button
|
|
562
634
|
aria-busy="false"
|
|
635
|
+
aria-disabled="false"
|
|
563
636
|
aria-pressed="false"
|
|
564
637
|
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantIconWithText customButtonClass"
|
|
565
638
|
type="button"
|
|
@@ -571,9 +644,10 @@ exports[`Button Should apply customClass to wrapper, text and icon 1`] = `
|
|
|
571
644
|
>
|
|
572
645
|
<i
|
|
573
646
|
aria-hidden="true"
|
|
574
|
-
class="zd_font_icons
|
|
647
|
+
class="zd_font_icons ff icon-plus basic d-inline-block d-align-middle customIconClass"
|
|
575
648
|
data-id="fontIcon"
|
|
576
649
|
data-selector-id="fontIcon"
|
|
650
|
+
data-test-id="fontIcon"
|
|
577
651
|
style="--zd-iconfont-size: var(--zd_font_size16);"
|
|
578
652
|
/>
|
|
579
653
|
<div
|
|
@@ -590,6 +664,7 @@ exports[`Button Should apply customProps to wrapper, text and icon 1`] = `
|
|
|
590
664
|
<DocumentFragment>
|
|
591
665
|
<button
|
|
592
666
|
aria-busy="false"
|
|
667
|
+
aria-disabled="false"
|
|
593
668
|
aria-pressed="false"
|
|
594
669
|
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantIconWithText"
|
|
595
670
|
type="button"
|
|
@@ -613,11 +688,9 @@ exports[`Button Should be disabled when isDisabled prop is true 1`] = `
|
|
|
613
688
|
<DocumentFragment>
|
|
614
689
|
<button
|
|
615
690
|
aria-busy="false"
|
|
691
|
+
aria-disabled="true"
|
|
616
692
|
aria-pressed="false"
|
|
617
693
|
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText disabledOpac disabledPointer"
|
|
618
|
-
data-id="undefined_disabled"
|
|
619
|
-
data-test-id="undefined_disabled"
|
|
620
|
-
disabled=""
|
|
621
694
|
type="button"
|
|
622
695
|
>
|
|
623
696
|
<div
|
|
@@ -633,6 +706,7 @@ exports[`Button Should render Sizes of buttons - full 1`] = `
|
|
|
633
706
|
<DocumentFragment>
|
|
634
707
|
<button
|
|
635
708
|
aria-busy="false"
|
|
709
|
+
aria-disabled="false"
|
|
636
710
|
aria-pressed="false"
|
|
637
711
|
class="buttonReset button border-transparent sizeFull shapeRoundedRectangle variantText"
|
|
638
712
|
type="button"
|
|
@@ -650,6 +724,7 @@ exports[`Button Should render Sizes of buttons - large 1`] = `
|
|
|
650
724
|
<DocumentFragment>
|
|
651
725
|
<button
|
|
652
726
|
aria-busy="false"
|
|
727
|
+
aria-disabled="false"
|
|
653
728
|
aria-pressed="false"
|
|
654
729
|
class="buttonReset button border-transparent sizeLarge shapeRoundedRectangle variantText"
|
|
655
730
|
type="button"
|
|
@@ -667,6 +742,7 @@ exports[`Button Should render Sizes of buttons - medium 1`] = `
|
|
|
667
742
|
<DocumentFragment>
|
|
668
743
|
<button
|
|
669
744
|
aria-busy="false"
|
|
745
|
+
aria-disabled="false"
|
|
670
746
|
aria-pressed="false"
|
|
671
747
|
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
672
748
|
type="button"
|
|
@@ -684,6 +760,7 @@ exports[`Button Should render Sizes of buttons - small 1`] = `
|
|
|
684
760
|
<DocumentFragment>
|
|
685
761
|
<button
|
|
686
762
|
aria-busy="false"
|
|
763
|
+
aria-disabled="false"
|
|
687
764
|
aria-pressed="false"
|
|
688
765
|
class="buttonReset button border-transparent sizeSmall shapeRoundedRectangle variantText"
|
|
689
766
|
type="button"
|
|
@@ -701,6 +778,7 @@ exports[`Button Should render Status of buttons - default 1`] = `
|
|
|
701
778
|
<DocumentFragment>
|
|
702
779
|
<button
|
|
703
780
|
aria-busy="false"
|
|
781
|
+
aria-disabled="false"
|
|
704
782
|
aria-pressed="false"
|
|
705
783
|
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
706
784
|
type="button"
|
|
@@ -718,9 +796,9 @@ exports[`Button Should render Status of buttons - loading 1`] = `
|
|
|
718
796
|
<DocumentFragment>
|
|
719
797
|
<button
|
|
720
798
|
aria-busy="true"
|
|
799
|
+
aria-disabled="true"
|
|
721
800
|
aria-pressed="false"
|
|
722
801
|
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText loading"
|
|
723
|
-
disabled=""
|
|
724
802
|
type="button"
|
|
725
803
|
>
|
|
726
804
|
<div
|
|
@@ -761,6 +839,7 @@ exports[`Button Should render Status of buttons - success 1`] = `
|
|
|
761
839
|
<DocumentFragment>
|
|
762
840
|
<button
|
|
763
841
|
aria-busy="false"
|
|
842
|
+
aria-disabled="false"
|
|
764
843
|
aria-pressed="false"
|
|
765
844
|
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
766
845
|
type="button"
|
|
@@ -794,6 +873,7 @@ exports[`Button Should render appearance of buttons - { bg: false, border: true
|
|
|
794
873
|
<DocumentFragment>
|
|
795
874
|
<button
|
|
796
875
|
aria-busy="false"
|
|
876
|
+
aria-disabled="false"
|
|
797
877
|
aria-pressed="false"
|
|
798
878
|
class="buttonReset button hover:bg-brand-80 focus:bg-brand-80 active:bg-brand-80 text-brand-80 hover:text-brand-filled focus:text-brand-filled active:text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle variantText"
|
|
799
879
|
type="button"
|
|
@@ -811,6 +891,7 @@ exports[`Button Should render appearance of buttons - { bg: true, text: 'black'
|
|
|
811
891
|
<DocumentFragment>
|
|
812
892
|
<button
|
|
813
893
|
aria-busy="false"
|
|
894
|
+
aria-disabled="false"
|
|
814
895
|
aria-pressed="false"
|
|
815
896
|
class="buttonReset button bg-brand-80 hover:bg-brand-100 focus:bg-brand-100 active:bg-brand-100 text-black hover:text-brand-filled focus:text-brand-filled active:text-brand-filled border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
816
897
|
type="button"
|
|
@@ -828,6 +909,7 @@ exports[`Button Should render appearance of buttons - { border: true } 1`] = `
|
|
|
828
909
|
<DocumentFragment>
|
|
829
910
|
<button
|
|
830
911
|
aria-busy="false"
|
|
912
|
+
aria-disabled="false"
|
|
831
913
|
aria-pressed="false"
|
|
832
914
|
class="buttonReset button bg-brand-80 hover:bg-brand-100 focus:bg-brand-100 active:bg-brand-100 text-brand-filled hover:text-brand-filled focus:text-brand-filled active:text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle variantText"
|
|
833
915
|
type="button"
|
|
@@ -845,6 +927,7 @@ exports[`Button Should render appearance of buttons - { text: true } 1`] = `
|
|
|
845
927
|
<DocumentFragment>
|
|
846
928
|
<button
|
|
847
929
|
aria-busy="false"
|
|
930
|
+
aria-disabled="false"
|
|
848
931
|
aria-pressed="false"
|
|
849
932
|
class="buttonReset button bg-brand-80 hover:bg-brand-100 focus:bg-brand-100 active:bg-brand-100 text-brand-filled hover:text-brand-filled focus:text-brand-filled active:text-brand-filled border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
850
933
|
type="button"
|
|
@@ -862,6 +945,7 @@ exports[`Button Should render appearance of buttons - {} 1`] = `
|
|
|
862
945
|
<DocumentFragment>
|
|
863
946
|
<button
|
|
864
947
|
aria-busy="false"
|
|
948
|
+
aria-disabled="false"
|
|
865
949
|
aria-pressed="false"
|
|
866
950
|
class="buttonReset button bg-brand-80 hover:bg-brand-100 focus:bg-brand-100 active:bg-brand-100 text-brand-filled hover:text-brand-filled focus:text-brand-filled active:text-brand-filled border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
867
951
|
type="button"
|
|
@@ -879,11 +963,9 @@ exports[`Button Should render disabledAppearance of buttons - dull 1`] = `
|
|
|
879
963
|
<DocumentFragment>
|
|
880
964
|
<button
|
|
881
965
|
aria-busy="false"
|
|
966
|
+
aria-disabled="true"
|
|
882
967
|
aria-pressed="false"
|
|
883
968
|
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText disabledOpac disabledPointer"
|
|
884
|
-
data-id="undefined_disabled"
|
|
885
|
-
data-test-id="undefined_disabled"
|
|
886
|
-
disabled=""
|
|
887
969
|
type="button"
|
|
888
970
|
>
|
|
889
971
|
<div
|
|
@@ -899,11 +981,9 @@ exports[`Button Should render disabledAppearance of buttons - none 1`] = `
|
|
|
899
981
|
<DocumentFragment>
|
|
900
982
|
<button
|
|
901
983
|
aria-busy="false"
|
|
984
|
+
aria-disabled="true"
|
|
902
985
|
aria-pressed="false"
|
|
903
986
|
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText disabledPointer"
|
|
904
|
-
data-id="undefined_disabled"
|
|
905
|
-
data-test-id="undefined_disabled"
|
|
906
|
-
disabled=""
|
|
907
987
|
type="button"
|
|
908
988
|
>
|
|
909
989
|
<div
|
|
@@ -919,11 +999,9 @@ exports[`Button Should render disabledAppearance of buttons - strike 1`] = `
|
|
|
919
999
|
<DocumentFragment>
|
|
920
1000
|
<button
|
|
921
1001
|
aria-busy="false"
|
|
1002
|
+
aria-disabled="true"
|
|
922
1003
|
aria-pressed="false"
|
|
923
1004
|
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText disabledPointer strike"
|
|
924
|
-
data-id="undefined_disabled"
|
|
925
|
-
data-test-id="undefined_disabled"
|
|
926
|
-
disabled=""
|
|
927
1005
|
type="button"
|
|
928
1006
|
>
|
|
929
1007
|
<div
|
|
@@ -939,6 +1017,7 @@ exports[`Button Should render hoverAppearance of buttons - { bg: false, border:
|
|
|
939
1017
|
<DocumentFragment>
|
|
940
1018
|
<button
|
|
941
1019
|
aria-busy="false"
|
|
1020
|
+
aria-disabled="false"
|
|
942
1021
|
aria-pressed="false"
|
|
943
1022
|
class="buttonReset button bg-brand-80 text-brand-filled hover:text-brand-filled focus:text-brand-filled active:text-brand-filled border-transparent hover:border-brand-80 focus:border-brand-80 active:border-brand-80 sizeMedium shapeRoundedRectangle variantText"
|
|
944
1023
|
type="button"
|
|
@@ -956,6 +1035,7 @@ exports[`Button Should render hoverAppearance of buttons - { bg: true, text: 'bl
|
|
|
956
1035
|
<DocumentFragment>
|
|
957
1036
|
<button
|
|
958
1037
|
aria-busy="false"
|
|
1038
|
+
aria-disabled="false"
|
|
959
1039
|
aria-pressed="false"
|
|
960
1040
|
class="buttonReset button bg-brand-80 hover:bg-brand-100 focus:bg-brand-100 active:bg-brand-100 text-brand-filled hover:text-black focus:text-black active:text-black border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
961
1041
|
type="button"
|
|
@@ -973,6 +1053,7 @@ exports[`Button Should render hoverAppearance of buttons - { border: true } 1`]
|
|
|
973
1053
|
<DocumentFragment>
|
|
974
1054
|
<button
|
|
975
1055
|
aria-busy="false"
|
|
1056
|
+
aria-disabled="false"
|
|
976
1057
|
aria-pressed="false"
|
|
977
1058
|
class="buttonReset button bg-brand-80 hover:bg-brand-100 focus:bg-brand-100 active:bg-brand-100 text-brand-filled hover:text-brand-filled focus:text-brand-filled active:text-brand-filled border-transparent hover:border-brand-80 focus:border-brand-80 active:border-brand-80 sizeMedium shapeRoundedRectangle variantText"
|
|
978
1059
|
type="button"
|
|
@@ -990,6 +1071,7 @@ exports[`Button Should render hoverAppearance of buttons - { text: true } 1`] =
|
|
|
990
1071
|
<DocumentFragment>
|
|
991
1072
|
<button
|
|
992
1073
|
aria-busy="false"
|
|
1074
|
+
aria-disabled="false"
|
|
993
1075
|
aria-pressed="false"
|
|
994
1076
|
class="buttonReset button bg-brand-80 hover:bg-brand-100 focus:bg-brand-100 active:bg-brand-100 text-brand-filled hover:text-brand-filled focus:text-brand-filled active:text-brand-filled border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
995
1077
|
type="button"
|
|
@@ -1007,6 +1089,7 @@ exports[`Button Should render hoverAppearance of buttons - {} 1`] = `
|
|
|
1007
1089
|
<DocumentFragment>
|
|
1008
1090
|
<button
|
|
1009
1091
|
aria-busy="false"
|
|
1092
|
+
aria-disabled="false"
|
|
1010
1093
|
aria-pressed="false"
|
|
1011
1094
|
class="buttonReset button bg-brand-80 hover:bg-brand-100 focus:bg-brand-100 active:bg-brand-100 text-brand-filled hover:text-brand-filled focus:text-brand-filled active:text-brand-filled border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
1012
1095
|
type="button"
|
|
@@ -1024,9 +1107,9 @@ exports[`Button Should render loader overlay when status is loading and loaderPl
|
|
|
1024
1107
|
<DocumentFragment>
|
|
1025
1108
|
<button
|
|
1026
1109
|
aria-busy="true"
|
|
1110
|
+
aria-disabled="true"
|
|
1027
1111
|
aria-pressed="false"
|
|
1028
1112
|
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText loading"
|
|
1029
|
-
disabled=""
|
|
1030
1113
|
type="button"
|
|
1031
1114
|
>
|
|
1032
1115
|
<div
|
|
@@ -1067,9 +1150,9 @@ exports[`Button Should render loaderPlacement of buttons - end 1`] = `
|
|
|
1067
1150
|
<DocumentFragment>
|
|
1068
1151
|
<button
|
|
1069
1152
|
aria-busy="true"
|
|
1153
|
+
aria-disabled="true"
|
|
1070
1154
|
aria-pressed="false"
|
|
1071
1155
|
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText loading"
|
|
1072
|
-
disabled=""
|
|
1073
1156
|
type="button"
|
|
1074
1157
|
>
|
|
1075
1158
|
<div
|
|
@@ -1111,9 +1194,9 @@ exports[`Button Should render loaderPlacement of buttons - overlay 1`] = `
|
|
|
1111
1194
|
<DocumentFragment>
|
|
1112
1195
|
<button
|
|
1113
1196
|
aria-busy="true"
|
|
1197
|
+
aria-disabled="true"
|
|
1114
1198
|
aria-pressed="false"
|
|
1115
1199
|
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText loading"
|
|
1116
|
-
disabled=""
|
|
1117
1200
|
type="button"
|
|
1118
1201
|
>
|
|
1119
1202
|
<div
|
|
@@ -1154,9 +1237,9 @@ exports[`Button Should render loaderPlacement of buttons - start 1`] = `
|
|
|
1154
1237
|
<DocumentFragment>
|
|
1155
1238
|
<button
|
|
1156
1239
|
aria-busy="true"
|
|
1240
|
+
aria-disabled="true"
|
|
1157
1241
|
aria-pressed="false"
|
|
1158
1242
|
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText loading"
|
|
1159
|
-
disabled=""
|
|
1160
1243
|
type="button"
|
|
1161
1244
|
>
|
|
1162
1245
|
<div
|
|
@@ -1198,6 +1281,7 @@ exports[`Button Should render palette of buttons - brand 1`] = `
|
|
|
1198
1281
|
<DocumentFragment>
|
|
1199
1282
|
<button
|
|
1200
1283
|
aria-busy="false"
|
|
1284
|
+
aria-disabled="false"
|
|
1201
1285
|
aria-pressed="false"
|
|
1202
1286
|
class="buttonReset button bg-brand-80 hover:bg-brand-100 focus:bg-brand-100 active:bg-brand-100 text-brand-filled hover:text-brand-filled focus:text-brand-filled active:text-brand-filled border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
1203
1287
|
type="button"
|
|
@@ -1215,6 +1299,7 @@ exports[`Button Should render palette of buttons - brandLighter 1`] = `
|
|
|
1215
1299
|
<DocumentFragment>
|
|
1216
1300
|
<button
|
|
1217
1301
|
aria-busy="false"
|
|
1302
|
+
aria-disabled="false"
|
|
1218
1303
|
aria-pressed="false"
|
|
1219
1304
|
class="buttonReset button bg-brand-10 hover:bg-brand-20 focus:bg-brand-20 active:bg-brand-20 text-brand-80 hover:text-brand-100 focus:text-brand-100 active:text-brand-100 border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
1220
1305
|
type="button"
|
|
@@ -1232,6 +1317,7 @@ exports[`Button Should render palette of buttons - danger 1`] = `
|
|
|
1232
1317
|
<DocumentFragment>
|
|
1233
1318
|
<button
|
|
1234
1319
|
aria-busy="false"
|
|
1320
|
+
aria-disabled="false"
|
|
1235
1321
|
aria-pressed="false"
|
|
1236
1322
|
class="buttonReset button bg-red-70 hover:bg-red-100 focus:bg-red-100 active:bg-red-100 text-white hover:text-white focus:text-white active:text-white border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
1237
1323
|
type="button"
|
|
@@ -1249,6 +1335,7 @@ exports[`Button Should render palette of buttons - dangerLighter 1`] = `
|
|
|
1249
1335
|
<DocumentFragment>
|
|
1250
1336
|
<button
|
|
1251
1337
|
aria-busy="false"
|
|
1338
|
+
aria-disabled="false"
|
|
1252
1339
|
aria-pressed="false"
|
|
1253
1340
|
class="buttonReset button bg-red-10 hover:bg-red-30 focus:bg-red-30 active:bg-red-30 text-red-70 hover:text-red-100 focus:text-red-100 active:text-red-100 border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
1254
1341
|
type="button"
|
|
@@ -1266,6 +1353,7 @@ exports[`Button Should render palette of buttons - info 1`] = `
|
|
|
1266
1353
|
<DocumentFragment>
|
|
1267
1354
|
<button
|
|
1268
1355
|
aria-busy="false"
|
|
1356
|
+
aria-disabled="false"
|
|
1269
1357
|
aria-pressed="false"
|
|
1270
1358
|
class="buttonReset button bg-blue-80 hover:bg-blue-100 focus:bg-blue-100 active:bg-blue-100 text-white hover:text-white focus:text-white active:text-white border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
1271
1359
|
type="button"
|
|
@@ -1283,6 +1371,7 @@ exports[`Button Should render palette of buttons - infoLighter 1`] = `
|
|
|
1283
1371
|
<DocumentFragment>
|
|
1284
1372
|
<button
|
|
1285
1373
|
aria-busy="false"
|
|
1374
|
+
aria-disabled="false"
|
|
1286
1375
|
aria-pressed="false"
|
|
1287
1376
|
class="buttonReset button bg-blue-10 hover:bg-blue-20 focus:bg-blue-20 active:bg-blue-20 text-blue-80 hover:text-blue-100 focus:text-blue-100 active:text-blue-100 border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
1288
1377
|
type="button"
|
|
@@ -1300,6 +1389,7 @@ exports[`Button Should render palette of buttons - secondary 1`] = `
|
|
|
1300
1389
|
<DocumentFragment>
|
|
1301
1390
|
<button
|
|
1302
1391
|
aria-busy="false"
|
|
1392
|
+
aria-disabled="false"
|
|
1303
1393
|
aria-pressed="false"
|
|
1304
1394
|
class="buttonReset button bg-grey-65 hover:bg-grey-55 focus:bg-grey-55 active:bg-grey-55 text-white hover:text-white focus:text-white active:text-white border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
1305
1395
|
type="button"
|
|
@@ -1317,6 +1407,7 @@ exports[`Button Should render palette of buttons - secondaryLighter 1`] = `
|
|
|
1317
1407
|
<DocumentFragment>
|
|
1318
1408
|
<button
|
|
1319
1409
|
aria-busy="false"
|
|
1410
|
+
aria-disabled="false"
|
|
1320
1411
|
aria-pressed="false"
|
|
1321
1412
|
class="buttonReset button bg-grey-10 hover:bg-grey-20 focus:bg-grey-20 active:bg-grey-20 text-grey-65 hover:text-grey-100 focus:text-grey-100 active:text-grey-100 border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
1322
1413
|
type="button"
|
|
@@ -1334,6 +1425,7 @@ exports[`Button Should render palette of buttons - success 1`] = `
|
|
|
1334
1425
|
<DocumentFragment>
|
|
1335
1426
|
<button
|
|
1336
1427
|
aria-busy="false"
|
|
1428
|
+
aria-disabled="false"
|
|
1337
1429
|
aria-pressed="false"
|
|
1338
1430
|
class="buttonReset button bg-green-80 hover:bg-green-100 focus:bg-green-100 active:bg-green-100 text-white hover:text-white focus:text-white active:text-white border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
1339
1431
|
type="button"
|
|
@@ -1351,6 +1443,7 @@ exports[`Button Should render palette of buttons - successLighter 1`] = `
|
|
|
1351
1443
|
<DocumentFragment>
|
|
1352
1444
|
<button
|
|
1353
1445
|
aria-busy="false"
|
|
1446
|
+
aria-disabled="false"
|
|
1354
1447
|
aria-pressed="false"
|
|
1355
1448
|
class="buttonReset button bg-green-10 hover:bg-green-30 focus:bg-green-30 active:bg-green-30 text-green-80 hover:text-green-100 focus:text-green-100 active:text-green-100 border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
1356
1449
|
type="button"
|
|
@@ -1368,6 +1461,7 @@ exports[`Button Should render palette of buttons - warning 1`] = `
|
|
|
1368
1461
|
<DocumentFragment>
|
|
1369
1462
|
<button
|
|
1370
1463
|
aria-busy="false"
|
|
1464
|
+
aria-disabled="false"
|
|
1371
1465
|
aria-pressed="false"
|
|
1372
1466
|
class="buttonReset button bg-orange-80 hover:bg-orange-100 focus:bg-orange-100 active:bg-orange-100 text-white hover:text-white focus:text-white active:text-white border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
1373
1467
|
type="button"
|
|
@@ -1385,6 +1479,7 @@ exports[`Button Should render palette of buttons - warningLighter 1`] = `
|
|
|
1385
1479
|
<DocumentFragment>
|
|
1386
1480
|
<button
|
|
1387
1481
|
aria-busy="false"
|
|
1482
|
+
aria-disabled="false"
|
|
1388
1483
|
aria-pressed="false"
|
|
1389
1484
|
class="buttonReset button bg-orange-10 hover:bg-orange-15 focus:bg-orange-15 active:bg-orange-15 text-orange-80 hover:text-orange-100 focus:text-orange-100 active:text-orange-100 border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
1390
1485
|
type="button"
|
|
@@ -1402,6 +1497,7 @@ exports[`Button Should render selectedAppearance of buttons - { bg: false, borde
|
|
|
1402
1497
|
<DocumentFragment>
|
|
1403
1498
|
<button
|
|
1404
1499
|
aria-busy="false"
|
|
1500
|
+
aria-disabled="false"
|
|
1405
1501
|
aria-pressed="true"
|
|
1406
1502
|
class="buttonReset button bg-brand-80 selected:text-brand-filled selected:border-brand-80 sizeMedium shapeRoundedRectangle variantText"
|
|
1407
1503
|
type="button"
|
|
@@ -1419,6 +1515,7 @@ exports[`Button Should render selectedAppearance of buttons - { bg: true, text:
|
|
|
1419
1515
|
<DocumentFragment>
|
|
1420
1516
|
<button
|
|
1421
1517
|
aria-busy="false"
|
|
1518
|
+
aria-disabled="false"
|
|
1422
1519
|
aria-pressed="true"
|
|
1423
1520
|
class="buttonReset button selected:bg-brand-80 selected:text-black border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
1424
1521
|
type="button"
|
|
@@ -1436,6 +1533,7 @@ exports[`Button Should render selectedAppearance of buttons - { border: true } 1
|
|
|
1436
1533
|
<DocumentFragment>
|
|
1437
1534
|
<button
|
|
1438
1535
|
aria-busy="false"
|
|
1536
|
+
aria-disabled="false"
|
|
1439
1537
|
aria-pressed="true"
|
|
1440
1538
|
class="buttonReset button selected:bg-brand-80 selected:text-brand-filled selected:border-brand-80 sizeMedium shapeRoundedRectangle variantText"
|
|
1441
1539
|
type="button"
|
|
@@ -1453,6 +1551,7 @@ exports[`Button Should render selectedAppearance of buttons - { text: true } 1`]
|
|
|
1453
1551
|
<DocumentFragment>
|
|
1454
1552
|
<button
|
|
1455
1553
|
aria-busy="false"
|
|
1554
|
+
aria-disabled="false"
|
|
1456
1555
|
aria-pressed="true"
|
|
1457
1556
|
class="buttonReset button selected:bg-brand-80 selected:text-brand-filled border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
1458
1557
|
type="button"
|
|
@@ -1470,6 +1569,7 @@ exports[`Button Should render selectedAppearance of buttons - {} 1`] = `
|
|
|
1470
1569
|
<DocumentFragment>
|
|
1471
1570
|
<button
|
|
1472
1571
|
aria-busy="false"
|
|
1572
|
+
aria-disabled="false"
|
|
1473
1573
|
aria-pressed="true"
|
|
1474
1574
|
class="buttonReset button selected:bg-brand-80 selected:text-brand-filled border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
1475
1575
|
type="button"
|
|
@@ -1487,6 +1587,7 @@ exports[`Button Should render shape of buttons - pill 1`] = `
|
|
|
1487
1587
|
<DocumentFragment>
|
|
1488
1588
|
<button
|
|
1489
1589
|
aria-busy="false"
|
|
1590
|
+
aria-disabled="false"
|
|
1490
1591
|
aria-pressed="false"
|
|
1491
1592
|
class="buttonReset button border-transparent sizeMedium shapePill variantText"
|
|
1492
1593
|
type="button"
|
|
@@ -1504,6 +1605,7 @@ exports[`Button Should render shape of buttons - rectangle 1`] = `
|
|
|
1504
1605
|
<DocumentFragment>
|
|
1505
1606
|
<button
|
|
1506
1607
|
aria-busy="false"
|
|
1608
|
+
aria-disabled="false"
|
|
1507
1609
|
aria-pressed="false"
|
|
1508
1610
|
class="buttonReset button border-transparent sizeMedium shapeRectangle variantText"
|
|
1509
1611
|
type="button"
|
|
@@ -1521,6 +1623,7 @@ exports[`Button Should render shape of buttons - roundedRectangle 1`] = `
|
|
|
1521
1623
|
<DocumentFragment>
|
|
1522
1624
|
<button
|
|
1523
1625
|
aria-busy="false"
|
|
1626
|
+
aria-disabled="false"
|
|
1524
1627
|
aria-pressed="false"
|
|
1525
1628
|
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
1526
1629
|
type="button"
|
|
@@ -1538,6 +1641,7 @@ exports[`Button Should render success overlay when status is success and loaderP
|
|
|
1538
1641
|
<DocumentFragment>
|
|
1539
1642
|
<button
|
|
1540
1643
|
aria-busy="false"
|
|
1644
|
+
aria-disabled="false"
|
|
1541
1645
|
aria-pressed="false"
|
|
1542
1646
|
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
1543
1647
|
type="button"
|
|
@@ -1571,6 +1675,7 @@ exports[`Button Should render type of buttons - button 1`] = `
|
|
|
1571
1675
|
<DocumentFragment>
|
|
1572
1676
|
<button
|
|
1573
1677
|
aria-busy="false"
|
|
1678
|
+
aria-disabled="false"
|
|
1574
1679
|
aria-pressed="false"
|
|
1575
1680
|
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
1576
1681
|
type="button"
|
|
@@ -1588,6 +1693,7 @@ exports[`Button Should render type of buttons - reset 1`] = `
|
|
|
1588
1693
|
<DocumentFragment>
|
|
1589
1694
|
<button
|
|
1590
1695
|
aria-busy="false"
|
|
1696
|
+
aria-disabled="false"
|
|
1591
1697
|
aria-pressed="false"
|
|
1592
1698
|
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
1593
1699
|
type="reset"
|
|
@@ -1605,6 +1711,7 @@ exports[`Button Should render type of buttons - submit 1`] = `
|
|
|
1605
1711
|
<DocumentFragment>
|
|
1606
1712
|
<button
|
|
1607
1713
|
aria-busy="false"
|
|
1714
|
+
aria-disabled="false"
|
|
1608
1715
|
aria-pressed="false"
|
|
1609
1716
|
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
1610
1717
|
type="submit"
|
|
@@ -1622,6 +1729,7 @@ exports[`Button Should render variant of buttons - icon 1`] = `
|
|
|
1622
1729
|
<DocumentFragment>
|
|
1623
1730
|
<button
|
|
1624
1731
|
aria-busy="false"
|
|
1732
|
+
aria-disabled="false"
|
|
1625
1733
|
aria-pressed="false"
|
|
1626
1734
|
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantIcon"
|
|
1627
1735
|
type="button"
|
|
@@ -1639,6 +1747,7 @@ exports[`Button Should render variant of buttons - iconWithText 1`] = `
|
|
|
1639
1747
|
<DocumentFragment>
|
|
1640
1748
|
<button
|
|
1641
1749
|
aria-busy="false"
|
|
1750
|
+
aria-disabled="false"
|
|
1642
1751
|
aria-pressed="false"
|
|
1643
1752
|
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantIconWithText"
|
|
1644
1753
|
type="button"
|
|
@@ -1656,6 +1765,7 @@ exports[`Button Should render variant of buttons - text 1`] = `
|
|
|
1656
1765
|
<DocumentFragment>
|
|
1657
1766
|
<button
|
|
1658
1767
|
aria-busy="false"
|
|
1768
|
+
aria-disabled="false"
|
|
1659
1769
|
aria-pressed="false"
|
|
1660
1770
|
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
1661
1771
|
type="button"
|
|
@@ -1673,6 +1783,7 @@ exports[`Button Should render with children 1`] = `
|
|
|
1673
1783
|
<DocumentFragment>
|
|
1674
1784
|
<button
|
|
1675
1785
|
aria-busy="false"
|
|
1786
|
+
aria-disabled="false"
|
|
1676
1787
|
aria-pressed="false"
|
|
1677
1788
|
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
1678
1789
|
type="button"
|
|
@@ -1696,6 +1807,7 @@ exports[`Button Should render with customId and testId 1`] = `
|
|
|
1696
1807
|
<DocumentFragment>
|
|
1697
1808
|
<button
|
|
1698
1809
|
aria-busy="false"
|
|
1810
|
+
aria-disabled="false"
|
|
1699
1811
|
aria-pressed="false"
|
|
1700
1812
|
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
1701
1813
|
data-id="customIdValue"
|
|
@@ -1715,6 +1827,7 @@ exports[`Button Should render with dataSelectorId 1`] = `
|
|
|
1715
1827
|
<DocumentFragment>
|
|
1716
1828
|
<button
|
|
1717
1829
|
aria-busy="false"
|
|
1830
|
+
aria-disabled="false"
|
|
1718
1831
|
aria-pressed="false"
|
|
1719
1832
|
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
1720
1833
|
data-selector-id="selectorId"
|
|
@@ -1733,6 +1846,7 @@ exports[`Button Should render with iconName and iconSize 1`] = `
|
|
|
1733
1846
|
<DocumentFragment>
|
|
1734
1847
|
<button
|
|
1735
1848
|
aria-busy="false"
|
|
1849
|
+
aria-disabled="false"
|
|
1736
1850
|
aria-pressed="false"
|
|
1737
1851
|
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantIcon"
|
|
1738
1852
|
type="button"
|
|
@@ -1744,9 +1858,10 @@ exports[`Button Should render with iconName and iconSize 1`] = `
|
|
|
1744
1858
|
>
|
|
1745
1859
|
<i
|
|
1746
1860
|
aria-hidden="true"
|
|
1747
|
-
class="zd_font_icons
|
|
1861
|
+
class="zd_font_icons ff icon-plus basic d-inline-block d-align-middle"
|
|
1748
1862
|
data-id="fontIcon"
|
|
1749
1863
|
data-selector-id="fontIcon"
|
|
1864
|
+
data-test-id="fontIcon"
|
|
1750
1865
|
style="--zd-iconfont-size: var(--zd_font_size20);"
|
|
1751
1866
|
/>
|
|
1752
1867
|
</div>
|
|
@@ -1758,6 +1873,7 @@ exports[`Button Should render with iconPlacement 1`] = `
|
|
|
1758
1873
|
<DocumentFragment>
|
|
1759
1874
|
<button
|
|
1760
1875
|
aria-busy="false"
|
|
1876
|
+
aria-disabled="false"
|
|
1761
1877
|
aria-pressed="false"
|
|
1762
1878
|
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantIconWithText"
|
|
1763
1879
|
type="button"
|
|
@@ -1774,9 +1890,10 @@ exports[`Button Should render with iconPlacement 1`] = `
|
|
|
1774
1890
|
</div>
|
|
1775
1891
|
<i
|
|
1776
1892
|
aria-hidden="true"
|
|
1777
|
-
class="zd_font_icons
|
|
1893
|
+
class="zd_font_icons ff icon-plus basic d-inline-block d-align-middle"
|
|
1778
1894
|
data-id="fontIcon"
|
|
1779
1895
|
data-selector-id="fontIcon"
|
|
1896
|
+
data-test-id="fontIcon"
|
|
1780
1897
|
style="--zd-iconfont-size: var(--zd_font_size16);"
|
|
1781
1898
|
/>
|
|
1782
1899
|
</div>
|
|
@@ -1788,6 +1905,7 @@ exports[`Button Should render with renderBefore and renderAfter 1`] = `
|
|
|
1788
1905
|
<DocumentFragment>
|
|
1789
1906
|
<button
|
|
1790
1907
|
aria-busy="false"
|
|
1908
|
+
aria-disabled="false"
|
|
1791
1909
|
aria-pressed="false"
|
|
1792
1910
|
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
1793
1911
|
type="button"
|
|
@@ -1817,6 +1935,7 @@ exports[`Button Should render with renderIcon 1`] = `
|
|
|
1817
1935
|
<DocumentFragment>
|
|
1818
1936
|
<button
|
|
1819
1937
|
aria-busy="false"
|
|
1938
|
+
aria-disabled="false"
|
|
1820
1939
|
aria-pressed="false"
|
|
1821
1940
|
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantIcon"
|
|
1822
1941
|
type="button"
|
|
@@ -1838,9 +1957,9 @@ exports[`Button Should render with renderLoader 1`] = `
|
|
|
1838
1957
|
<DocumentFragment>
|
|
1839
1958
|
<button
|
|
1840
1959
|
aria-busy="true"
|
|
1960
|
+
aria-disabled="true"
|
|
1841
1961
|
aria-pressed="false"
|
|
1842
1962
|
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText loading"
|
|
1843
|
-
disabled=""
|
|
1844
1963
|
type="button"
|
|
1845
1964
|
>
|
|
1846
1965
|
<div
|
|
@@ -1865,6 +1984,7 @@ exports[`Button Should render with renderSuccess 1`] = `
|
|
|
1865
1984
|
<DocumentFragment>
|
|
1866
1985
|
<button
|
|
1867
1986
|
aria-busy="false"
|
|
1987
|
+
aria-disabled="false"
|
|
1868
1988
|
aria-pressed="false"
|
|
1869
1989
|
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
1870
1990
|
type="button"
|
|
@@ -1891,6 +2011,7 @@ exports[`Button Should render with selected style when isSelected prop is true 1
|
|
|
1891
2011
|
<DocumentFragment>
|
|
1892
2012
|
<button
|
|
1893
2013
|
aria-busy="false"
|
|
2014
|
+
aria-disabled="false"
|
|
1894
2015
|
aria-pressed="true"
|
|
1895
2016
|
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
1896
2017
|
type="button"
|
|
@@ -1908,6 +2029,7 @@ exports[`Button Should render with the basic set of default props 1`] = `
|
|
|
1908
2029
|
<DocumentFragment>
|
|
1909
2030
|
<button
|
|
1910
2031
|
aria-busy="false"
|
|
2032
|
+
aria-disabled="false"
|
|
1911
2033
|
aria-pressed="false"
|
|
1912
2034
|
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
1913
2035
|
type="button"
|
|
@@ -1925,6 +2047,7 @@ exports[`Button Should render with title attribute 1`] = `
|
|
|
1925
2047
|
<DocumentFragment>
|
|
1926
2048
|
<button
|
|
1927
2049
|
aria-busy="false"
|
|
2050
|
+
aria-disabled="false"
|
|
1928
2051
|
aria-pressed="false"
|
|
1929
2052
|
class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText"
|
|
1930
2053
|
data-title="Button test title"
|