@madgex/design-system 2.7.2 → 3.0.2

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 (81) hide show
  1. package/README.md +0 -2
  2. package/coverage/cobertura-coverage.xml +20 -20
  3. package/coverage/components/accordion/accordion.js.html +1 -1
  4. package/coverage/components/accordion/index.html +1 -1
  5. package/coverage/components/button/button.js.html +1 -1
  6. package/coverage/components/button/index.html +1 -1
  7. package/coverage/components/inputs/combobox/combobox.js.html +1 -1
  8. package/coverage/components/inputs/combobox/index.html +1 -1
  9. package/coverage/components/inputs/combobox/vue-components/Combobox.vue.html +21 -21
  10. package/coverage/components/inputs/combobox/vue-components/ListBoxOption.vue.html +1 -1
  11. package/coverage/components/inputs/combobox/vue-components/index.html +16 -16
  12. package/coverage/components/inputs/file-upload/file-upload.js.html +1 -1
  13. package/coverage/components/inputs/file-upload/index.html +1 -1
  14. package/coverage/components/inputs/textarea/character-count.js.html +1 -1
  15. package/coverage/components/inputs/textarea/index.html +1 -1
  16. package/coverage/components/modal/index.html +1 -1
  17. package/coverage/components/modal/modal.js.html +1 -1
  18. package/coverage/components/notification/index.html +1 -1
  19. package/coverage/components/notification/notification.js.html +1 -1
  20. package/coverage/components/popover/index.html +1 -1
  21. package/coverage/components/popover/popover.js.html +1 -1
  22. package/coverage/components/switch-state/index.html +1 -1
  23. package/coverage/components/switch-state/switch-state.js.html +1 -1
  24. package/coverage/components/tabs/index.html +1 -1
  25. package/coverage/components/tabs/tabs.js.html +1 -1
  26. package/coverage/index.html +16 -16
  27. package/coverage/js/common.js.html +1 -1
  28. package/coverage/js/fractal-scripts/combobox.js.html +1 -1
  29. package/coverage/js/fractal-scripts/index.html +1 -1
  30. package/coverage/js/fractal-scripts/notification.js.html +1 -1
  31. package/coverage/js/fractal-scripts/switch-state.js.html +1 -1
  32. package/coverage/js/index-fractal.js.html +1 -1
  33. package/coverage/js/index-polyfills.js.html +1 -1
  34. package/coverage/js/index-vue.js.html +1 -1
  35. package/coverage/js/index.html +1 -1
  36. package/coverage/js/index.js.html +1 -1
  37. package/coverage/js/polyfills/arrayPrototypeFind.js.html +1 -1
  38. package/coverage/js/polyfills/closest.js.html +1 -1
  39. package/coverage/js/polyfills/index.html +1 -1
  40. package/coverage/js/polyfills/objectAssign.js.html +1 -1
  41. package/coverage/js/polyfills/remove.js.html +1 -1
  42. package/coverage/tokens/_config.js.html +1 -1
  43. package/coverage/tokens/index.html +1 -1
  44. package/cypress/integration/components/accordion.spec.js +62 -20
  45. package/cypress/integration/components/button.spec.js +2 -1
  46. package/cypress/integration/components/card.spec.js +3 -1
  47. package/cypress/integration/components/combobox.spec.js +26 -51
  48. package/cypress/integration/components/input.spec.js +10 -1
  49. package/cypress/integration/components/pagination-numbers.spec.js +7 -1
  50. package/cypress/integration/components/pagination.spec.js +4 -1
  51. package/cypress/integration/components/radio.spec.js +3 -1
  52. package/cypress/integration/components/switch-state.spec.js +12 -8
  53. package/cypress/integration/components/tabs.spec.js +9 -14
  54. package/cypress/integration/components/textarea.spec.js +1 -1
  55. package/dist/_tokens/css/_tokens.css +10 -10
  56. package/dist/_tokens/js/_tokens-module.js +15 -15
  57. package/dist/_tokens/scss/_tokens.scss +10 -10
  58. package/dist/assets/icons.json +1 -1
  59. package/dist/css/index.css +1 -1
  60. package/dist/js/index.js +2 -22
  61. package/dist/js/index.js.LICENSE.txt +14 -0
  62. package/package.json +30 -30
  63. package/src/components/inputs/_checkbox-elem/_template.njk +1 -3
  64. package/src/components/inputs/checkbox-list/_template.njk +1 -1
  65. package/src/components/inputs/combobox/_template.njk +4 -1
  66. package/src/components/inputs/combobox/vue-components/Combobox.vue +1 -1
  67. package/src/components/inputs/combobox/vue-components/ListBox.vue +5 -1
  68. package/src/components/inputs/file-upload/_template.njk +1 -1
  69. package/src/components/inputs/input/_template.njk +1 -1
  70. package/src/components/inputs/label/README.md +2 -0
  71. package/src/components/inputs/label/_template.njk +2 -2
  72. package/src/components/inputs/label/label.njk +3 -1
  73. package/src/components/inputs/radio/_template.njk +1 -1
  74. package/src/components/inputs/radio/radio.config.js +2 -2
  75. package/src/components/inputs/select/_template.njk +1 -1
  76. package/src/components/inputs/single-checkbox/_template.njk +6 -6
  77. package/src/components/inputs/single-checkbox/single-checkbox.config.js +1 -1
  78. package/src/components/inputs/single-checkbox/single-checkbox.njk +2 -2
  79. package/src/components/inputs/textarea/_template.njk +1 -1
  80. package/src/tokens/color.json +5 -5
  81. package/tasks/css.js +3 -1
