@workday/canvas-kit-docs 16.0.0-alpha.0499-next.0 → 16.0.0

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.
Files changed (122) hide show
  1. package/dist/es6/lib/docs.js +2801 -17
  2. package/dist/es6/lib/specs.js +1549 -615
  3. package/dist/es6/lib/stackblitzFiles/packageJSONFile.js +5 -5
  4. package/dist/es6/lib/stackblitzFiles/packageJSONFile.ts +5 -5
  5. package/dist/es6/utils/parseSpecFile.d.ts.map +1 -1
  6. package/dist/es6/utils/parseSpecFile.js +27 -6
  7. package/dist/mdx/16.0-UPGRADE-GUIDE.mdx +148 -3
  8. package/dist/mdx/react/common/mdx/Theming.mdx +75 -431
  9. package/dist/mdx/react/common/mdx/examples/SimplifiedSanaSetup.tsx +35 -0
  10. package/dist/mdx/react/common/mdx/examples/ThemingBrandScope.tsx +29 -0
  11. package/package.json +6 -6
  12. package/dist/es6/mdx/accessibility/examples/AriaLiveRegions/CommentBoxWithCharLimit.d.ts +0 -2
  13. package/dist/es6/mdx/accessibility/examples/AriaLiveRegions/CommentBoxWithCharLimit.d.ts.map +0 -1
  14. package/dist/es6/mdx/accessibility/examples/AriaLiveRegions/CommentBoxWithCharLimit.js +0 -31
  15. package/dist/es6/mdx/accessibility/examples/AriaLiveRegions/FilterListWithLiveStatus.d.ts +0 -2
  16. package/dist/es6/mdx/accessibility/examples/AriaLiveRegions/FilterListWithLiveStatus.d.ts.map +0 -1
  17. package/dist/es6/mdx/accessibility/examples/AriaLiveRegions/FilterListWithLiveStatus.js +0 -43
  18. package/dist/es6/mdx/accessibility/examples/AriaLiveRegions/HiddenLiveRegion.d.ts +0 -2
  19. package/dist/es6/mdx/accessibility/examples/AriaLiveRegions/HiddenLiveRegion.d.ts.map +0 -1
  20. package/dist/es6/mdx/accessibility/examples/AriaLiveRegions/HiddenLiveRegion.js +0 -27
  21. package/dist/es6/mdx/accessibility/examples/AriaLiveRegions/IconButtonsWithLiveBadges.d.ts +0 -2
  22. package/dist/es6/mdx/accessibility/examples/AriaLiveRegions/IconButtonsWithLiveBadges.d.ts.map +0 -1
  23. package/dist/es6/mdx/accessibility/examples/AriaLiveRegions/IconButtonsWithLiveBadges.js +0 -56
  24. package/dist/es6/mdx/accessibility/examples/AriaLiveRegions/TextInputWithLiveError.d.ts +0 -2
  25. package/dist/es6/mdx/accessibility/examples/AriaLiveRegions/TextInputWithLiveError.d.ts.map +0 -1
  26. package/dist/es6/mdx/accessibility/examples/AriaLiveRegions/TextInputWithLiveError.js +0 -19
  27. package/dist/es6/mdx/accessibility/examples/AriaLiveRegions/VisibleLiveRegion.d.ts +0 -2
  28. package/dist/es6/mdx/accessibility/examples/AriaLiveRegions/VisibleLiveRegion.d.ts.map +0 -1
  29. package/dist/es6/mdx/accessibility/examples/AriaLiveRegions/VisibleLiveRegion.js +0 -35
  30. package/dist/es6/mdx/accessibility/examples/GlobalHeader.d.ts +0 -8
  31. package/dist/es6/mdx/accessibility/examples/GlobalHeader.d.ts.map +0 -1
  32. package/dist/es6/mdx/accessibility/examples/GlobalHeader.js +0 -149
  33. package/dist/es6/mdx/accessibility/examples/PageStructure/BreadcrumbNavRegion.d.ts +0 -2
  34. package/dist/es6/mdx/accessibility/examples/PageStructure/BreadcrumbNavRegion.d.ts.map +0 -1
  35. package/dist/es6/mdx/accessibility/examples/PageStructure/BreadcrumbNavRegion.js +0 -12
  36. package/dist/es6/mdx/accessibility/examples/PageStructure/FullPageDemo.d.ts +0 -2
  37. package/dist/es6/mdx/accessibility/examples/PageStructure/FullPageDemo.d.ts.map +0 -1
  38. package/dist/es6/mdx/accessibility/examples/PageStructure/FullPageDemo.js +0 -46
  39. package/dist/es6/mdx/accessibility/examples/PageStructure/LandmarkRegions.d.ts +0 -2
  40. package/dist/es6/mdx/accessibility/examples/PageStructure/LandmarkRegions.d.ts.map +0 -1
  41. package/dist/es6/mdx/accessibility/examples/PageStructure/LandmarkRegions.js +0 -28
  42. package/dist/es6/mdx/accessibility/examples/Popups/InlinePopupNoPortal.d.ts +0 -2
  43. package/dist/es6/mdx/accessibility/examples/Popups/InlinePopupNoPortal.d.ts.map +0 -1
  44. package/dist/es6/mdx/accessibility/examples/Popups/InlinePopupNoPortal.js +0 -62
  45. package/dist/es6/mdx/accessibility/examples/Popups/InlinePortalPopup.d.ts +0 -7
  46. package/dist/es6/mdx/accessibility/examples/Popups/InlinePortalPopup.d.ts.map +0 -1
  47. package/dist/es6/mdx/accessibility/examples/Popups/InlinePortalPopup.js +0 -65
  48. package/dist/es6/mdx/accessibility/examples/Popups/PopupAriaOwns.d.ts +0 -7
  49. package/dist/es6/mdx/accessibility/examples/Popups/PopupAriaOwns.d.ts.map +0 -1
  50. package/dist/es6/mdx/accessibility/examples/Popups/PopupAriaOwns.js +0 -46
  51. package/dist/es6/mdx/accessibility/examples/SidePanelWithNavigation.d.ts +0 -3
  52. package/dist/es6/mdx/accessibility/examples/SidePanelWithNavigation.d.ts.map +0 -1
  53. package/dist/es6/mdx/accessibility/examples/SidePanelWithNavigation.js +0 -100
  54. package/dist/es6/mdx/accessibility/examples/SidePanelWithOverlay.d.ts +0 -2
  55. package/dist/es6/mdx/accessibility/examples/SidePanelWithOverlay.d.ts.map +0 -1
  56. package/dist/es6/mdx/accessibility/examples/SidePanelWithOverlay.js +0 -30
  57. package/dist/es6/mdx/accessibility/examples/Table/WithColumnHeaderFilters.d.ts +0 -2
  58. package/dist/es6/mdx/accessibility/examples/Table/WithColumnHeaderFilters.d.ts.map +0 -1
  59. package/dist/es6/mdx/accessibility/examples/Table/WithColumnHeaderFilters.js +0 -101
  60. package/dist/es6/mdx/accessibility/examples/Table/WithExpandableRows.d.ts +0 -2
  61. package/dist/es6/mdx/accessibility/examples/Table/WithExpandableRows.d.ts.map +0 -1
  62. package/dist/es6/mdx/accessibility/examples/Table/WithExpandableRows.js +0 -115
  63. package/dist/es6/mdx/accessibility/examples/Table/WithFormFields.d.ts +0 -2
  64. package/dist/es6/mdx/accessibility/examples/Table/WithFormFields.d.ts.map +0 -1
  65. package/dist/es6/mdx/accessibility/examples/Table/WithFormFields.js +0 -79
  66. package/dist/es6/mdx/accessibility/examples/Table/WithSelectableRows.d.ts +0 -2
  67. package/dist/es6/mdx/accessibility/examples/Table/WithSelectableRows.d.ts.map +0 -1
  68. package/dist/es6/mdx/accessibility/examples/Table/WithSelectableRows.js +0 -89
  69. package/dist/es6/mdx/accessibility/examples/Table/WithSortableColumnHeaders.d.ts +0 -2
  70. package/dist/es6/mdx/accessibility/examples/Table/WithSortableColumnHeaders.d.ts.map +0 -1
  71. package/dist/es6/mdx/accessibility/examples/Table/WithSortableColumnHeaders.js +0 -114
  72. package/dist/es6/mdx/installBlock.d.ts +0 -6
  73. package/dist/es6/mdx/installBlock.d.ts.map +0 -1
  74. package/dist/es6/mdx/installBlock.js +0 -35
  75. package/dist/es6/mdx/style-props/examples/Background.d.ts +0 -2
  76. package/dist/es6/mdx/style-props/examples/Background.d.ts.map +0 -1
  77. package/dist/es6/mdx/style-props/examples/Background.js +0 -13
  78. package/dist/es6/mdx/style-props/examples/Border.d.ts +0 -2
  79. package/dist/es6/mdx/style-props/examples/Border.d.ts.map +0 -1
  80. package/dist/es6/mdx/style-props/examples/Border.js +0 -11
  81. package/dist/es6/mdx/style-props/examples/Color.d.ts +0 -2
  82. package/dist/es6/mdx/style-props/examples/Color.d.ts.map +0 -1
  83. package/dist/es6/mdx/style-props/examples/Color.js +0 -10
  84. package/dist/es6/mdx/style-props/examples/Depth.d.ts +0 -2
  85. package/dist/es6/mdx/style-props/examples/Depth.d.ts.map +0 -1
  86. package/dist/es6/mdx/style-props/examples/Depth.js +0 -11
  87. package/dist/es6/mdx/style-props/examples/Flex.d.ts +0 -2
  88. package/dist/es6/mdx/style-props/examples/Flex.d.ts.map +0 -1
  89. package/dist/es6/mdx/style-props/examples/Flex.js +0 -9
  90. package/dist/es6/mdx/style-props/examples/FlexItem.d.ts +0 -2
  91. package/dist/es6/mdx/style-props/examples/FlexItem.d.ts.map +0 -1
  92. package/dist/es6/mdx/style-props/examples/FlexItem.js +0 -9
  93. package/dist/es6/mdx/style-props/examples/Grid.d.ts +0 -2
  94. package/dist/es6/mdx/style-props/examples/Grid.d.ts.map +0 -1
  95. package/dist/es6/mdx/style-props/examples/Grid.js +0 -7
  96. package/dist/es6/mdx/style-props/examples/GridItem.d.ts +0 -2
  97. package/dist/es6/mdx/style-props/examples/GridItem.d.ts.map +0 -1
  98. package/dist/es6/mdx/style-props/examples/GridItem.js +0 -7
  99. package/dist/es6/mdx/style-props/examples/Layout.d.ts +0 -2
  100. package/dist/es6/mdx/style-props/examples/Layout.d.ts.map +0 -1
  101. package/dist/es6/mdx/style-props/examples/Layout.js +0 -10
  102. package/dist/es6/mdx/style-props/examples/Other.d.ts +0 -2
  103. package/dist/es6/mdx/style-props/examples/Other.d.ts.map +0 -1
  104. package/dist/es6/mdx/style-props/examples/Other.js +0 -11
  105. package/dist/es6/mdx/style-props/examples/Position.d.ts +0 -2
  106. package/dist/es6/mdx/style-props/examples/Position.d.ts.map +0 -1
  107. package/dist/es6/mdx/style-props/examples/Position.js +0 -12
  108. package/dist/es6/mdx/style-props/examples/Space.d.ts +0 -2
  109. package/dist/es6/mdx/style-props/examples/Space.d.ts.map +0 -1
  110. package/dist/es6/mdx/style-props/examples/Space.js +0 -9
  111. package/dist/es6/mdx/style-props/examples/Text.d.ts +0 -2
  112. package/dist/es6/mdx/style-props/examples/Text.d.ts.map +0 -1
  113. package/dist/es6/mdx/style-props/examples/Text.js +0 -3
  114. package/dist/es6/mdx/tokens/StorybookInformationHighlight/index.d.ts +0 -2
  115. package/dist/es6/mdx/tokens/StorybookInformationHighlight/index.d.ts.map +0 -1
  116. package/dist/es6/mdx/tokens/StorybookInformationHighlight/index.js +0 -6
  117. package/dist/es6/mdx/versionsTable.d.ts +0 -2
  118. package/dist/es6/mdx/versionsTable.d.ts.map +0 -1
  119. package/dist/es6/mdx/versionsTable.js +0 -60
  120. package/dist/es6/mdx/welcomePage.d.ts +0 -2
  121. package/dist/es6/mdx/welcomePage.d.ts.map +0 -1
  122. package/dist/es6/mdx/welcomePage.js +0 -57