@@ -99,7 +99,7 @@
99
99
  <div class='footer quiet pad2 space-top1 center small'>
100
100
  Code coverage generated by
101
101
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
102
- at Mon Jul 05 2021 10:31:29 GMT+0100 (British Summer Time)
102
+ at Wed Jul 07 2021 12:25:30 GMT+0100 (British Summer Time)
103
103
  </div>
104
104
  </div>
105
105
  <script src="../prettify.js"></script>
@@ -213,7 +213,7 @@ export default combobox;
213
213
  <div class='footer quiet pad2 space-top1 center small'>
214
214
  Code coverage generated by
215
215
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
216
- at Mon Jul 05 2021 10:31:29 GMT+0100 (British Summer Time)
216
+ at Wed Jul 07 2021 12:25:30 GMT+0100 (British Summer Time)
217
217
  </div>
218
218
  </div>
219
219
  <script src="../../prettify.js"></script>
@@ -124,7 +124,7 @@
124
124
  <div class='footer quiet pad2 space-top1 center small'>
125
125
  Code coverage generated by
126
126
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
127
- at Mon Jul 05 2021 10:31:29 GMT+0100 (British Summer Time)
127
+ at Wed Jul 07 2021 12:25:30 GMT+0100 (British Summer Time)
128
128
  </div>
129
129
  </div>
130
130
  <script src="../../prettify.js"></script>
@@ -123,7 +123,7 @@ export default notificationScript;
123
123
  <div class='footer quiet pad2 space-top1 center small'>
124
124
  Code coverage generated by
125
125
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
126
- at Mon Jul 05 2021 10:31:29 GMT+0100 (British Summer Time)
126
+ at Wed Jul 07 2021 12:25:30 GMT+0100 (British Summer Time)
127
127
  </div>
128
128
  </div>
129
129
  <script src="../../prettify.js"></script>
@@ -135,7 +135,7 @@ export default switchStateScript;
135
135
  <div class='footer quiet pad2 space-top1 center small'>
136
136
  Code coverage generated by
137
137
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
138
- at Mon Jul 05 2021 10:31:29 GMT+0100 (British Summer Time)
138
+ at Wed Jul 07 2021 12:25:30 GMT+0100 (British Summer Time)
139
139
  </div>
140
140
  </div>
141
141
  <script src="../../prettify.js"></script>
@@ -90,7 +90,7 @@ import comboboxScript from './fractal-scripts/combobox';
90
90
  <div class='footer quiet pad2 space-top1 center small'>
91
91
  Code coverage generated by
92
92
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
93
- at Mon Jul 05 2021 10:31:29 GMT+0100 (British Summer Time)
93
+ at Wed Jul 07 2021 12:25:30 GMT+0100 (British Summer Time)
94
94
  </div>
95
95
  </div>
96
96
  <script src="../prettify.js"></script>
@@ -78,7 +78,7 @@ import './polyfills/arrayPrototypeFind';
78
78
  <div class='footer quiet pad2 space-top1 center small'>
79
79
  Code coverage generated by
80
80
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
81
- at Mon Jul 05 2021 10:31:29 GMT+0100 (British Summer Time)
81
+ at Wed Jul 07 2021 12:25:30 GMT+0100 (British Summer Time)
82
82
  </div>
83
83
  </div>
84
84
  <script src="../prettify.js"></script>
@@ -105,7 +105,7 @@ import MdsCombobox from '../components/inputs/combobox/combobox';
105
105
  <div class='footer quiet pad2 space-top1 center small'>
106
106
  Code coverage generated by
107
107
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
108
- at Mon Jul 05 2021 10:31:29 GMT+0100 (British Summer Time)
108
+ at Wed Jul 07 2021 12:25:30 GMT+0100 (British Summer Time)
109
109
  </div>
110
110
  </div>
111
111
  <script src="../prettify.js"></script>
@@ -154,7 +154,7 @@
154
154
  <div class='footer quiet pad2 space-top1 center small'>
155
155
  Code coverage generated by
156
156
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
157
- at Mon Jul 05 2021 10:31:29 GMT+0100 (British Summer Time)
157
+ at Wed Jul 07 2021 12:25:30 GMT+0100 (British Summer Time)
158
158
  </div>
159
159
  </div>
160
160
  <script src="../prettify.js"></script>
@@ -144,7 +144,7 @@ import button from '../components/button/button';
144
144
  <div class='footer quiet pad2 space-top1 center small'>
145
145
  Code coverage generated by
146
146
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
147
- at Mon Jul 05 2021 10:31:29 GMT+0100 (British Summer Time)
147
+ at Wed Jul 07 2021 12:25:30 GMT+0100 (British Summer Time)
148
148
  </div>
149
149
  </div>
150
150
  <script src="../prettify.js"></script>
@@ -201,7 +201,7 @@
201
201
  <div class='footer quiet pad2 space-top1 center small'>
202
202
  Code coverage generated by
203
203
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
204
- at Mon Jul 05 2021 10:31:29 GMT+0100 (British Summer Time)
204
+ at Wed Jul 07 2021 12:25:30 GMT+0100 (British Summer Time)
205
205
  </div>
206
206
  </div>
207
207
  <script src="../../prettify.js"></script>
@@ -111,7 +111,7 @@
111
111
  <div class='footer quiet pad2 space-top1 center small'>
112
112
  Code coverage generated by
113
113
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
114
- at Mon Jul 05 2021 10:31:29 GMT+0100 (British Summer Time)
114
+ at Wed Jul 07 2021 12:25:30 GMT+0100 (British Summer Time)
115
115
  </div>
116
116
  </div>
117
117
  <script src="../../prettify.js"></script>
@@ -139,7 +139,7 @@
139
139
  <div class='footer quiet pad2 space-top1 center small'>
140
140
  Code coverage generated by
141
141
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
142
- at Mon Jul 05 2021 10:31:29 GMT+0100 (British Summer Time)
142
+ at Wed Jul 07 2021 12:25:30 GMT+0100 (British Summer Time)
143
143
  </div>
144
144
  </div>
145
145
  <script src="../../prettify.js"></script>
@@ -153,7 +153,7 @@
153
153
  <div class='footer quiet pad2 space-top1 center small'>
154
154
  Code coverage generated by
155
155
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
156
- at Mon Jul 05 2021 10:31:29 GMT+0100 (British Summer Time)
156
+ at Wed Jul 07 2021 12:25:30 GMT+0100 (British Summer Time)
157
157
  </div>
158
158
  </div>
159
159
  <script src="../../prettify.js"></script>
@@ -84,7 +84,7 @@
84
84
  <div class='footer quiet pad2 space-top1 center small'>
85
85
  Code coverage generated by
86
86
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
87
- at Mon Jul 05 2021 10:31:29 GMT+0100 (British Summer Time)
87
+ at Wed Jul 07 2021 12:25:30 GMT+0100 (British Summer Time)
88
88
  </div>
89
89
  </div>
90
90
  <script src="../../prettify.js"></script>