@@ -1,4 +1,140 @@
1
1
  module.exports = {specifications: [
2
+ {
3
+ "type": "file",
4
+ "name": "ActionBar",
5
+ "children": [
6
+ {
7
+ "type": "describe",
8
+ "name": "ActionBar",
9
+ "children": [
10
+ {
11
+ "type": "describe",
12
+ "name": " Example",
13
+ "children": [
14
+ {
15
+ "type": "it",
16
+ "name": "should pass axe checks"
17
+ },
18
+ {
19
+ "type": "it",
20
+ "name": "should have an element with a role of \"region\""
21
+ },
22
+ {
23
+ "type": "it",
24
+ "name": "should have 2 buttons inside the \"region\""
25
+ },
26
+ {
27
+ "type": "describe",
28
+ "name": "when the first button focused",
29
+ "children": [
30
+ {
31
+ "type": "describe",
32
+ "name": "when the tab key is pressed",
33
+ "children": [
34
+ {
35
+ "type": "it",
36
+ "name": "should move focus to the tabpanel"
37
+ }
38
+ ]
39
+ }
40
+ ]
41
+ }
42
+ ]
43
+ },
44
+ {
45
+ "type": "describe",
46
+ "name": " Example",
47
+ "children": [
48
+ {
49
+ "type": "it",
50
+ "name": "should pass axe checks"
51
+ },
52
+ {
53
+ "type": "it",
54
+ "name": "should have an element with a role of \"region\""
55
+ },
56
+ {
57
+ "type": "it",
58
+ "name": "should have 2 buttons inside the \"region\""
59
+ },
60
+ {
61
+ "type": "describe",
62
+ "name": "when the first button focused",
63
+ "children": [
64
+ {
65
+ "type": "describe",
66
+ "name": "when the tab key is pressed",
67
+ "children": [
68
+ {
69
+ "type": "it",
70
+ "name": "should move focus to the tabpanel"
71
+ }
72
+ ]
73
+ }
74
+ ]
75
+ }
76
+ ]
77
+ },
78
+ {
79
+ "type": "describe",
80
+ "name": " Example",
81
+ "children": [
82
+ {
83
+ "type": "it",
84
+ "name": "should pass axe checks"
85
+ },
86
+ {
87
+ "type": "it",
88
+ "name": "should have an element with a role of \"region\""
89
+ },
90
+ {
91
+ "type": "it",
92
+ "name": "should have 2 buttons inside the \"region\""
93
+ },
94
+ {
95
+ "type": "describe",
96
+ "name": "when the first button focused",
97
+ "children": [
98
+ {
99
+ "type": "describe",
100
+ "name": "when the tab key is pressed",
101
+ "children": [
102
+ {
103
+ "type": "it",
104
+ "name": "should move focus to the tabpanel"
105
+ }
106
+ ]
107
+ }
108
+ ]
109
+ }
110
+ ]
111
+ },
112
+ {
113
+ "type": "describe",
114
+ "name": "OverflowActionBarCustomButtonCount Example",
115
+ "children": [
116
+ {
117
+ "type": "it",
118
+ "name": "should pass axe checks"
119
+ },
120
+ {
121
+ "type": "it",
122
+ "name": "should have 3 visible buttons inside the \"region\""
123
+ },
124
+ {
125
+ "type": "it",
126
+ "name": "should focus on the \"More\" button"
127
+ },
128
+ {
129
+ "type": "it",
130
+ "name": "should have button inside the \"menu\""
131
+ }
132
+ ]
133
+ }
134
+ ]
135
+ }
136
+ ]
137
+ },
2
138
  {
3
139
  "type": "file",
4
140
  "name": "Autocomplete",
@@ -376,7 +512,7 @@ module.exports = {specifications: [
376
512
  "children": [
377
513
  {
378
514
  "type": "describe",
379
- "name": "Error Example",
515
+ "name": " Example",
380
516
  "children": [
381
517
  {
382
518
  "type": "it",
@@ -390,7 +526,7 @@ module.exports = {specifications: [
390
526
  },
391
527
  {
392
528
  "type": "describe",
393
- "name": "Sticky Example",
529
+ "name": " Example",
394
530
  "children": [
395
531
  {
396
532
  "type": "it",
@@ -728,7 +864,7 @@ module.exports = {specifications: [
728
864
  "children": [
729
865
  {
730
866
  "type": "describe",
731
- "name": "given the 'Basic' example is rendered",
867
+ "name": "given the '' example is rendered",
732
868
  "children": [
733
869
  {
734
870
  "type": "it",
@@ -748,7 +884,7 @@ module.exports = {specifications: [
748
884
  },
749
885
  {
750
886
  "type": "describe",
751
- "name": "given the 'Caution' example is rendered",
887
+ "name": "given the '' example is rendered",
752
888
  "children": [
753
889
  {
754
890
  "type": "it",
@@ -768,7 +904,7 @@ module.exports = {specifications: [
768
904
  },
769
905
  {
770
906
  "type": "describe",
771
- "name": "given the 'Error' example is rendered",
907
+ "name": "given the '' example is rendered",
772
908
  "children": [
773
909
  {
774
910
  "type": "it",
@@ -828,7 +964,7 @@ module.exports = {specifications: [
828
964
  "children": [
829
965
  {
830
966
  "type": "describe",
831
- "name": "given the 'Basic' example is rendered",
967
+ "name": "given the '' example is rendered",
832
968
  "children": [
833
969
  {
834
970
  "type": "it",
@@ -888,7 +1024,7 @@ module.exports = {specifications: [
888
1024
  },
889
1025
  {
890
1026
  "type": "describe",
891
- "name": "given the 'Caution' example is rendered",
1027
+ "name": "given the '' example is rendered",
892
1028
  "children": [
893
1029
  {
894
1030
  "type": "it",
@@ -948,7 +1084,7 @@ module.exports = {specifications: [
948
1084
  },
949
1085
  {
950
1086
  "type": "describe",
951
- "name": "given the 'Error' example is rendered",
1087
+ "name": "given the '' example is rendered",
952
1088
  "children": [
953
1089
  {
954
1090
  "type": "it",
@@ -1008,7 +1144,7 @@ module.exports = {specifications: [
1008
1144
  },
1009
1145
  {
1010
1146
  "type": "describe",
1011
- "name": "given the 'Checked' example is rendered",
1147
+ "name": "given the '' example is rendered",
1012
1148
  "children": [
1013
1149
  {
1014
1150
  "type": "it",
@@ -1068,7 +1204,7 @@ module.exports = {specifications: [
1068
1204
  },
1069
1205
  {
1070
1206
  "type": "describe",
1071
- "name": "given the 'Grow' example is rendered",
1207
+ "name": "given the '' example is rendered",
1072
1208
  "children": [
1073
1209
  {
1074
1210
  "type": "it",
@@ -1560,7 +1696,7 @@ module.exports = {specifications: [
1560
1696
  "children": [
1561
1697
  {
1562
1698
  "type": "describe",
1563
- "name": "Informational Example",
1699
+ "name": " Example",
1564
1700
  "children": [
1565
1701
  {
1566
1702
  "type": "it",
@@ -1574,7 +1710,7 @@ module.exports = {specifications: [
1574
1710
  },
1575
1711
  {
1576
1712
  "type": "describe",
1577
- "name": "Caution Example",
1713
+ "name": " Example",
1578
1714
  "children": [
1579
1715
  {
1580
1716
  "type": "it",
@@ -1588,7 +1724,7 @@ module.exports = {specifications: [
1588
1724
  },
1589
1725
  {
1590
1726
  "type": "describe",
1591
- "name": "Critical Example",
1727
+ "name": " Example",
1592
1728
  "children": [
1593
1729
  {
1594
1730
  "type": "it",
@@ -2727,7 +2863,7 @@ module.exports = {specifications: [
2727
2863
  "children": [
2728
2864
  {
2729
2865
  "type": "describe",
2730
- "name": "given the [Preview/Pill, Basic] example is rendered",
2866
+ "name": "given the [Preview/Pill, ] example is rendered",
2731
2867
  "children": [
2732
2868
  {
2733
2869
  "type": "it",
@@ -2749,7 +2885,7 @@ module.exports = {specifications: [
2749
2885
  },
2750
2886
  {
2751
2887
  "type": "describe",
2752
- "name": "given the [Preview/Pill, WithAvatar] example is rendered",
2888
+ "name": "given the [Preview/Pill, ] example is rendered",
2753
2889
  "children": [
2754
2890
  {
2755
2891
  "type": "it",
@@ -2771,7 +2907,7 @@ module.exports = {specifications: [
2771
2907
  },
2772
2908
  {
2773
2909
  "type": "describe",
2774
- "name": "given the [Preview/Pill, WithCount] example is rendered",
2910
+ "name": "given the [Preview/Pill, ] example is rendered",
2775
2911
  "children": [
2776
2912
  {
2777
2913
  "type": "it",
@@ -3593,7 +3729,7 @@ module.exports = {specifications: [
3593
3729
  "children": [
3594
3730
  {
3595
3731
  "type": "describe",
3596
- "name": "given the 'Basic' story is rendered",
3732
+ "name": "given the '' story is rendered",
3597
3733
  "children": [
3598
3734
  {
3599
3735
  "type": "it",
@@ -3627,7 +3763,7 @@ module.exports = {specifications: [
3627
3763
  },
3628
3764
  {
3629
3765
  "type": "describe",
3630
- "name": "given the 'Caution' story is rendered",
3766
+ "name": "given the '' story is rendered",
3631
3767
  "children": [
3632
3768
  {
3633
3769
  "type": "it",
@@ -3661,7 +3797,7 @@ module.exports = {specifications: [
3661
3797
  },
3662
3798
  {
3663
3799
  "type": "describe",
3664
- "name": "given the 'Error' story is rendered",
3800
+ "name": "given the '' story is rendered",
3665
3801
  "children": [
3666
3802
  {
3667
3803
  "type": "it",
@@ -3721,7 +3857,7 @@ module.exports = {specifications: [
3721
3857
  "children": [
3722
3858
  {
3723
3859
  "type": "describe",
3724
- "name": "given the 'Basic' story is rendered",
3860
+ "name": "given the '' story is rendered",
3725
3861
  "children": [
3726
3862
  {
3727
3863
  "type": "it",
@@ -3755,7 +3891,7 @@ module.exports = {specifications: [
3755
3891
  },
3756
3892
  {
3757
3893
  "type": "describe",
3758
- "name": "given the 'Caution' story is rendered",
3894
+ "name": "given the '' story is rendered",
3759
3895
  "children": [
3760
3896
  {
3761
3897
  "type": "it",
@@ -3789,7 +3925,7 @@ module.exports = {specifications: [
3789
3925
  },
3790
3926
  {
3791
3927
  "type": "describe",
3792
- "name": "given the 'Error' story is rendered",
3928
+ "name": "given the '' story is rendered",
3793
3929
  "children": [
3794
3930
  {
3795
3931
  "type": "it",
@@ -3863,7 +3999,7 @@ module.exports = {specifications: [
3863
3999
  "children": [
3864
4000
  {
3865
4001
  "type": "describe",
3866
- "name": "given the Basic story is rendered",
4002
+ "name": "given the story is rendered",
3867
4003
  "children": [
3868
4004
  {
3869
4005
  "type": "it",
@@ -3981,7 +4117,7 @@ module.exports = {specifications: [
3981
4117
  },
3982
4118
  {
3983
4119
  "type": "describe",
3984
- "name": "given the Vertical story is rendered",
4120
+ "name": "given the story is rendered",
3985
4121
  "children": [
3986
4122
  {
3987
4123
  "type": "it",
@@ -4921,15 +5057,15 @@ module.exports = {specifications: [
4921
5057
  },
4922
5058
  {
4923
5059
  "type": "file",
4924
- "name": "Switch",
5060
+ "name": "SidePanel",
4925
5061
  "children": [
4926
5062
  {
4927
5063
  "type": "describe",
4928
- "name": "Switch",
5064
+ "name": "Side Panel",
4929
5065
  "children": [
4930
5066
  {
4931
5067
  "type": "describe",
4932
- "name": "given the 'Basic' story is rendered",
5068
+ "name": "given the \"Default\" story is rendered",
4933
5069
  "children": [
4934
5070
  {
4935
5071
  "type": "it",
@@ -4937,31 +5073,55 @@ module.exports = {specifications: [
4937
5073
  },
4938
5074
  {
4939
5075
  "type": "describe",
4940
- "name": "when clicked",
5076
+ "name": "the button",
4941
5077
  "children": [
4942
5078
  {
4943
5079
  "type": "it",
4944
- "name": "should be checked"
5080
+ "name": "should have an accessible name"
5081
+ },
5082
+ {
5083
+ "type": "it",
5084
+ "name": "should have an aria-pressed attribute of 'false'"
5085
+ },
5086
+ {
5087
+ "type": "it",
5088
+ "name": "should have an aria-controls attribute equal to the id of the panel"
4945
5089
  }
4946
5090
  ]
4947
- }
4948
- ]
4949
- },
4950
- {
4951
- "type": "describe",
4952
- "name": "given the 'Caution' story is rendered",
4953
- "children": [
5091
+ },
4954
5092
  {
4955
5093
  "type": "it",
4956
- "name": "should not have any axe errors"
5094
+ "name": "should have a panel with a landmark role"
4957
5095
  },
4958
5096
  {
4959
5097
  "type": "describe",
4960
- "name": "when clicked",
5098
+ "name": "when collapsing the panel",
4961
5099
  "children": [
4962
5100
  {
4963
- "type": "it",
4964
- "name": "should be checked"
5101
+ "type": "describe",
5102
+ "name": "the button",
5103
+ "children": [
5104
+ {
5105
+ "type": "it",
5106
+ "name": "should still have an aria-pressed attribute of 'false' while collapsing"
5107
+ }
5108
+ ]
5109
+ },
5110
+ {
5111
+ "type": "describe",
5112
+ "name": "when the panel's width transition finishes",
5113
+ "children": [
5114
+ {
5115
+ "type": "describe",
5116
+ "name": "the button",
5117
+ "children": [
5118
+ {
5119
+ "type": "it",
5120
+ "name": "should have an aria-pressed attribute of 'true'"
5121
+ }
5122
+ ]
5123
+ }
5124
+ ]
4965
5125
  }
4966
5126
  ]
4967
5127
  }
@@ -4969,7 +5129,7 @@ module.exports = {specifications: [
4969
5129
  },
4970
5130
  {
4971
5131
  "type": "describe",
4972
- "name": "given the 'Error' story is rendered",
5132
+ "name": "given the \"AsAside\" story is rendered",
4973
5133
  "children": [
4974
5134
  {
4975
5135
  "type": "it",
@@ -4977,57 +5137,55 @@ module.exports = {specifications: [
4977
5137
  },
4978
5138
  {
4979
5139
  "type": "describe",
4980
- "name": "when clicked",
5140
+ "name": "the button",
4981
5141
  "children": [
4982
5142
  {
4983
5143
  "type": "it",
4984
- "name": "should be checked"
5144
+ "name": "should have an accessible name"
5145
+ },
5146
+ {
5147
+ "type": "it",
5148
+ "name": "should have an aria-pressed attribute of 'false'"
5149
+ },
5150
+ {
5151
+ "type": "it",
5152
+ "name": "should have an aria-controls attribute equal to the id of the panel"
4985
5153
  }
4986
5154
  ]
4987
- }
4988
- ]
4989
- },
4990
- {
4991
- "type": "describe",
4992
- "name": "given the 'Disabled' story is rendered",
4993
- "children": [
4994
- {
4995
- "type": "it",
4996
- "name": "should not have any axe errors"
4997
5155
  },
4998
5156
  {
4999
5157
  "type": "it",
5000
- "name": "should be disabled"
5001
- }
5002
- ]
5003
- }
5004
- ]
5005
- }
5006
- ]
5007
- },
5008
- {
5009
- "type": "file",
5010
- "name": "SwitchPreview",
5011
- "children": [
5012
- {
5013
- "type": "describe",
5014
- "name": "Switch",
5015
- "children": [
5016
- {
5017
- "type": "describe",
5018
- "name": "given the 'Basic' story is rendered",
5019
- "children": [
5020
- {
5021
- "type": "it",
5022
- "name": "should not have any axe errors"
5158
+ "name": "should have a panel with a landmark role"
5023
5159
  },
5024
5160
  {
5025
5161
  "type": "describe",
5026
- "name": "when clicked",
5162
+ "name": "when collapsing the panel",
5027
5163
  "children": [
5028
5164
  {
5029
- "type": "it",
5030
- "name": "should be checked"
5165
+ "type": "describe",
5166
+ "name": "the button",
5167
+ "children": [
5168
+ {
5169
+ "type": "it",
5170
+ "name": "should still have an aria-pressed attribute of 'false' while collapsing"
5171
+ }
5172
+ ]
5173
+ },
5174
+ {
5175
+ "type": "describe",
5176
+ "name": "when the panel's width transition finishes",
5177
+ "children": [
5178
+ {
5179
+ "type": "describe",
5180
+ "name": "the button",
5181
+ "children": [
5182
+ {
5183
+ "type": "it",
5184
+ "name": "should have an aria-pressed attribute of 'true'"
5185
+ }
5186
+ ]
5187
+ }
5188
+ ]
5031
5189
  }
5032
5190
  ]
5033
5191
  }
@@ -5035,7 +5193,7 @@ module.exports = {specifications: [
5035
5193
  },
5036
5194
  {
5037
5195
  "type": "describe",
5038
- "name": "given the 'Caution' story is rendered",
5196
+ "name": "given the \"AsDiv\" story is rendered",
5039
5197
  "children": [
5040
5198
  {
5041
5199
  "type": "it",
@@ -5043,47 +5201,85 @@ module.exports = {specifications: [
5043
5201
  },
5044
5202
  {
5045
5203
  "type": "describe",
5046
- "name": "when clicked",
5204
+ "name": "the button",
5047
5205
  "children": [
5048
5206
  {
5049
5207
  "type": "it",
5050
- "name": "should be checked"
5208
+ "name": "should have an accessible name"
5209
+ },
5210
+ {
5211
+ "type": "it",
5212
+ "name": "should have an aria-pressed attribute of 'false'"
5213
+ },
5214
+ {
5215
+ "type": "it",
5216
+ "name": "should have an aria-controls attribute equal to the id of the panel"
5051
5217
  }
5052
5218
  ]
5053
- }
5054
- ]
5055
- },
5056
- {
5057
- "type": "describe",
5058
- "name": "given the 'Error' story is rendered",
5059
- "children": [
5219
+ },
5060
5220
  {
5061
5221
  "type": "it",
5062
- "name": "should not have any axe errors"
5222
+ "name": "should have a panel with a landmark role"
5063
5223
  },
5064
5224
  {
5065
5225
  "type": "describe",
5066
- "name": "when clicked",
5226
+ "name": "when collapsing the panel",
5067
5227
  "children": [
5068
5228
  {
5069
- "type": "it",
5070
- "name": "should be checked"
5071
- }
5072
- ]
5073
- }
5074
- ]
5075
- },
5229
+ "type": "describe",
5230
+ "name": "the button",
5231
+ "children": [
5232
+ {
5233
+ "type": "it",
5234
+ "name": "should still have an aria-pressed attribute of 'false' while collapsing"
5235
+ }
5236
+ ]
5237
+ },
5238
+ {
5239
+ "type": "describe",
5240
+ "name": "when the panel's width transition finishes",
5241
+ "children": [
5242
+ {
5243
+ "type": "describe",
5244
+ "name": "the button",
5245
+ "children": [
5246
+ {
5247
+ "type": "it",
5248
+ "name": "should have an aria-pressed attribute of 'true'"
5249
+ }
5250
+ ]
5251
+ }
5252
+ ]
5253
+ }
5254
+ ]
5255
+ }
5256
+ ]
5257
+ },
5076
5258
  {
5077
5259
  "type": "describe",
5078
- "name": "given the 'Disabled' story is rendered",
5260
+ "name": "given the 'first focusable' story is rendered",
5079
5261
  "children": [
5080
5262
  {
5081
- "type": "it",
5082
- "name": "should not have any axe errors"
5083
- },
5084
- {
5085
- "type": "it",
5086
- "name": "should be disabled"
5263
+ "type": "describe",
5264
+ "name": "when focused on a focusable element preceding the Side Panel",
5265
+ "children": [
5266
+ {
5267
+ "type": "describe",
5268
+ "name": "when the tab key is pressed once",
5269
+ "children": [
5270
+ {
5271
+ "type": "describe",
5272
+ "name": "the expand/collapse control button",
5273
+ "children": [
5274
+ {
5275
+ "type": "it",
5276
+ "name": "should be focused first"
5277
+ }
5278
+ ]
5279
+ }
5280
+ ]
5281
+ }
5282
+ ]
5087
5283
  }
5088
5284
  ]
5089
5285
  }
@@ -5093,195 +5289,149 @@ module.exports = {specifications: [
5093
5289
  },
5094
5290
  {
5095
5291
  "type": "file",
5096
- "name": "Tabs",
5292
+ "name": "SidePanelPreview",
5097
5293
  "children": [
5098
5294
  {
5099
5295
  "type": "describe",
5100
- "name": "Tabs",
5296
+ "name": "Side Panel",
5101
5297
  "children": [
5102
5298
  {
5103
5299
  "type": "describe",
5104
- "name": "given the [Components/Containers/Tabs, Basic] story is rendered",
5300
+ "name": "given the \"Default\" story is rendered",
5105
5301
  "children": [
5106
5302
  {
5107
5303
  "type": "it",
5108
- "name": "should pass axe checks"
5109
- },
5110
- {
5111
- "type": "it",
5112
- "name": "should have an element with a role of \"tablist\""
5113
- },
5114
- {
5115
- "type": "it",
5116
- "name": "should have elements with a role of \"tab\" inside the \"tablist\""
5117
- },
5118
- {
5119
- "type": "it",
5120
- "name": "should have \"aria-selected=true\" for the first tab"
5121
- },
5122
- {
5123
- "type": "it",
5124
- "name": "should not have \"aria-selected\" for the second tab"
5125
- },
5126
- {
5127
- "type": "it",
5128
- "name": "should not have tabindex=-1 on the first tab"
5129
- },
5130
- {
5131
- "type": "it",
5132
- "name": "should have \"tabindex=-1\" on the second tab"
5133
- },
5134
- {
5135
- "type": "it",
5136
- "name": "should have an id on the first tab"
5137
- },
5138
- {
5139
- "type": "it",
5140
- "name": "should label the tab panel \"First Tab\""
5141
- },
5142
- {
5143
- "type": "it",
5144
- "name": "should have an \"aria-controls\" on the first tab"
5145
- },
5146
- {
5147
- "type": "it",
5148
- "name": "should have an \"aria-controls\" that matches the first tab panel"
5304
+ "name": "should not have any axe errors"
5149
5305
  },
5150
5306
  {
5151
- "type": "it",
5152
- "name": "should have a default cursor for the (active) first tab"
5307
+ "type": "describe",
5308
+ "name": "the button",
5309
+ "children": [
5310
+ {
5311
+ "type": "it",
5312
+ "name": "should have an accessible name"
5313
+ },
5314
+ {
5315
+ "type": "it",
5316
+ "name": "should have an aria-expanded attribute of 'true'"
5317
+ },
5318
+ {
5319
+ "type": "it",
5320
+ "name": "should have an aria-controls attribute equal to the id of the panel"
5321
+ }
5322
+ ]
5153
5323
  },
5154
5324
  {
5155
5325
  "type": "it",
5156
- "name": "should have a pointer cursor for the second tab"
5326
+ "name": "should have a panel with a landmark role"
5157
5327
  },
5158
5328
  {
5159
5329
  "type": "describe",
5160
- "name": "when the first tab is active and focused",
5330
+ "name": "when collapsing the panel",
5161
5331
  "children": [
5162
5332
  {
5163
5333
  "type": "describe",
5164
- "name": "when the tab key is pressed",
5334
+ "name": "the button",
5165
5335
  "children": [
5166
5336
  {
5167
5337
  "type": "it",
5168
- "name": "should move focus to the tabpanel"
5338
+ "name": "should have an aria-expanded attribute of 'false'"
5169
5339
  }
5170
5340
  ]
5341
+ }
5342
+ ]
5343
+ }
5344
+ ]
5345
+ },
5346
+ {
5347
+ "type": "describe",
5348
+ "name": "given the \"AsAside\" story is rendered",
5349
+ "children": [
5350
+ {
5351
+ "type": "it",
5352
+ "name": "should not have any axe errors"
5353
+ },
5354
+ {
5355
+ "type": "describe",
5356
+ "name": "the button",
5357
+ "children": [
5358
+ {
5359
+ "type": "it",
5360
+ "name": "should have an accessible name"
5171
5361
  },
5172
5362
  {
5173
- "type": "describe",
5174
- "name": "when the right arrow key is pressed",
5175
- "children": [
5176
- {
5177
- "type": "it",
5178
- "name": "should have tabindex=-1 on the first tab"
5179
- },
5180
- {
5181
- "type": "it",
5182
- "name": "should not have tabindex=-1 on the second tab"
5183
- },
5184
- {
5185
- "type": "it",
5186
- "name": "should focus on the second tab"
5187
- },
5188
- {
5189
- "type": "describe",
5190
- "name": "when the space key is pressed",
5191
- "children": [
5192
- {
5193
- "type": "it",
5194
- "name": "should not have \"aria-selected\" on the first tab"
5195
- },
5196
- {
5197
- "type": "it",
5198
- "name": "should have \"aria-selected=true\" on the second tab"
5199
- }
5200
- ]
5201
- },
5202
- {
5203
- "type": "describe",
5204
- "name": "when the enter key is pressed",
5205
- "children": [
5206
- {
5207
- "type": "it",
5208
- "name": "should not have \"aria-selected\" on the first tab"
5209
- },
5210
- {
5211
- "type": "it",
5212
- "name": "should have \"aria-selected=true\" on the second tab"
5213
- }
5214
- ]
5215
- },
5216
- {
5217
- "type": "describe",
5218
- "name": "when the tab key is pressed",
5219
- "children": [
5220
- {
5221
- "type": "it",
5222
- "name": "should focus on the tab panel of the first tab"
5223
- },
5224
- {
5225
- "type": "describe",
5226
- "name": "when shift + tab keys are pressed",
5227
- "children": [
5228
- {
5229
- "type": "it",
5230
- "name": "should not have tabindex=-1 on the first tab"
5231
- },
5232
- {
5233
- "type": "it",
5234
- "name": "should set \"tabindex=-1\" on the second tab"
5235
- },
5236
- {
5237
- "type": "it",
5238
- "name": "should focus on the first tab"
5239
- }
5240
- ]
5241
- }
5242
- ]
5243
- }
5244
- ]
5363
+ "type": "it",
5364
+ "name": "should have an aria-expanded attribute of 'true'"
5245
5365
  },
5366
+ {
5367
+ "type": "it",
5368
+ "name": "should have an aria-controls attribute equal to the id of the panel"
5369
+ }
5370
+ ]
5371
+ },
5372
+ {
5373
+ "type": "it",
5374
+ "name": "should have a panel with a landmark role"
5375
+ },
5376
+ {
5377
+ "type": "describe",
5378
+ "name": "when collapsing the panel",
5379
+ "children": [
5246
5380
  {
5247
5381
  "type": "describe",
5248
- "name": "when the left arrow is pressed",
5382
+ "name": "the button",
5249
5383
  "children": [
5250
5384
  {
5251
5385
  "type": "it",
5252
- "name": "should have tabindex=-1 on the first tab"
5253
- },
5254
- {
5255
- "type": "it",
5256
- "name": "should not have tabindex=-1 on the last tab"
5257
- },
5258
- {
5259
- "type": "it",
5260
- "name": "should focus on the last tab"
5386
+ "name": "should have an aria-expanded attribute of 'false'"
5261
5387
  }
5262
5388
  ]
5263
5389
  }
5264
5390
  ]
5391
+ }
5392
+ ]
5393
+ },
5394
+ {
5395
+ "type": "describe",
5396
+ "name": "given the \"AsDiv\" story is rendered",
5397
+ "children": [
5398
+ {
5399
+ "type": "it",
5400
+ "name": "should not have any axe errors"
5265
5401
  },
5266
5402
  {
5267
5403
  "type": "describe",
5268
- "name": "when the fifth tab is clicked",
5404
+ "name": "the button",
5269
5405
  "children": [
5270
5406
  {
5271
5407
  "type": "it",
5272
- "name": "should show the contents of the fifth tab"
5408
+ "name": "should have an accessible name"
5409
+ },
5410
+ {
5411
+ "type": "it",
5412
+ "name": "should have an aria-expanded attribute of 'true'"
5273
5413
  },
5414
+ {
5415
+ "type": "it",
5416
+ "name": "should have an aria-controls attribute equal to the id of the panel"
5417
+ }
5418
+ ]
5419
+ },
5420
+ {
5421
+ "type": "it",
5422
+ "name": "should have a panel with a landmark role"
5423
+ },
5424
+ {
5425
+ "type": "describe",
5426
+ "name": "when collapsing the panel",
5427
+ "children": [
5274
5428
  {
5275
5429
  "type": "describe",
5276
- "name": "when the right arrow key is pressed",
5430
+ "name": "the button",
5277
5431
  "children": [
5278
5432
  {
5279
5433
  "type": "it",
5280
- "name": "should not have tabindex=-1 on the first tab"
5281
- },
5282
- {
5283
- "type": "it",
5284
- "name": "should set \"tabindex=-1\" on the last tab"
5434
+ "name": "should have an aria-expanded attribute of 'false'"
5285
5435
  }
5286
5436
  ]
5287
5437
  }
@@ -5291,14 +5441,226 @@ module.exports = {specifications: [
5291
5441
  },
5292
5442
  {
5293
5443
  "type": "describe",
5294
- "name": "given the [Components/Containers/Tabs, NamedTabs] story is rendered",
5444
+ "name": "given the 'first focusable' story is rendered",
5295
5445
  "children": [
5296
5446
  {
5297
- "type": "it",
5298
- "name": "should pass axe checks"
5299
- },
5300
- {
5301
- "type": "it",
5447
+ "type": "describe",
5448
+ "name": "when focused on a focusable element preceding the Side Panel",
5449
+ "children": [
5450
+ {
5451
+ "type": "describe",
5452
+ "name": "when the tab key is pressed once",
5453
+ "children": [
5454
+ {
5455
+ "type": "describe",
5456
+ "name": "the expand/collapse control button",
5457
+ "children": [
5458
+ {
5459
+ "type": "it",
5460
+ "name": "should be focused first"
5461
+ }
5462
+ ]
5463
+ }
5464
+ ]
5465
+ }
5466
+ ]
5467
+ }
5468
+ ]
5469
+ }
5470
+ ]
5471
+ }
5472
+ ]
5473
+ },
5474
+ {
5475
+ "type": "file",
5476
+ "name": "Switch",
5477
+ "children": [
5478
+ {
5479
+ "type": "describe",
5480
+ "name": "Switch",
5481
+ "children": [
5482
+ {
5483
+ "type": "describe",
5484
+ "name": "given the '' story is rendered",
5485
+ "children": [
5486
+ {
5487
+ "type": "it",
5488
+ "name": "should not have any axe errors"
5489
+ },
5490
+ {
5491
+ "type": "describe",
5492
+ "name": "when clicked",
5493
+ "children": [
5494
+ {
5495
+ "type": "it",
5496
+ "name": "should be checked"
5497
+ }
5498
+ ]
5499
+ }
5500
+ ]
5501
+ },
5502
+ {
5503
+ "type": "describe",
5504
+ "name": "given the '' story is rendered",
5505
+ "children": [
5506
+ {
5507
+ "type": "it",
5508
+ "name": "should not have any axe errors"
5509
+ },
5510
+ {
5511
+ "type": "describe",
5512
+ "name": "when clicked",
5513
+ "children": [
5514
+ {
5515
+ "type": "it",
5516
+ "name": "should be checked"
5517
+ }
5518
+ ]
5519
+ }
5520
+ ]
5521
+ },
5522
+ {
5523
+ "type": "describe",
5524
+ "name": "given the '' story is rendered",
5525
+ "children": [
5526
+ {
5527
+ "type": "it",
5528
+ "name": "should not have any axe errors"
5529
+ },
5530
+ {
5531
+ "type": "describe",
5532
+ "name": "when clicked",
5533
+ "children": [
5534
+ {
5535
+ "type": "it",
5536
+ "name": "should be checked"
5537
+ }
5538
+ ]
5539
+ }
5540
+ ]
5541
+ },
5542
+ {
5543
+ "type": "describe",
5544
+ "name": "given the 'Disabled' story is rendered",
5545
+ "children": [
5546
+ {
5547
+ "type": "it",
5548
+ "name": "should not have any axe errors"
5549
+ },
5550
+ {
5551
+ "type": "it",
5552
+ "name": "should be disabled"
5553
+ }
5554
+ ]
5555
+ }
5556
+ ]
5557
+ }
5558
+ ]
5559
+ },
5560
+ {
5561
+ "type": "file",
5562
+ "name": "SwitchPreview",
5563
+ "children": [
5564
+ {
5565
+ "type": "describe",
5566
+ "name": "Switch",
5567
+ "children": [
5568
+ {
5569
+ "type": "describe",
5570
+ "name": "given the '' story is rendered",
5571
+ "children": [
5572
+ {
5573
+ "type": "it",
5574
+ "name": "should not have any axe errors"
5575
+ },
5576
+ {
5577
+ "type": "describe",
5578
+ "name": "when clicked",
5579
+ "children": [
5580
+ {
5581
+ "type": "it",
5582
+ "name": "should be checked"
5583
+ }
5584
+ ]
5585
+ }
5586
+ ]
5587
+ },
5588
+ {
5589
+ "type": "describe",
5590
+ "name": "given the '' story is rendered",
5591
+ "children": [
5592
+ {
5593
+ "type": "it",
5594
+ "name": "should not have any axe errors"
5595
+ },
5596
+ {
5597
+ "type": "describe",
5598
+ "name": "when clicked",
5599
+ "children": [
5600
+ {
5601
+ "type": "it",
5602
+ "name": "should be checked"
5603
+ }
5604
+ ]
5605
+ }
5606
+ ]
5607
+ },
5608
+ {
5609
+ "type": "describe",
5610
+ "name": "given the '' story is rendered",
5611
+ "children": [
5612
+ {
5613
+ "type": "it",
5614
+ "name": "should not have any axe errors"
5615
+ },
5616
+ {
5617
+ "type": "describe",
5618
+ "name": "when clicked",
5619
+ "children": [
5620
+ {
5621
+ "type": "it",
5622
+ "name": "should be checked"
5623
+ }
5624
+ ]
5625
+ }
5626
+ ]
5627
+ },
5628
+ {
5629
+ "type": "describe",
5630
+ "name": "given the 'Disabled' story is rendered",
5631
+ "children": [
5632
+ {
5633
+ "type": "it",
5634
+ "name": "should not have any axe errors"
5635
+ },
5636
+ {
5637
+ "type": "it",
5638
+ "name": "should be disabled"
5639
+ }
5640
+ ]
5641
+ }
5642
+ ]
5643
+ }
5644
+ ]
5645
+ },
5646
+ {
5647
+ "type": "file",
5648
+ "name": "Tabs",
5649
+ "children": [
5650
+ {
5651
+ "type": "describe",
5652
+ "name": "Tabs",
5653
+ "children": [
5654
+ {
5655
+ "type": "describe",
5656
+ "name": "given the [Components/Containers/Tabs, ] story is rendered",
5657
+ "children": [
5658
+ {
5659
+ "type": "it",
5660
+ "name": "should pass axe checks"
5661
+ },
5662
+ {
5663
+ "type": "it",
5302
5664
  "name": "should have an element with a role of \"tablist\""
5303
5665
  },
5304
5666
  {
@@ -5481,58 +5843,248 @@ module.exports = {specifications: [
5481
5843
  },
5482
5844
  {
5483
5845
  "type": "describe",
5484
- "name": "given the [Components/Containers/Tabs, DisabledTab] story is rendered",
5846
+ "name": "given the [Components/Containers/Tabs, ] story is rendered",
5485
5847
  "children": [
5486
5848
  {
5487
- "type": "describe",
5488
- "name": "when the Disabled Tab is clicked",
5489
- "children": [
5490
- {
5491
- "type": "it",
5492
- "name": "should not set \"[aria-selected=true]\" on the Disabled Tab"
5493
- },
5494
- {
5495
- "type": "it",
5496
- "name": "should leave the first tab selected"
5497
- }
5498
- ]
5849
+ "type": "it",
5850
+ "name": "should pass axe checks"
5499
5851
  },
5500
5852
  {
5501
- "type": "describe",
5502
- "name": "when the first tab is active and focused",
5503
- "children": [
5504
- {
5505
- "type": "describe",
5506
- "name": "when the right arrow key is pressed",
5507
- "children": [
5508
- {
5509
- "type": "it",
5510
- "name": "should focus on the Disabled Tab"
5511
- },
5512
- {
5513
- "type": "describe",
5514
- "name": "when the enter key is pressed",
5515
- "children": [
5516
- {
5517
- "type": "it",
5518
- "name": "should not set \"[aria-selected=true]\" on the Disabled Tab"
5519
- },
5520
- {
5521
- "type": "it",
5522
- "name": "should leave the first tab selected"
5523
- }
5524
- ]
5525
- }
5526
- ]
5527
- }
5528
- ]
5529
- }
5530
- ]
5531
- },
5532
- {
5533
- "type": "describe",
5534
- "name": "given the [Components/Containers/Tabs, DynamicTabs] story is rendered",
5535
- "children": [
5853
+ "type": "it",
5854
+ "name": "should have an element with a role of \"tablist\""
5855
+ },
5856
+ {
5857
+ "type": "it",
5858
+ "name": "should have elements with a role of \"tab\" inside the \"tablist\""
5859
+ },
5860
+ {
5861
+ "type": "it",
5862
+ "name": "should have \"aria-selected=true\" for the first tab"
5863
+ },
5864
+ {
5865
+ "type": "it",
5866
+ "name": "should not have \"aria-selected\" for the second tab"
5867
+ },
5868
+ {
5869
+ "type": "it",
5870
+ "name": "should not have tabindex=-1 on the first tab"
5871
+ },
5872
+ {
5873
+ "type": "it",
5874
+ "name": "should have \"tabindex=-1\" on the second tab"
5875
+ },
5876
+ {
5877
+ "type": "it",
5878
+ "name": "should have an id on the first tab"
5879
+ },
5880
+ {
5881
+ "type": "it",
5882
+ "name": "should label the tab panel \"First Tab\""
5883
+ },
5884
+ {
5885
+ "type": "it",
5886
+ "name": "should have an \"aria-controls\" on the first tab"
5887
+ },
5888
+ {
5889
+ "type": "it",
5890
+ "name": "should have an \"aria-controls\" that matches the first tab panel"
5891
+ },
5892
+ {
5893
+ "type": "it",
5894
+ "name": "should have a default cursor for the (active) first tab"
5895
+ },
5896
+ {
5897
+ "type": "it",
5898
+ "name": "should have a pointer cursor for the second tab"
5899
+ },
5900
+ {
5901
+ "type": "describe",
5902
+ "name": "when the first tab is active and focused",
5903
+ "children": [
5904
+ {
5905
+ "type": "describe",
5906
+ "name": "when the tab key is pressed",
5907
+ "children": [
5908
+ {
5909
+ "type": "it",
5910
+ "name": "should move focus to the tabpanel"
5911
+ }
5912
+ ]
5913
+ },
5914
+ {
5915
+ "type": "describe",
5916
+ "name": "when the right arrow key is pressed",
5917
+ "children": [
5918
+ {
5919
+ "type": "it",
5920
+ "name": "should have tabindex=-1 on the first tab"
5921
+ },
5922
+ {
5923
+ "type": "it",
5924
+ "name": "should not have tabindex=-1 on the second tab"
5925
+ },
5926
+ {
5927
+ "type": "it",
5928
+ "name": "should focus on the second tab"
5929
+ },
5930
+ {
5931
+ "type": "describe",
5932
+ "name": "when the space key is pressed",
5933
+ "children": [
5934
+ {
5935
+ "type": "it",
5936
+ "name": "should not have \"aria-selected\" on the first tab"
5937
+ },
5938
+ {
5939
+ "type": "it",
5940
+ "name": "should have \"aria-selected=true\" on the second tab"
5941
+ }
5942
+ ]
5943
+ },
5944
+ {
5945
+ "type": "describe",
5946
+ "name": "when the enter key is pressed",
5947
+ "children": [
5948
+ {
5949
+ "type": "it",
5950
+ "name": "should not have \"aria-selected\" on the first tab"
5951
+ },
5952
+ {
5953
+ "type": "it",
5954
+ "name": "should have \"aria-selected=true\" on the second tab"
5955
+ }
5956
+ ]
5957
+ },
5958
+ {
5959
+ "type": "describe",
5960
+ "name": "when the tab key is pressed",
5961
+ "children": [
5962
+ {
5963
+ "type": "it",
5964
+ "name": "should focus on the tab panel of the first tab"
5965
+ },
5966
+ {
5967
+ "type": "describe",
5968
+ "name": "when shift + tab keys are pressed",
5969
+ "children": [
5970
+ {
5971
+ "type": "it",
5972
+ "name": "should not have tabindex=-1 on the first tab"
5973
+ },
5974
+ {
5975
+ "type": "it",
5976
+ "name": "should set \"tabindex=-1\" on the second tab"
5977
+ },
5978
+ {
5979
+ "type": "it",
5980
+ "name": "should focus on the first tab"
5981
+ }
5982
+ ]
5983
+ }
5984
+ ]
5985
+ }
5986
+ ]
5987
+ },
5988
+ {
5989
+ "type": "describe",
5990
+ "name": "when the left arrow is pressed",
5991
+ "children": [
5992
+ {
5993
+ "type": "it",
5994
+ "name": "should have tabindex=-1 on the first tab"
5995
+ },
5996
+ {
5997
+ "type": "it",
5998
+ "name": "should not have tabindex=-1 on the last tab"
5999
+ },
6000
+ {
6001
+ "type": "it",
6002
+ "name": "should focus on the last tab"
6003
+ }
6004
+ ]
6005
+ }
6006
+ ]
6007
+ },
6008
+ {
6009
+ "type": "describe",
6010
+ "name": "when the fifth tab is clicked",
6011
+ "children": [
6012
+ {
6013
+ "type": "it",
6014
+ "name": "should show the contents of the fifth tab"
6015
+ },
6016
+ {
6017
+ "type": "describe",
6018
+ "name": "when the right arrow key is pressed",
6019
+ "children": [
6020
+ {
6021
+ "type": "it",
6022
+ "name": "should not have tabindex=-1 on the first tab"
6023
+ },
6024
+ {
6025
+ "type": "it",
6026
+ "name": "should set \"tabindex=-1\" on the last tab"
6027
+ }
6028
+ ]
6029
+ }
6030
+ ]
6031
+ }
6032
+ ]
6033
+ },
6034
+ {
6035
+ "type": "describe",
6036
+ "name": "given the [Components/Containers/Tabs, DisabledTab] story is rendered",
6037
+ "children": [
6038
+ {
6039
+ "type": "describe",
6040
+ "name": "when the Disabled Tab is clicked",
6041
+ "children": [
6042
+ {
6043
+ "type": "it",
6044
+ "name": "should not set \"[aria-selected=true]\" on the Disabled Tab"
6045
+ },
6046
+ {
6047
+ "type": "it",
6048
+ "name": "should leave the first tab selected"
6049
+ }
6050
+ ]
6051
+ },
6052
+ {
6053
+ "type": "describe",
6054
+ "name": "when the first tab is active and focused",
6055
+ "children": [
6056
+ {
6057
+ "type": "describe",
6058
+ "name": "when the right arrow key is pressed",
6059
+ "children": [
6060
+ {
6061
+ "type": "it",
6062
+ "name": "should focus on the Disabled Tab"
6063
+ },
6064
+ {
6065
+ "type": "describe",
6066
+ "name": "when the enter key is pressed",
6067
+ "children": [
6068
+ {
6069
+ "type": "it",
6070
+ "name": "should not set \"[aria-selected=true]\" on the Disabled Tab"
6071
+ },
6072
+ {
6073
+ "type": "it",
6074
+ "name": "should leave the first tab selected"
6075
+ }
6076
+ ]
6077
+ }
6078
+ ]
6079
+ }
6080
+ ]
6081
+ }
6082
+ ]
6083
+ },
6084
+ {
6085
+ "type": "describe",
6086
+ "name": "given the [Components/Containers/Tabs, DynamicTabs] story is rendered",
6087
+ "children": [
5536
6088
  {
5537
6089
  "type": "describe",
5538
6090
  "name": "when \"Add Tab\" is clicked",
@@ -5649,209 +6201,555 @@ module.exports = {specifications: [
5649
6201
  },
5650
6202
  {
5651
6203
  "type": "describe",
5652
- "name": "given the [Components/Containers/Tabs, LeftToRight] story is rendered",
6204
+ "name": "given the [Components/Containers/Tabs, LeftToRight] story is rendered",
6205
+ "children": [
6206
+ {
6207
+ "type": "describe",
6208
+ "name": "when the first tab is active and focused",
6209
+ "children": [
6210
+ {
6211
+ "type": "describe",
6212
+ "name": "when the tab key is pressed",
6213
+ "children": [
6214
+ {
6215
+ "type": "it",
6216
+ "name": "should move focus to the tabpanel"
6217
+ }
6218
+ ]
6219
+ },
6220
+ {
6221
+ "type": "describe",
6222
+ "name": "when the left arrow key is pressed",
6223
+ "children": [
6224
+ {
6225
+ "type": "it",
6226
+ "name": "should have tabindex=-1 on the first tab"
6227
+ },
6228
+ {
6229
+ "type": "it",
6230
+ "name": "should not have tabindex=-1 on the second tab"
6231
+ },
6232
+ {
6233
+ "type": "it",
6234
+ "name": "should focus on the second tab"
6235
+ },
6236
+ {
6237
+ "type": "describe",
6238
+ "name": "when the space key is pressed",
6239
+ "children": [
6240
+ {
6241
+ "type": "it",
6242
+ "name": "should not have \"aria-selected\" on the first tab"
6243
+ },
6244
+ {
6245
+ "type": "it",
6246
+ "name": "should have \"aria-selected=true\" on the second tab"
6247
+ }
6248
+ ]
6249
+ }
6250
+ ]
6251
+ },
6252
+ {
6253
+ "type": "describe",
6254
+ "name": "when the right arrow is pressed",
6255
+ "children": [
6256
+ {
6257
+ "type": "it",
6258
+ "name": "should have tabindex=-1 on the first tab"
6259
+ },
6260
+ {
6261
+ "type": "it",
6262
+ "name": "should not have tabindex=-1 on the last tab"
6263
+ },
6264
+ {
6265
+ "type": "it",
6266
+ "name": "should focus on the last tab"
6267
+ }
6268
+ ]
6269
+ }
6270
+ ]
6271
+ }
6272
+ ]
6273
+ },
6274
+ {
6275
+ "type": "describe",
6276
+ "name": "when [Components/Containers/Tabs, OverflowTabs] story is rendered",
6277
+ "children": [
6278
+ {
6279
+ "type": "it",
6280
+ "name": "should pass axe checks"
6281
+ },
6282
+ {
6283
+ "type": "it",
6284
+ "name": "should not show the \"More\" button"
6285
+ },
6286
+ {
6287
+ "type": "it",
6288
+ "name": "should have 7 tab items"
6289
+ },
6290
+ {
6291
+ "type": "it",
6292
+ "name": "should not have scroll"
6293
+ },
6294
+ {
6295
+ "type": "describe",
6296
+ "name": "when the \"First Tab\" is focused",
6297
+ "children": [
6298
+ {
6299
+ "type": "describe",
6300
+ "name": "when the Tab key is pressed",
6301
+ "children": [
6302
+ {
6303
+ "type": "it",
6304
+ "name": "should focus on the tab panel"
6305
+ }
6306
+ ]
6307
+ }
6308
+ ]
6309
+ },
6310
+ {
6311
+ "type": "describe",
6312
+ "name": "when tab list container is only 500px wide",
6313
+ "children": [
6314
+ {
6315
+ "type": "it",
6316
+ "name": "should pass axe checks"
6317
+ },
6318
+ {
6319
+ "type": "it",
6320
+ "name": "should show the \"More\" button"
6321
+ },
6322
+ {
6323
+ "type": "it",
6324
+ "name": "should show only 3 tab items"
6325
+ },
6326
+ {
6327
+ "type": "it",
6328
+ "name": "should not have scroll"
6329
+ },
6330
+ {
6331
+ "type": "describe",
6332
+ "name": "when the \"First Tab\" is focused",
6333
+ "children": [
6334
+ {
6335
+ "type": "describe",
6336
+ "name": "when the Tab key is pressed",
6337
+ "children": [
6338
+ {
6339
+ "type": "it",
6340
+ "name": "should focus on the \"More\" button"
6341
+ }
6342
+ ]
6343
+ }
6344
+ ]
6345
+ },
6346
+ {
6347
+ "type": "describe",
6348
+ "name": "when the \"More\" button is clicked",
6349
+ "children": [
6350
+ {
6351
+ "type": "it",
6352
+ "name": "should show the Tab overflow menu"
6353
+ },
6354
+ {
6355
+ "type": "it",
6356
+ "name": "should have the fourth Tab as the first menu item"
6357
+ },
6358
+ {
6359
+ "type": "describe",
6360
+ "name": "when the \"Sixth Tab\" is clicked",
6361
+ "children": [
6362
+ {
6363
+ "type": "it",
6364
+ "name": "should select the Sixth Tab"
6365
+ },
6366
+ {
6367
+ "type": "it",
6368
+ "name": "should move focus back to the \"More\" button"
6369
+ }
6370
+ ]
6371
+ }
6372
+ ]
6373
+ }
6374
+ ]
6375
+ },
6376
+ {
6377
+ "type": "describe",
6378
+ "name": "when tab list container is only 360px wide",
6379
+ "children": [
6380
+ {
6381
+ "type": "it",
6382
+ "name": "should pass axe checks"
6383
+ },
6384
+ {
6385
+ "type": "it",
6386
+ "name": "should show the \"More\" button"
6387
+ },
6388
+ {
6389
+ "type": "it",
6390
+ "name": "should not have scroll"
6391
+ },
6392
+ {
6393
+ "type": "it",
6394
+ "name": "should show only 1 tab item"
6395
+ },
6396
+ {
6397
+ "type": "describe",
6398
+ "name": "when the \"More\" button is clicked",
6399
+ "children": [
6400
+ {
6401
+ "type": "it",
6402
+ "name": "should show the Tab overflow menu"
6403
+ },
6404
+ {
6405
+ "type": "it",
6406
+ "name": "should have the second Tab as the first menu item"
6407
+ }
6408
+ ]
6409
+ }
6410
+ ]
6411
+ },
6412
+ {
6413
+ "type": "describe",
6414
+ "name": "when tab list container is only 150px wide",
6415
+ "children": [
6416
+ {
6417
+ "type": "it",
6418
+ "name": "should pass axe checks"
6419
+ },
6420
+ {
6421
+ "type": "it",
6422
+ "name": "should show the \"More\" button"
6423
+ },
6424
+ {
6425
+ "type": "it",
6426
+ "name": "should not have scroll"
6427
+ },
6428
+ {
6429
+ "type": "it",
6430
+ "name": "should show no tab items"
6431
+ },
6432
+ {
6433
+ "type": "describe",
6434
+ "name": "when the \"More\" button is clicked",
6435
+ "children": [
6436
+ {
6437
+ "type": "it",
6438
+ "name": "should show the Tab overflow menu"
6439
+ },
6440
+ {
6441
+ "type": "it",
6442
+ "name": "should have the third Tab as the first menu item"
6443
+ }
6444
+ ]
6445
+ }
6446
+ ]
6447
+ },
6448
+ {
6449
+ "type": "describe",
6450
+ "name": "mobile viewport",
6451
+ "children": [
6452
+ {
6453
+ "type": "it",
6454
+ "name": "should not show the \"More\" button"
6455
+ },
6456
+ {
6457
+ "type": "it",
6458
+ "name": "should have scroll behavior"
6459
+ }
6460
+ ]
6461
+ }
6462
+ ]
6463
+ }
6464
+ ]
6465
+ }
6466
+ ]
6467
+ },
6468
+ {
6469
+ "type": "file",
6470
+ "name": "TextArea",
6471
+ "children": [
6472
+ {
6473
+ "type": "describe",
6474
+ "name": "Text Area",
6475
+ "children": [
6476
+ {
6477
+ "type": "describe",
6478
+ "name": "given the 'Basic' story is rendered",
6479
+ "children": [
6480
+ {
6481
+ "type": "it",
6482
+ "name": "should not have any axe errors"
6483
+ },
6484
+ {
6485
+ "type": "describe",
6486
+ "name": "when clicked",
6487
+ "children": [
6488
+ {
6489
+ "type": "it",
6490
+ "name": "should be focused"
6491
+ }
6492
+ ]
6493
+ },
6494
+ {
6495
+ "type": "describe",
6496
+ "name": "when text is entered",
6497
+ "children": [
6498
+ {
6499
+ "type": "it",
6500
+ "name": "should reflect the text typed"
6501
+ }
6502
+ ]
6503
+ }
6504
+ ]
6505
+ },
6506
+ {
6507
+ "type": "describe",
6508
+ "name": "given the 'Disabled' story is rendered",
6509
+ "children": [
6510
+ {
6511
+ "type": "it",
6512
+ "name": "should not have any axe errors"
6513
+ },
6514
+ {
6515
+ "type": "it",
6516
+ "name": "should be disabled"
6517
+ }
6518
+ ]
6519
+ },
6520
+ {
6521
+ "type": "describe",
6522
+ "name": "given the 'Placeholder' story is rendered",
6523
+ "children": [
6524
+ {
6525
+ "type": "it",
6526
+ "name": "should not have any axe errors"
6527
+ },
6528
+ {
6529
+ "type": "it",
6530
+ "name": "should render a placeholder text"
6531
+ },
6532
+ {
6533
+ "type": "it",
6534
+ "name": "should reflect the text typed"
6535
+ }
6536
+ ]
6537
+ }
6538
+ ]
6539
+ }
6540
+ ]
6541
+ },
6542
+ {
6543
+ "type": "file",
6544
+ "name": "TextInput",
6545
+ "children": [
6546
+ {
6547
+ "type": "describe",
6548
+ "name": "TextInput",
6549
+ "children": [
6550
+ {
6551
+ "type": "describe",
6552
+ "name": "given the 'Basic' story is rendered",
6553
+ "children": [
6554
+ {
6555
+ "type": "it",
6556
+ "name": "should not have any axe errors"
6557
+ },
6558
+ {
6559
+ "type": "describe",
6560
+ "name": "when clicked",
6561
+ "children": [
6562
+ {
6563
+ "type": "it",
6564
+ "name": "should be focused"
6565
+ }
6566
+ ]
6567
+ },
6568
+ {
6569
+ "type": "describe",
6570
+ "name": "when text is entered",
6571
+ "children": [
6572
+ {
6573
+ "type": "it",
6574
+ "name": "should reflect the text typed"
6575
+ }
6576
+ ]
6577
+ }
6578
+ ]
6579
+ },
6580
+ {
6581
+ "type": "describe",
6582
+ "name": "given the 'Disabled' story is rendered",
6583
+ "children": [
6584
+ {
6585
+ "type": "it",
6586
+ "name": "should not have any axe errors"
6587
+ },
6588
+ {
6589
+ "type": "it",
6590
+ "name": "should be disabled"
6591
+ }
6592
+ ]
6593
+ },
6594
+ {
6595
+ "type": "describe",
6596
+ "name": "given the 'Placeholder' story is rendered",
6597
+ "children": [
6598
+ {
6599
+ "type": "it",
6600
+ "name": "should not have any axe errors"
6601
+ },
6602
+ {
6603
+ "type": "it",
6604
+ "name": "should render a placeholder text"
6605
+ },
6606
+ {
6607
+ "type": "it",
6608
+ "name": "should reflect the text typed"
6609
+ }
6610
+ ]
6611
+ }
6612
+ ]
6613
+ }
6614
+ ]
6615
+ },
6616
+ {
6617
+ "type": "file",
6618
+ "name": "Toast",
6619
+ "children": [
6620
+ {
6621
+ "type": "describe",
6622
+ "name": "Toast",
6623
+ "children": [
6624
+ {
6625
+ "type": "describe",
6626
+ "name": "given the toast set to the default mode of \"status\"",
6627
+ "children": [
6628
+ {
6629
+ "type": "it",
6630
+ "name": "should not have any axe errors"
6631
+ },
6632
+ {
6633
+ "type": "it",
6634
+ "name": "should have a role of status"
6635
+ },
6636
+ {
6637
+ "type": "it",
6638
+ "name": "should have aria-live set to polite"
6639
+ },
6640
+ {
6641
+ "type": "it",
6642
+ "name": "should have aria-atomic set to true"
6643
+ }
6644
+ ]
6645
+ },
6646
+ {
6647
+ "type": "describe",
6648
+ "name": "given the toast with an alert",
5653
6649
  "children": [
5654
6650
  {
5655
- "type": "describe",
5656
- "name": "when the first tab is active and focused",
5657
- "children": [
5658
- {
5659
- "type": "describe",
5660
- "name": "when the tab key is pressed",
5661
- "children": [
5662
- {
5663
- "type": "it",
5664
- "name": "should move focus to the tabpanel"
5665
- }
5666
- ]
5667
- },
5668
- {
5669
- "type": "describe",
5670
- "name": "when the left arrow key is pressed",
5671
- "children": [
5672
- {
5673
- "type": "it",
5674
- "name": "should have tabindex=-1 on the first tab"
5675
- },
5676
- {
5677
- "type": "it",
5678
- "name": "should not have tabindex=-1 on the second tab"
5679
- },
5680
- {
5681
- "type": "it",
5682
- "name": "should focus on the second tab"
5683
- },
5684
- {
5685
- "type": "describe",
5686
- "name": "when the space key is pressed",
5687
- "children": [
5688
- {
5689
- "type": "it",
5690
- "name": "should not have \"aria-selected\" on the first tab"
5691
- },
5692
- {
5693
- "type": "it",
5694
- "name": "should have \"aria-selected=true\" on the second tab"
5695
- }
5696
- ]
5697
- }
5698
- ]
5699
- },
5700
- {
5701
- "type": "describe",
5702
- "name": "when the right arrow is pressed",
5703
- "children": [
5704
- {
5705
- "type": "it",
5706
- "name": "should have tabindex=-1 on the first tab"
5707
- },
5708
- {
5709
- "type": "it",
5710
- "name": "should not have tabindex=-1 on the last tab"
5711
- },
5712
- {
5713
- "type": "it",
5714
- "name": "should focus on the last tab"
5715
- }
5716
- ]
5717
- }
5718
- ]
6651
+ "type": "it",
6652
+ "name": "should not have any axe errors"
6653
+ },
6654
+ {
6655
+ "type": "it",
6656
+ "name": "should have a role of alert"
6657
+ },
6658
+ {
6659
+ "type": "it",
6660
+ "name": "should have aria-live set to assertive"
6661
+ },
6662
+ {
6663
+ "type": "it",
6664
+ "name": "should have aria-atomic set to true"
5719
6665
  }
5720
6666
  ]
5721
6667
  },
5722
6668
  {
5723
6669
  "type": "describe",
5724
- "name": "when [Components/Containers/Tabs, OverflowTabs] story is rendered",
6670
+ "name": "given the toast with a close button and action link",
5725
6671
  "children": [
5726
6672
  {
5727
6673
  "type": "it",
5728
- "name": "should pass axe checks"
6674
+ "name": "should not have any axe errors"
5729
6675
  },
5730
6676
  {
5731
6677
  "type": "it",
5732
- "name": "should not show the \"More\" button"
6678
+ "name": "should have a role of dialog"
5733
6679
  },
5734
6680
  {
5735
6681
  "type": "it",
5736
- "name": "should have 7 tab items"
6682
+ "name": "should have aria-label set to notification"
5737
6683
  },
5738
6684
  {
5739
6685
  "type": "it",
5740
- "name": "should not have scroll"
6686
+ "name": "should have aria-describedby"
6687
+ }
6688
+ ]
6689
+ }
6690
+ ]
6691
+ }
6692
+ ]
6693
+ },
6694
+ {
6695
+ "type": "file",
6696
+ "name": "Tooltip",
6697
+ "children": [
6698
+ {
6699
+ "type": "describe",
6700
+ "name": "Tooltip",
6701
+ "children": [
6702
+ {
6703
+ "type": "describe",
6704
+ "name": "given the DefaultStory example is rendered",
6705
+ "children": [
6706
+ {
6707
+ "type": "it",
6708
+ "name": "should not have any axe-core errors"
5741
6709
  },
5742
6710
  {
5743
- "type": "describe",
5744
- "name": "when the \"First Tab\" is focused",
5745
- "children": [
5746
- {
5747
- "type": "describe",
5748
- "name": "when the Tab key is pressed",
5749
- "children": [
5750
- {
5751
- "type": "it",
5752
- "name": "should focus on the tab panel"
5753
- }
5754
- ]
5755
- }
5756
- ]
6711
+ "type": "it",
6712
+ "name": "the button should have an aria-label of \"Close\""
5757
6713
  },
5758
6714
  {
5759
6715
  "type": "describe",
5760
- "name": "when tab list container is only 500px wide",
6716
+ "name": "when the close icon is hovered",
5761
6717
  "children": [
5762
6718
  {
5763
6719
  "type": "it",
5764
- "name": "should pass axe checks"
5765
- },
5766
- {
5767
- "type": "it",
5768
- "name": "should show the \"More\" button"
5769
- },
5770
- {
5771
- "type": "it",
5772
- "name": "should show only 3 tab items"
6720
+ "name": "should open the tooltip"
5773
6721
  },
5774
6722
  {
5775
6723
  "type": "it",
5776
- "name": "should not have scroll"
6724
+ "name": "should not have any axe-core errors"
5777
6725
  },
5778
6726
  {
5779
6727
  "type": "describe",
5780
- "name": "when the \"First Tab\" is focused",
6728
+ "name": "when the tooltip is hovered",
5781
6729
  "children": [
5782
6730
  {
5783
- "type": "describe",
5784
- "name": "when the Tab key is pressed",
5785
- "children": [
5786
- {
5787
- "type": "it",
5788
- "name": "should focus on the \"More\" button"
5789
- }
5790
- ]
6731
+ "type": "it",
6732
+ "name": "should not close the tooltip"
5791
6733
  }
5792
6734
  ]
5793
6735
  },
5794
6736
  {
5795
6737
  "type": "describe",
5796
- "name": "when the \"More\" button is clicked",
6738
+ "name": "when the Escape key is pressed",
5797
6739
  "children": [
5798
6740
  {
5799
6741
  "type": "it",
5800
- "name": "should show the Tab overflow menu"
5801
- },
5802
- {
5803
- "type": "it",
5804
- "name": "should have the fourth Tab as the first menu item"
5805
- },
5806
- {
5807
- "type": "describe",
5808
- "name": "when the \"Sixth Tab\" is clicked",
5809
- "children": [
5810
- {
5811
- "type": "it",
5812
- "name": "should select the Sixth Tab"
5813
- },
5814
- {
5815
- "type": "it",
5816
- "name": "should move focus back to the \"More\" button"
5817
- }
5818
- ]
6742
+ "name": "should close the tooltip"
5819
6743
  }
5820
6744
  ]
5821
- }
5822
- ]
5823
- },
5824
- {
5825
- "type": "describe",
5826
- "name": "when tab list container is only 360px wide",
5827
- "children": [
5828
- {
5829
- "type": "it",
5830
- "name": "should pass axe checks"
5831
- },
5832
- {
5833
- "type": "it",
5834
- "name": "should show the \"More\" button"
5835
- },
5836
- {
5837
- "type": "it",
5838
- "name": "should not have scroll"
5839
- },
5840
- {
5841
- "type": "it",
5842
- "name": "should show only 1 tab item"
5843
6745
  },
5844
6746
  {
5845
6747
  "type": "describe",
5846
- "name": "when the \"More\" button is clicked",
6748
+ "name": "when the target is clicked",
5847
6749
  "children": [
5848
6750
  {
5849
6751
  "type": "it",
5850
- "name": "should show the Tab overflow menu"
5851
- },
5852
- {
5853
- "type": "it",
5854
- "name": "should have the second Tab as the first menu item"
6752
+ "name": "should not close the tooltip"
5855
6753
  }
5856
6754
  ]
5857
6755
  }
@@ -5859,93 +6757,73 @@ module.exports = {specifications: [
5859
6757
  },
5860
6758
  {
5861
6759
  "type": "describe",
5862
- "name": "when tab list container is only 150px wide",
6760
+ "name": "when the close icon gains focus",
5863
6761
  "children": [
5864
6762
  {
5865
6763
  "type": "it",
5866
- "name": "should pass axe checks"
5867
- },
5868
- {
5869
- "type": "it",
5870
- "name": "should show the \"More\" button"
5871
- },
5872
- {
5873
- "type": "it",
5874
- "name": "should not have scroll"
5875
- },
5876
- {
5877
- "type": "it",
5878
- "name": "should show no tab items"
6764
+ "name": "should open the tooltip"
5879
6765
  },
5880
6766
  {
5881
6767
  "type": "describe",
5882
- "name": "when the \"More\" button is clicked",
6768
+ "name": "then the close icon loses focus",
5883
6769
  "children": [
5884
6770
  {
5885
6771
  "type": "it",
5886
- "name": "should show the Tab overflow menu"
5887
- },
6772
+ "name": "should close the tooltip"
6773
+ }
6774
+ ]
6775
+ },
6776
+ {
6777
+ "type": "describe",
6778
+ "name": "then the Escape key is pressed",
6779
+ "children": [
5888
6780
  {
5889
6781
  "type": "it",
5890
- "name": "should have the third Tab as the first menu item"
6782
+ "name": "should not remove focus from the close icon button"
5891
6783
  }
5892
6784
  ]
5893
- }
5894
- ]
5895
- },
5896
- {
5897
- "type": "describe",
5898
- "name": "mobile viewport",
5899
- "children": [
5900
- {
5901
- "type": "it",
5902
- "name": "should not show the \"More\" button"
5903
6785
  },
5904
6786
  {
5905
- "type": "it",
5906
- "name": "should have scroll behavior"
6787
+ "type": "describe",
6788
+ "name": "then a click happens outside both tooltip and icon button",
6789
+ "children": [
6790
+ {
6791
+ "type": "it",
6792
+ "name": "should close immediately, not waiting for blur or intent"
6793
+ }
6794
+ ]
5907
6795
  }
5908
6796
  ]
5909
6797
  }
5910
6798
  ]
5911
- }
5912
- ]
5913
- }
5914
- ]
5915
- },
5916
- {
5917
- "type": "file",
5918
- "name": "TextArea",
5919
- "children": [
5920
- {
5921
- "type": "describe",
5922
- "name": "Text Area",
5923
- "children": [
6799
+ },
5924
6800
  {
5925
6801
  "type": "describe",
5926
- "name": "given the 'Basic' story is rendered",
6802
+ "name": "given the DescribeType example is rendered",
5927
6803
  "children": [
5928
6804
  {
5929
6805
  "type": "it",
5930
- "name": "should not have any axe errors"
6806
+ "name": "should not have any axe-core errors"
5931
6807
  },
5932
6808
  {
5933
- "type": "describe",
5934
- "name": "when clicked",
5935
- "children": [
5936
- {
5937
- "type": "it",
5938
- "name": "should be focused"
5939
- }
5940
- ]
6809
+ "type": "it",
6810
+ "name": "the \"Delete\" button should not have an aria-describedby before hovering"
5941
6811
  },
5942
6812
  {
5943
6813
  "type": "describe",
5944
- "name": "when text is entered",
6814
+ "name": "when the \"Delete\" button is hovered",
5945
6815
  "children": [
5946
6816
  {
5947
6817
  "type": "it",
5948
- "name": "should reflect the text typed"
6818
+ "name": "should show the tooltip"
6819
+ },
6820
+ {
6821
+ "type": "it",
6822
+ "name": "should not have any axe-core errors"
6823
+ },
6824
+ {
6825
+ "type": "it",
6826
+ "name": "the \"Delete\" button should have an aria-describedby linking to the role=\"tooltip\" element"
5949
6827
  }
5950
6828
  ]
5951
6829
  }
@@ -5953,185 +6831,241 @@ module.exports = {specifications: [
5953
6831
  },
5954
6832
  {
5955
6833
  "type": "describe",
5956
- "name": "given the 'Disabled' story is rendered",
6834
+ "name": "given the DescriptionType example is rendered",
5957
6835
  "children": [
5958
6836
  {
5959
6837
  "type": "it",
5960
- "name": "should not have any axe errors"
6838
+ "name": "should not have any axe-core errors"
5961
6839
  },
5962
6840
  {
5963
6841
  "type": "it",
5964
- "name": "should be disabled"
6842
+ "name": "the \"Delete\" button should have an aria-description before hovering"
6843
+ },
6844
+ {
6845
+ "type": "describe",
6846
+ "name": "when the \"Delete\" button is hovered",
6847
+ "children": [
6848
+ {
6849
+ "type": "it",
6850
+ "name": "should show the tooltip"
6851
+ },
6852
+ {
6853
+ "type": "it",
6854
+ "name": "should not have any axe-core errors"
6855
+ },
6856
+ {
6857
+ "type": "it",
6858
+ "name": "the \"Delete\" button should have an accessible description equal to the tooltip text"
6859
+ }
6860
+ ]
5965
6861
  }
5966
6862
  ]
5967
6863
  },
5968
6864
  {
5969
6865
  "type": "describe",
5970
- "name": "given the 'Placeholder' story is rendered",
6866
+ "name": "given the [Components/Popups/Tooltip, Muted] example is rendered",
5971
6867
  "children": [
5972
6868
  {
5973
6869
  "type": "it",
5974
- "name": "should not have any axe errors"
6870
+ "name": "should not have any axe-core errors"
5975
6871
  },
5976
6872
  {
5977
6873
  "type": "it",
5978
- "name": "should render a placeholder text"
6874
+ "name": "the span element should not have an aria-describedby attribute"
5979
6875
  },
5980
6876
  {
5981
6877
  "type": "it",
5982
- "name": "should reflect the text typed"
6878
+ "name": "the span element should not have an aria-label attribute"
6879
+ },
6880
+ {
6881
+ "type": "describe",
6882
+ "name": "when the \"Some Text\" text is hovered",
6883
+ "children": [
6884
+ {
6885
+ "type": "it",
6886
+ "name": "should show the tooltip"
6887
+ },
6888
+ {
6889
+ "type": "it",
6890
+ "name": "should not have any axe-core errors"
6891
+ },
6892
+ {
6893
+ "type": "it",
6894
+ "name": "the span element should not have an aria-describedby attribute"
6895
+ },
6896
+ {
6897
+ "type": "it",
6898
+ "name": "the span element should not have an aria-label attribute"
6899
+ }
6900
+ ]
5983
6901
  }
5984
6902
  ]
5985
- }
5986
- ]
5987
- }
5988
- ]
5989
- },
5990
- {
5991
- "type": "file",
5992
- "name": "TextInput",
5993
- "children": [
5994
- {
5995
- "type": "describe",
5996
- "name": "TextInput",
5997
- "children": [
6903
+ },
5998
6904
  {
5999
6905
  "type": "describe",
6000
- "name": "given the 'Basic' story is rendered",
6906
+ "name": "given the Ellipsis example is rendered",
6001
6907
  "children": [
6002
6908
  {
6003
6909
  "type": "it",
6004
- "name": "should not have any axe errors"
6910
+ "name": "should not have any axe-core errors"
6911
+ },
6912
+ {
6913
+ "type": "it",
6914
+ "name": "the button should not have an aria-label"
6005
6915
  },
6006
6916
  {
6007
6917
  "type": "describe",
6008
- "name": "when clicked",
6918
+ "name": "when the \"Short Content\" button is hovered",
6009
6919
  "children": [
6010
6920
  {
6011
6921
  "type": "it",
6012
- "name": "should be focused"
6922
+ "name": "should not show the tooltip"
6013
6923
  }
6014
6924
  ]
6015
6925
  },
6016
6926
  {
6017
6927
  "type": "describe",
6018
- "name": "when text is entered",
6928
+ "name": "when the \"Super Mega Ultra Long Content With Max Width On The Button\" button is hovered",
6019
6929
  "children": [
6020
6930
  {
6021
6931
  "type": "it",
6022
- "name": "should reflect the text typed"
6932
+ "name": "should show the tooltip"
6023
6933
  }
6024
6934
  ]
6025
- }
6026
- ]
6027
- },
6028
- {
6029
- "type": "describe",
6030
- "name": "given the 'Disabled' story is rendered",
6031
- "children": [
6032
- {
6033
- "type": "it",
6034
- "name": "should not have any axe errors"
6035
6935
  },
6036
6936
  {
6037
- "type": "it",
6038
- "name": "should be disabled"
6039
- }
6040
- ]
6041
- },
6042
- {
6043
- "type": "describe",
6044
- "name": "given the 'Placeholder' story is rendered",
6045
- "children": [
6937
+ "type": "describe",
6938
+ "name": "when the \"Super Mega Ultra Long Content With Max Width Custom\" button is hovered",
6939
+ "children": [
6940
+ {
6941
+ "type": "it",
6942
+ "name": "should show the tooltip"
6943
+ }
6944
+ ]
6945
+ },
6046
6946
  {
6047
- "type": "it",
6048
- "name": "should not have any axe errors"
6947
+ "type": "describe",
6948
+ "name": "when the \"Short Content\" button is focused",
6949
+ "children": [
6950
+ {
6951
+ "type": "it",
6952
+ "name": "should not show the tooltip"
6953
+ }
6954
+ ]
6049
6955
  },
6050
6956
  {
6051
- "type": "it",
6052
- "name": "should render a placeholder text"
6957
+ "type": "describe",
6958
+ "name": "when the \"Super Mega Ultra Long Content With Max Width On The Button\" button is focused",
6959
+ "children": [
6960
+ {
6961
+ "type": "it",
6962
+ "name": "should show the tooltip"
6963
+ }
6964
+ ]
6053
6965
  },
6054
6966
  {
6055
- "type": "it",
6056
- "name": "should reflect the text typed"
6967
+ "type": "describe",
6968
+ "name": "when the \"Super Mega Ultra Long Content With Max Width Custom\" button is focused",
6969
+ "children": [
6970
+ {
6971
+ "type": "it",
6972
+ "name": "should show the tooltip"
6973
+ }
6974
+ ]
6057
6975
  }
6058
6976
  ]
6059
- }
6060
- ]
6061
- }
6062
- ]
6063
- },
6064
- {
6065
- "type": "file",
6066
- "name": "Toast",
6067
- "children": [
6068
- {
6069
- "type": "describe",
6070
- "name": "Toast",
6071
- "children": [
6977
+ },
6072
6978
  {
6073
6979
  "type": "describe",
6074
- "name": "given the toast set to the default mode of \"status\"",
6980
+ "name": "given the [Testing/Popups/Tooltip, Non Interactive] example is rendered",
6075
6981
  "children": [
6076
6982
  {
6077
- "type": "it",
6078
- "name": "should not have any axe errors"
6079
- },
6080
- {
6081
- "type": "it",
6082
- "name": "should have a role of status"
6083
- },
6084
- {
6085
- "type": "it",
6086
- "name": "should have aria-live set to polite"
6087
- },
6088
- {
6089
- "type": "it",
6090
- "name": "should have aria-atomic set to true"
6983
+ "type": "describe",
6984
+ "name": "when the \"Non-interactive Tooltip\" text is hovered",
6985
+ "children": [
6986
+ {
6987
+ "type": "it",
6988
+ "name": "should open the tooltip"
6989
+ },
6990
+ {
6991
+ "type": "describe",
6992
+ "name": "then the \"Non-interactive Tooltip\" text is clicked",
6993
+ "children": [
6994
+ {
6995
+ "type": "it",
6996
+ "name": "should not close the tooltip"
6997
+ }
6998
+ ]
6999
+ }
7000
+ ]
6091
7001
  }
6092
7002
  ]
6093
7003
  },
6094
7004
  {
6095
7005
  "type": "describe",
6096
- "name": "given the toast with an alert",
7006
+ "name": "given the [Testing/Popups/Tooltip, Overflow] example is rendered",
6097
7007
  "children": [
6098
7008
  {
6099
- "type": "it",
6100
- "name": "should not have any axe errors"
6101
- },
6102
- {
6103
- "type": "it",
6104
- "name": "should have a role of alert"
6105
- },
6106
- {
6107
- "type": "it",
6108
- "name": "should have aria-live set to assertive"
6109
- },
6110
- {
6111
- "type": "it",
6112
- "name": "should have aria-atomic set to true"
7009
+ "type": "describe",
7010
+ "name": "when the = button is hovered",
7011
+ "children": [
7012
+ {
7013
+ "type": "it",
7014
+ "name": "should open the tooltip"
7015
+ }
7016
+ ]
6113
7017
  }
6114
7018
  ]
6115
7019
  },
6116
7020
  {
6117
7021
  "type": "describe",
6118
- "name": "given the toast with a close button and action link",
7022
+ "name": "given the [Testing/Popups/Tooltip, TooltipWithFallbackPlacements] example is rendered",
6119
7023
  "children": [
6120
7024
  {
6121
- "type": "it",
6122
- "name": "should not have any axe errors"
6123
- },
6124
- {
6125
- "type": "it",
6126
- "name": "should have a role of dialog"
6127
- },
6128
- {
6129
- "type": "it",
6130
- "name": "should have aria-label set to notification"
6131
- },
6132
- {
6133
- "type": "it",
6134
- "name": "should have aria-describedby"
7025
+ "type": "describe",
7026
+ "name": "check the fallback placements",
7027
+ "children": [
7028
+ {
7029
+ "type": "describe",
7030
+ "name": "when the preferred placement is set to top",
7031
+ "children": [
7032
+ {
7033
+ "type": "it",
7034
+ "name": "should show the fallback placement: bottom"
7035
+ }
7036
+ ]
7037
+ },
7038
+ {
7039
+ "type": "describe",
7040
+ "name": "when the preferred placement is set to left",
7041
+ "children": [
7042
+ {
7043
+ "type": "it",
7044
+ "name": "should show the fallback placement: right"
7045
+ }
7046
+ ]
7047
+ },
7048
+ {
7049
+ "type": "describe",
7050
+ "name": "when the preferred placement is set to right",
7051
+ "children": [
7052
+ {
7053
+ "type": "it",
7054
+ "name": "should show the fallback placement: left"
7055
+ }
7056
+ ]
7057
+ },
7058
+ {
7059
+ "type": "describe",
7060
+ "name": "when the preferred placement is set to bottom",
7061
+ "children": [
7062
+ {
7063
+ "type": "it",
7064
+ "name": "should show the fallback placement: top"
7065
+ }
7066
+ ]
7067
+ }
7068
+ ]
6135
7069
  }
6136
7070
  ]
6137
7071
  }