@@ -552,7 +552,7 @@ const config = <span class="cstat-no" title="statement not covered" >{</span>
552
552
  <div class='footer quiet pad2 space-top1 center small'>
553
553
  Code coverage generated by
554
554
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
555
- at Mon Jul 05 2021 10:31:29 GMT+0100 (British Summer Time)
555
+ at Wed Jul 07 2021 12:25:30 GMT+0100 (British Summer Time)
556
556
  </div>
557
557
  </div>
558
558
  <script src="../prettify.js"></script>
@@ -94,7 +94,7 @@
94
94
  <div class='footer quiet pad2 space-top1 center small'>
95
95
  Code coverage generated by
96
96
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
97
- at Mon Jul 05 2021 10:31:29 GMT+0100 (British Summer Time)
97
+ at Wed Jul 07 2021 12:25:30 GMT+0100 (British Summer Time)
98
98
  </div>
99
99
  </div>
100
100
  <script src="../prettify.js"></script>
@@ -6,43 +6,85 @@ context('Accordion', () => {
6
6
  });
7
7
 
8
8
  it('has no detectable a11y violations on load', () => {
9
- cy.checkA11y('[data-test="accordion"]');
9
+ cy.checkA11y('[data-test="accordion-content-taxonomy"]');
10
+ cy.checkA11y('[data-test="accordion-content-altIcons"]');
11
+ cy.checkA11y('[data-test="accordion-content-collapsed"]');
12
+ cy.checkA11y('[data-test="accordion-content-non-closing"]');
10
13
  });
11
14
 
12
15
  it('is closed by default', () => {
13
- cy.get('[data-test="accordion-content"]').should('be.hidden');
16
+ cy.get('[data-test="accordion-content-taxonomy"]').should('be.hidden');
17
+ cy.get('[data-test="accordion-content-altIcons"]').should('be.hidden');
18
+ cy.get('[data-test="accordion-content-collapsed"]').should('be.hidden');
19
+ cy.get('[data-test="accordion-content-non-closing"]').should('be.hidden');
14
20
  });
15
21
 
16
22
  it('becomes visible on click', () => {
17
- cy.get('[data-test="accordion-trigger"]')
18
- .not('.mds-display-none')
19
- .click({ multiple: true });
20
- cy.get('[data-test="accordion-content"]').should('be.visible');
23
+ // Taxonomy
24
+ cy.get('[data-test="accordion-trigger-taxonomy"] button').click({ multiple: true });
25
+ cy.get('[data-test="accordion-content-taxonomy"]').should('be.visible');
26
+ // Alt Icons
27
+ cy.get('[data-test="accordion-trigger-altIcons"] button').click({ multiple: true });
28
+ cy.get('[data-test="accordion-content-altIcons"]').should('be.visible');
29
+ // Collapsed
30
+ cy.get('[data-test="accordion-trigger-collapsed"] button').click({ multiple: true });
31
+ cy.get('[data-test="accordion-content-collapsed"]').should('be.visible');
32
+ // non-closing
33
+ cy.get('[data-test="accordion-trigger-non-closing"] button').click({ multiple: true });
34
+ cy.get('[data-test="accordion-content-non-closing"]').should('be.visible');
21
35
  });
22
36
 
23
37
  it('has no detectable a11y violations after opening', () => {
24
- cy.get('[data-test="accordion-trigger"]')
25
- .not('.mds-display-none')
26
- .click({ multiple: true });
27
- cy.checkA11y('[data-test="accordion"]');
38
+ // Taxonomy
39
+ cy.get('[data-test="accordion-trigger-taxonomy"] button').not('.mds-display-none').click({ multiple: true });
40
+ cy.checkA11y('[data-test="accordion-content-taxonomy"]');
41
+ // Alt Icons
42
+ cy.get('[data-test="accordion-trigger-altIcons"] button').not('.mds-display-none').click({ multiple: true });
43
+ cy.checkA11y('[data-test="accordion-content-altIcons"]');
44
+ // Collapsed
45
+ cy.get('[data-test="accordion-trigger-collapsed"] button').not('.mds-display-none').click({ multiple: true });
46
+ cy.checkA11y('[data-test="accordion-content-collapsed"]');
47
+ // non-closing
48
+ cy.get('[data-test="accordion-trigger-non-closing"] button').not('.mds-display-none').click({ multiple: true });
49
+ cy.checkA11y('[data-test="accordion-content-non-closing"]');
28
50
  });
29
51
 
30
52
  it('has the correct labelledby attributes', () => {
31
- cy.get('[data-test="accordion-trigger"]')
32
- .not('.mds-display-none')
33
- .click({ multiple: true });
34
- cy.get('[data-test="accordion-content"]').each((content) => {
53
+ // Taxonomy
54
+ cy.get('[data-test="accordion-trigger-taxonomy"] button').not('.mds-display-none').click({ multiple: true });
55
+ cy.get('[data-test="accordion-content-taxonomy"]').each((content) => {
35
56
  const triggerId = content.attr('aria-labelledby');
57
+
36
58
  if (triggerId) {
37
59
  cy.get(`#${triggerId}`).should('exist');
38
60
  }
39
- });
40
- });
61
+ });;
62
+ // Alt Icons
63
+ cy.get('[data-test="accordion-trigger-altIcons"] button').not('.mds-display-none').click({ multiple: true });
64
+ cy.get('[data-test="accordion-content-altIcons"]').each((content) => {
65
+ const triggerId = content.attr('aria-labelledby');
66
+
67
+ if (triggerId) {
68
+ cy.get(`#${triggerId}`).should('exist');
69
+ }
70
+ });;
71
+ // Collapsed
72
+ cy.get('[data-test="accordion-trigger-collapsed"] button').not('.mds-display-none').click({ multiple: true });
73
+ cy.get('[data-test="accordion-content-collapsed"]').each((content) => {
74
+ const triggerId = content.attr('aria-labelledby');
41
75
 
42
- it('has the correct controls attribute', () => {
43
- cy.get('[data-test="accordion-trigger"] button').each((content) => {
44
- const controlId = content.attr('aria-controls');
45
- cy.get(`#${controlId}`).should('exist');
76
+ if (triggerId) {
77
+ cy.get(`#${triggerId}`).should('exist');
78
+ }
79
+ });;
80
+ // non-closing
81
+ cy.get('[data-test="accordion-trigger-non-closing"] button').not('.mds-display-none').click({ multiple: true });
82
+ cy.get('[data-test="accordion-content-non-closing"]').each((content) => {
83
+ const triggerId = content.attr('aria-labelledby');
84
+
85
+ if (triggerId) {
86
+ cy.get(`#${triggerId}`).should('exist');
87
+ }
46
88
  });
47
89
  });
48
90
  });
@@ -4,6 +4,7 @@ context('Button', () => {
4
4
  });
5
5
 
6
6
  it('has no detectable a11y violations on load', () => {
7
- cy.checkA11y('[data-test="button"]');
7
+ // Need to skip others due to contrast issues currently
8
+ cy.checkA11y('[data-test="button-plain"]');
8
9
  });
9
10
  });
@@ -4,6 +4,8 @@ context('Card', () => {
4
4
  });
5
5
 
6
6
  it('has no detectable a11y violations on load', () => {
7
- cy.checkA11y('[data-test="card"]');
7
+ cy.checkA11y('[data-test="card-default"]');
8
+ cy.checkA11y('[data-test="card-in-list"]');
9
+ cy.checkA11y('[data-test="card-with-background"]');
8
10
  });
9
11
  });
@@ -4,84 +4,59 @@ context('Combobox', () => {
4
4
  });
5
5
 
6
6
  it('has no detectable a11y violations on load', () => {
7
- cy.checkA11y('[data-test="combobox"]');
7
+ cy.checkA11y('[data-test="combobox-distance-selection"]');
8
+ cy.checkA11y('[data-test="combobox-keywords-lookup"]');
8
9
  });
9
10
 
10
11
  it('has no detectable a11y violations when the select is open', () => {
11
- const input = cy.get('[data-test="combobox"] input').first();
12
+ const input = cy.get('[data-test="combobox-distance-selection"] input').first();
13
+
12
14
  input.focus();
15
+ input.type('Within');
13
16
  cy.get('[role="listbox"]').should('be.visible');
14
- cy.checkA11y('[data-test="combobox"]');
17
+ cy.checkA11y('[data-test="combobox-distance-selection"]');
15
18
  });
16
19
 
17
20
  it('can be navigated with up and down arrows', () => {
18
- cy.get('[data-test="combobox"] input')
19
- .first()
20
- .focus()
21
- .type('{downArrow}');
22
- cy.get('[data-test="combobox"] input')
21
+ cy.get('[data-test="combobox-distance-selection"] input').first().focus().type('Within');
22
+ cy.get('[data-test="combobox-distance-selection"] input').first().focus().type('{downArrow}');
23
+ cy.get('[data-test="combobox-distance-selection"] input')
23
24
  .attribute('aria-activedescendant')
24
25
  .should('equal', 'distance-selection-option-0');
25
- cy.get('#distance-selection-option-0')
26
- .attribute('aria-selected')
27
- .should('equal', 'true');
28
- cy.get('[data-test="combobox"] input')
29
- .first()
30
- .focus()
31
- .type('{upArrow}');
32
- cy.get('[data-test="combobox"] input')
26
+ cy.get('#distance-selection-option-0').attribute('aria-selected').should('equal', 'true');
27
+ cy.get('[data-test="combobox-distance-selection"] input').first().focus().type('{upArrow}');
28
+ cy.get('[data-test="combobox-distance-selection"] input')
33
29
  .attribute('aria-activedescendant')
34
30
  .should('equal', 'distance-selection-option-3');
35
- cy.get('#distance-selection-option-3')
36
- .attribute('aria-selected')
37
- .should('equal', 'true');
31
+ cy.get('#distance-selection-option-3').attribute('aria-selected').should('equal', 'true');
38
32
  });
39
33
 
40
34
  it('has no detectable a11y violations when navigating', () => {
41
- const input = cy.get('[data-test="combobox"] input').first();
42
- input
43
- .focus()
44
- .type('{downArrow}')
45
- .type('{downArrow}');
46
- cy.checkA11y('[data-test="combobox"]');
35
+ const input = cy.get('[data-test="combobox-distance-selection"] input').first();
36
+
37
+ input.focus().type('{downArrow}').type('{downArrow}');
38
+ cy.checkA11y('[data-test="combobox-distance-selection"]');
47
39
  });
48
40
 
49
41
  it('has the correct home and end key behaviours', () => {
50
- cy.get('[data-test="combobox"] input')
51
- .first()
52
- .focus()
53
- .type('{end}');
54
- cy.get('#distance-selection-option-3')
55
- .attribute('aria-selected')
56
- .should('equal', 'true');
57
- cy.get('[data-test="combobox"] input')
58
- .first()
59
- .focus()
60
- .type('{home}');
61
- cy.get('#distance-selection-option-0')
62
- .attribute('aria-selected')
63
- .should('equal', 'true');
42
+ cy.get('[data-test="combobox-distance-selection"] input').first().focus().type('Within').type('{end}');
43
+ cy.get('#distance-selection-option-3').attribute('aria-selected').should('equal', 'true');
44
+ cy.get('[data-test="combobox-distance-selection"] input').first().focus().type('{home}');
45
+ cy.get('#distance-selection-option-0').attribute('aria-selected').should('equal', 'true');
64
46
  });
65
47
 
66
48
  it('closes correctly', () => {
67
- cy.get('[data-test="combobox"] input')
68
- .first()
69
- .focus()
70
- .type('{esc}');
49
+ cy.get('[data-test="combobox-distance-selection"] input').first().focus().type('Within').type('{esc}');
71
50
  cy.get('[role="listbox"]').should('not.be.visible');
72
- cy.get('[data-test="combobox"] input')
73
- .first()
74
- .focus()
75
- .type('{enter}');
51
+ cy.get('[data-test="combobox-distance-selection"] input').first().focus().type('{enter}');
76
52
  cy.get('[role="listbox"]').should('not.be.visible');
77
53
  });
78
54
 
79
55
  it('can perform a remote lookup', () => {
80
- const input = cy.get('[data-test="combobox"] input').last();
56
+ const input = cy.get('[data-test="combobox-keywords-lookup"] input').last();
57
+
81
58
  input.focus();
82
59
  input.type('h');
83
- cy.get('[data-test="combobox"] [role="option"]')
84
- .its('length')
85
- .should('be.gt', '0');
60
+ cy.get('[role="listbox"]').should('be.visible');
86
61
  });
87
62
  });
@@ -4,6 +4,15 @@ context('Input', () => {
4
4
  });
5
5
 
6
6
  it('has no detectable a11y violations on load', () => {
7
- cy.checkA11y('[data-test="input"]');
7
+ cy.checkA11y('[data-test="input-example-input"]');
8
+ cy.checkA11y('[data-test="input-optional-input"]');
9
+ cy.checkA11y('[data-test="input-value-input"]');
10
+ cy.checkA11y('[data-test="input-help-text-input"]');
11
+ cy.checkA11y('[data-test="input-help-and-error-input"]');
12
+ cy.checkA11y('[data-test="input-errored-input"]');
13
+ cy.checkA11y('[data-test="input-tooltip-input"]');
14
+ cy.checkA11y('[data-test="input-disabledInput"]');
15
+ cy.checkA11y('[data-test="input-input-with-placeholder"]');
16
+ cy.checkA11y('[data-test="input-input-with-hidden-label"]');
8
17
  });
9
18
  });
@@ -4,6 +4,12 @@ context('Pagination numbers', () => {
4
4
  });
5
5
 
6
6
  it('has no detectable a11y violations on load', () => {
7
- cy.checkA11y('[data-test="pagination-numbers"]');
7
+ cy.checkA11y('[data-test="pagination-numbers-32-7"]');
8
+ cy.checkA11y('[data-test="pagination-numbers-32-9"]');
9
+ cy.checkA11y('[data-test="pagination-numbers-32-32"]');
10
+ cy.checkA11y('[data-test="pagination-numbers-32-3"]');
11
+ cy.checkA11y('[data-test="pagination-numbers-3-2"]');
12
+ cy.checkA11y('[data-test="pagination-numbers-2-1"]');
13
+ cy.checkA11y('[data-test="pagination-numbers-8-3"]');
8
14
  });
9
15
  });
@@ -4,6 +4,9 @@ context('Pagination', () => {
4
4
  });
5
5
 
6
6
  it('has no detectable a11y violations on load', () => {
7
- cy.checkA11y('[data-test="pagination"]');
7
+ cy.checkA11y('[data-test="pagination-pag-1"]');
8
+ cy.checkA11y('[data-test="pagination-pag-2"]');
9
+ cy.checkA11y('[data-test="pagination-pag-3"]');
10
+ cy.checkA11y('[data-test="pagination-pag-4"]');
8
11
  });
9
12
  });
@@ -4,6 +4,8 @@ context('radio', () => {
4
4
  });
5
5
 
6
6
  it('has no detectable a11y violations on load', () => {
7
- cy.checkA11y('[data-test="radio"]');
7
+ cy.checkA11y('[data-test="radio-radio-input"]');
8
+ cy.checkA11y('[data-test="radio-inline-radio-input"]');
9
+ cy.checkA11y('[data-test="radio-stacked-radio-input-disabled"]');
8
10
  });
9
11
  });
@@ -4,27 +4,31 @@ context('Switch state', () => {
4
4
  });
5
5
 
6
6
  it('has no detectable a11y violations on load', () => {
7
- cy.checkA11y('[data-test="switch-state"]');
7
+ cy.checkA11y('[data-test="switch-state-save"]');
8
8
  });
9
9
 
10
10
  it('switches text on click', () => {
11
- const button = cy.get('[data-test="switch-state"]').first();
11
+ const button = cy.get('[data-test="switch-state-save"]').first();
12
+
12
13
  button.click();
13
14
  button.should('contain', 'Remove Job');
14
- const text = cy.get('[data-test="switch-state"]').last();
15
+
16
+ const text = cy.get('[data-test="switch-state-save"]').last();
17
+
15
18
  text.click();
16
19
  text.should('contain', 'Saved');
17
20
  });
18
21
 
19
22
  it('has no detectable a11y violations after switching state', () => {
20
- cy.get('[data-test="switch-state"]').click({ multiple: true });
21
- cy.checkA11y('[data-test="switch-state"]');
23
+ cy.get('[data-test="switch-state-save"]').click({ multiple: true });
24
+ cy.checkA11y('[data-test="switch-state-save"]');
22
25
  });
23
26
 
24
27
  it('reverts to its previous text on a second click', () => {
25
- cy.get('[data-test="switch-state"]').each((element) => {
26
- const inactive = element.children('[data-test="switch-state-default"]');
27
- const active = element.children('[data-test="switch-state-inverse"]');
28
+ cy.get('[data-test="switch-state-save"]').each((element) => {
29
+ const inactive = element.children('[data-test="switch-state-default-save"]');
30
+ const active = element.children('[data-test="switch-state-inverse-save"]');
31
+
28
32
  element.click();
29
33
  element.click();
30
34
  cy.wrap(inactive).should('be.visible');
@@ -4,14 +4,13 @@ context('Tabs', () => {
4
4
  });
5
5
 
6
6
  it('has no detectable a11y violations on load', () => {
7
- cy.checkA11y('[data-test="tabs"]');
7
+ cy.checkA11y('[data-test="tabs-range"]');
8
+ cy.checkA11y('[data-test="tabs-wild-pets"]');
8
9
  });
9
10
 
10
11
  it('can switch between tabs', () => {
11
- const unopenedTab = cy
12
- .get('[data-test=tabs-trigger]')
13
- .not('.mds-tabs__tab--selected')
14
- .first();
12
+ const unopenedTab = cy.get('[data-test=tabs-trigger-today]').first();
13
+
15
14
  unopenedTab.click();
16
15
  unopenedTab.invoke('attr', 'aria-controls').then((tabId) => {
17
16
  cy.get(`#${tabId}`).should('be.visible');
@@ -19,19 +18,15 @@ context('Tabs', () => {
19
18
  });
20
19
 
21
20
  it('has no detectable a11y violations on changing tabs', () => {
22
- const unopenedTab = cy
23
- .get('[data-test=tabs-trigger]')
24
- .not('.mds-tabs__tab--selected')
25
- .first();
21
+ const unopenedTab = cy.get('[data-test^=tabs-trigger-]').not('.mds-tabs__tab--selected').first();
22
+
26
23
  unopenedTab.click();
27
- cy.checkA11y('[data-test="tabs"]');
24
+ cy.checkA11y('[data-test^="tabs"]');
28
25
  });
29
26
 
30
27
  it('updates the url hash', () => {
31
- const unopenedTab = cy
32
- .get('[data-test=tabs-trigger]')
33
- .not('.mds-tabs__tab--selected')
34
- .first();
28
+ const unopenedTab = cy.get('[data-test^=tabs-trigger-]').not('.mds-tabs__tab--selected').first();
29
+
35
30
  unopenedTab.click();
36
31
  unopenedTab.invoke('attr', 'aria-controls').then((tabId) => {
37
32
  cy.hash().should('equal', `#${tabId}`);
@@ -4,6 +4,6 @@ context('Textarea', () => {
4
4
  });
5
5
 
6
6
  it('has no detectable a11y violations on load', () => {
7
- cy.checkA11y('[data-test="textarea"]');
7
+ cy.checkA11y('[data-test="textarea-example-textarea"]');
8
8
  });
9
9
  });
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 05 Jul 2021 09:31:54 GMT
3
+ * Generated on Wed, 07 Jul 2021 11:25:59 GMT
4
4
  */
5
5
 
6
6
  :root {
@@ -9,11 +9,11 @@
9
9
  --mds-color-brand-1-dark: #15598e;
10
10
  --mds-color-brand-1-darkest: #082135;
11
11
  --mds-color-brand-1-base: #1b75bb;
12
- --mds-color-brand-2-light: #fb9950;
13
- --mds-color-brand-2-lightest: #fef0e6;
14
- --mds-color-brand-2-dark: #e06305;
15
- --mds-color-brand-2-darkest: #3c1a01;
16
- --mds-color-brand-2-base: #fa7c1e;
12
+ --mds-color-brand-2-light: #f9007b;
13
+ --mds-color-brand-2-lightest: #ffe5f2;
14
+ --mds-color-brand-2-dark: #930049;
15
+ --mds-color-brand-2-darkest: #3d001e;
16
+ --mds-color-brand-2-base: #c60062;
17
17
  --mds-color-brand-3-light: #24e6d7;
18
18
  --mds-color-brand-3-lightest: #e8fcfb;
19
19
  --mds-color-brand-3-dark: #119389;
@@ -52,8 +52,8 @@
52
52
  --mds-color-text-headers-3: #222222;
53
53
  --mds-color-text-headers-base: #222222;
54
54
  --mds-color-border: #dddddd;
55
- --mds-color-button-bg-base: #fa7c1e;
56
- --mds-color-button-bg-hover: #fb9950;
55
+ --mds-color-button-bg-base: #c60062;
56
+ --mds-color-button-bg-hover: #f9007b;
57
57
  --mds-color-button-text-base: #ffffff;
58
58
  --mds-color-button-text-hover: #ffffff;
59
59
  --mds-color-button-border-base: rgba(0, 0, 0, 0);
@@ -81,8 +81,8 @@
81
81
  --mds-shadow-main: none;
82
82
  --mds-email-color-link-base: #1b75bb;
83
83
  --mds-email-color-link-hover: #15598e;
84
- --mds-email-color-button-bg-base: #fa7c1e;
85
- --mds-email-color-button-bg-hover: #fb9950;
84
+ --mds-email-color-button-bg-base: #c60062;
85
+ --mds-email-color-button-bg-hover: #f9007b;
86
86
  --mds-email-color-button-text-base: #ffffff;
87
87
  --mds-email-color-button-text-hover: #ffffff;
88
88
  --mds-email-color-button-border-base: rgba(0, 0, 0, 0);