govuk_publishing_components 21.22.1 → 21.22.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -3
  3. data/app/assets/stylesheets/govuk_publishing_components/components/_breadcrumbs.scss +34 -0
  4. data/app/assets/stylesheets/govuk_publishing_components/components/_document-list.scss +2 -2
  5. data/app/views/govuk_publishing_components/components/_breadcrumbs.html.erb +0 -3
  6. data/app/views/govuk_publishing_components/components/_contextual_breadcrumbs.html.erb +0 -2
  7. data/lib/govuk_publishing_components/version.rb +1 -1
  8. data/node_modules/axe-core/CHANGELOG.md +70 -10
  9. data/node_modules/axe-core/axe.js +1295 -632
  10. data/node_modules/axe-core/axe.min.js +2 -2
  11. data/node_modules/axe-core/bower.json +1 -1
  12. data/node_modules/axe-core/doc/API.md +1 -0
  13. data/node_modules/axe-core/doc/aria-supported.md +0 -1
  14. data/node_modules/axe-core/doc/developer-guide.md +2 -2
  15. data/node_modules/axe-core/doc/rule-descriptions.md +91 -87
  16. data/node_modules/axe-core/lib/checks/aria/abstractrole.js +10 -1
  17. data/node_modules/axe-core/lib/checks/aria/abstractrole.json +4 -1
  18. data/node_modules/axe-core/lib/checks/aria/fallbackrole.js +1 -0
  19. data/node_modules/axe-core/lib/checks/aria/fallbackrole.json +11 -0
  20. data/node_modules/axe-core/lib/checks/aria/invalidrole.js +14 -3
  21. data/node_modules/axe-core/lib/checks/aria/invalidrole.json +4 -1
  22. data/node_modules/axe-core/lib/checks/aria/required-children.js +41 -30
  23. data/node_modules/axe-core/lib/checks/aria/valid-attr-value.js +24 -9
  24. data/node_modules/axe-core/lib/checks/aria/valid-attr-value.json +2 -2
  25. data/node_modules/axe-core/lib/checks/color/color-contrast.js +23 -7
  26. data/node_modules/axe-core/lib/checks/color/color-contrast.json +7 -1
  27. data/node_modules/axe-core/lib/checks/keyboard/focusable-disabled.js +5 -0
  28. data/node_modules/axe-core/lib/checks/keyboard/focusable-modal-open.js +14 -0
  29. data/node_modules/axe-core/lib/checks/keyboard/focusable-modal-open.json +11 -0
  30. data/node_modules/axe-core/lib/checks/keyboard/focusable-not-tabbable.js +5 -0
  31. data/node_modules/axe-core/lib/checks/keyboard/page-has-elm.js +5 -1
  32. data/node_modules/axe-core/lib/checks/keyboard/page-no-duplicate-after.js +2 -0
  33. data/node_modules/axe-core/lib/checks/keyboard/page-no-duplicate-banner.json +1 -0
  34. data/node_modules/axe-core/lib/checks/keyboard/page-no-duplicate-contentinfo.json +1 -0
  35. data/node_modules/axe-core/lib/checks/keyboard/page-no-duplicate-main.json +1 -0
  36. data/node_modules/axe-core/lib/checks/keyboard/page-no-duplicate.js +14 -2
  37. data/node_modules/axe-core/lib/checks/lists/only-listitems.js +43 -49
  38. data/node_modules/axe-core/lib/checks/lists/only-listitems.json +4 -1
  39. data/node_modules/axe-core/lib/checks/media/no-autoplay-audio.js +93 -0
  40. data/node_modules/axe-core/lib/checks/media/no-autoplay-audio.json +15 -0
  41. data/node_modules/axe-core/lib/checks/navigation/identical-links-same-purpose-after.js +100 -0
  42. data/node_modules/axe-core/lib/checks/navigation/identical-links-same-purpose.js +31 -0
  43. data/node_modules/axe-core/lib/checks/navigation/identical-links-same-purpose.json +12 -0
  44. data/node_modules/axe-core/lib/checks/navigation/region.js +42 -8
  45. data/node_modules/axe-core/lib/checks/navigation/region.json +0 -1
  46. data/node_modules/axe-core/lib/checks/shared/svg-non-empty-title.js +4 -0
  47. data/node_modules/axe-core/lib/checks/shared/svg-non-empty-title.json +11 -0
  48. data/node_modules/axe-core/lib/commons/aria/index.js +12 -4
  49. data/node_modules/axe-core/lib/commons/color/get-background-color.js +5 -157
  50. data/node_modules/axe-core/lib/commons/dom/get-element-stack.js +272 -174
  51. data/node_modules/axe-core/lib/commons/dom/is-focusable.js +3 -1
  52. data/node_modules/axe-core/lib/commons/dom/is-hidden-with-css.js +2 -2
  53. data/node_modules/axe-core/lib/commons/dom/is-modal-open.js +98 -0
  54. data/node_modules/axe-core/lib/commons/dom/is-visible.js +57 -2
  55. data/node_modules/axe-core/lib/commons/dom/url-props-from-attribute.js +143 -0
  56. data/node_modules/axe-core/lib/commons/dom/visually-contains.js +62 -12
  57. data/node_modules/axe-core/lib/commons/matches/attributes.js +12 -8
  58. data/node_modules/axe-core/lib/commons/matches/from-definition.js +15 -10
  59. data/node_modules/axe-core/lib/commons/matches/index.js +11 -9
  60. data/node_modules/axe-core/lib/commons/matches/node-name.js +11 -21
  61. data/node_modules/axe-core/lib/commons/matches/properties.js +12 -9
  62. data/node_modules/axe-core/lib/commons/text/unicode.js +27 -24
  63. data/node_modules/axe-core/lib/core/base/virtual-node/virtual-node.js +11 -3
  64. data/node_modules/axe-core/lib/core/constants.js +1 -1
  65. data/node_modules/axe-core/lib/core/reporters/v1.js +6 -3
  66. data/node_modules/axe-core/lib/core/utils/contains.js +1 -1
  67. data/node_modules/axe-core/lib/core/utils/is-hidden.js +6 -6
  68. data/node_modules/axe-core/lib/core/utils/matches.js +263 -0
  69. data/node_modules/axe-core/lib/core/utils/preload-media.js +65 -0
  70. data/node_modules/axe-core/lib/core/utils/preload.js +33 -24
  71. data/node_modules/axe-core/lib/core/utils/qsa.js +7 -208
  72. data/node_modules/axe-core/lib/rules/aria-hidden-focus.json +5 -1
  73. data/node_modules/axe-core/lib/rules/aria-roles.json +1 -1
  74. data/node_modules/axe-core/lib/rules/button-name.json +1 -1
  75. data/node_modules/axe-core/lib/rules/color-contrast-matches.js +1 -1
  76. data/node_modules/axe-core/lib/rules/color-contrast.json +0 -3
  77. data/node_modules/axe-core/lib/rules/html-namespace-matches.js +1 -0
  78. data/node_modules/axe-core/lib/rules/identical-links-same-purpose-matches.js +13 -0
  79. data/node_modules/axe-core/lib/rules/identical-links-same-purpose.json +14 -0
  80. data/node_modules/axe-core/lib/rules/landmark-no-duplicate-banner.json +1 -1
  81. data/node_modules/axe-core/lib/rules/landmark-no-duplicate-contentinfo.json +1 -1
  82. data/node_modules/axe-core/lib/rules/landmark-no-duplicate-main.json +12 -0
  83. data/node_modules/axe-core/lib/rules/landmark-one-main.json +2 -2
  84. data/node_modules/axe-core/lib/rules/link-name.json +2 -4
  85. data/node_modules/axe-core/lib/rules/meta-viewport.json +1 -1
  86. data/node_modules/axe-core/lib/rules/no-autoplay-audio-matches.js +18 -0
  87. data/node_modules/axe-core/lib/rules/no-autoplay-audio.json +15 -0
  88. data/node_modules/axe-core/lib/rules/region.json +1 -2
  89. data/node_modules/axe-core/lib/rules/role-img-alt.json +2 -1
  90. data/node_modules/axe-core/lib/rules/svg-img-alt.json +24 -0
  91. data/node_modules/axe-core/lib/rules/svg-namespace-matches.js +1 -0
  92. data/node_modules/axe-core/locales/da.json +782 -0
  93. data/node_modules/axe-core/locales/fr.json +221 -42
  94. data/node_modules/axe-core/locales/ja.json +124 -24
  95. data/node_modules/axe-core/package.json +29 -26
  96. data/node_modules/axe-core/sri-history.json +26 -10
  97. metadata +27 -9
  98. data/node_modules/axe-core/doc/examples/jasmine/package-lock.json +0 -1489
  99. data/node_modules/axe-core/doc/examples/jest_react/package-lock.json +0 -7525
  100. data/node_modules/axe-core/doc/examples/mocha/package-lock.json +0 -1671
  101. data/node_modules/axe-core/doc/examples/phantomjs/package-lock.json +0 -862
  102. data/node_modules/axe-core/doc/examples/qunit/package-lock.json +0 -2951
  103. data/node_modules/axe-core/lib/checks/navigation/region-after.js +0 -1
  104. data/node_modules/axe-core/typings/axe-core/axe-core-tests.js +0 -151
@@ -1 +0,0 @@
1
- return [results[0]];
@@ -1,151 +0,0 @@
1
- "use strict";
2
- exports.__esModule = true;
3
- var axe = require("../../axe");
4
- var context = document;
5
- var $fixture = {};
6
- axe.run(context, {}, function (error, results) {
7
- if (error) {
8
- console.log(error);
9
- }
10
- console.log(results.passes.length);
11
- console.log(results.incomplete.length);
12
- console.log(results.inapplicable.length);
13
- console.log(results.violations.length);
14
- console.log(results.violations[0].nodes[0].failureSummary);
15
- });
16
- axe.run().then(function (done) {
17
- done();
18
- });
19
- // additional configuration options
20
- axe.run(context, { iframes: false, selectors: false, elementRef: false }, function (error, results) {
21
- console.log(error || results.passes.length);
22
- });
23
- // axe.run include/exclude
24
- axe.run({ include: [['#id1'], ['#id2']] }, {}, function (error, results) {
25
- console.log(error || results);
26
- });
27
- axe.run({ exclude: [$fixture[0]] }, {}, function (error, results) {
28
- console.log(error || results);
29
- });
30
- // additional configuration options
31
- axe.run(context, { iframes: false, selectors: false, elementRef: false }, function (error, results) {
32
- console.log(error || results.passes.length);
33
- });
34
- var tagConfigRunOnly = {
35
- type: 'tag',
36
- values: ['wcag2a']
37
- };
38
- var tagConfig = {
39
- runOnly: tagConfigRunOnly
40
- };
41
- axe.run(context, tagConfig, function (error, results) {
42
- console.log(error || results);
43
- });
44
- axe.run(context, {
45
- runOnly: {
46
- type: 'tags',
47
- values: ['wcag2a', 'wcag2aa']
48
- }
49
- }, function (error, results) {
50
- console.log(error || results);
51
- });
52
- axe.run(context, {
53
- runOnly: ['wcag2a', 'wcag2aa']
54
- }, function (error, results) {
55
- console.log(error || results);
56
- });
57
- axe.run(context, {
58
- runOnly: ['color-contrast', 'heading-order']
59
- }, function (error, results) {
60
- console.log(error || results);
61
- });
62
- var someRulesConfig = {
63
- rules: {
64
- 'color-contrast': { enabled: 'false' },
65
- 'heading-order': { enabled: 'true' }
66
- }
67
- };
68
- axe.run(context, someRulesConfig, function (error, results) {
69
- console.log(error || results);
70
- });
71
- // axe.configure
72
- var spec = {
73
- branding: {
74
- brand: 'foo',
75
- application: 'bar'
76
- },
77
- reporter: 'v1',
78
- checks: [
79
- {
80
- id: 'custom-check',
81
- evaluate: function () {
82
- return true;
83
- }
84
- }
85
- ],
86
- rules: [
87
- {
88
- id: 'custom-rule',
89
- any: ['custom-check']
90
- }
91
- ]
92
- };
93
- axe.configure(spec);
94
- var source = axe.source;
95
- axe.reset();
96
- axe.getRules(['wcag2aa']);
97
- typeof axe.getRules() === 'object';
98
- var rules = axe.getRules();
99
- rules.forEach(function (rule) {
100
- rule.ruleId.substr(1234);
101
- });
102
- // Plugins
103
- var pluginSrc = {
104
- id: 'doStuff',
105
- run: function (data, callback) {
106
- callback();
107
- },
108
- commands: [
109
- {
110
- id: 'run-doStuff',
111
- callback: function (data, callback) {
112
- axe.plugins['doStuff'].run(data, callback);
113
- }
114
- }
115
- ]
116
- };
117
- axe.registerPlugin(pluginSrc);
118
- axe.cleanup();
119
- axe.configure({
120
- locale: {
121
- checks: {
122
- foo: {
123
- fail: 'failure',
124
- pass: 'success',
125
- incomplete: {
126
- foo: 'nar'
127
- }
128
- }
129
- }
130
- }
131
- });
132
- axe.configure({
133
- locale: {
134
- lang: 'foo',
135
- rules: {
136
- foo: {
137
- description: 'desc',
138
- help: 'help'
139
- }
140
- },
141
- checks: {
142
- foo: {
143
- pass: 'pass',
144
- fail: 'fail',
145
- incomplete: {
146
- foo: 'bar'
147
- }
148
- }
149
- }
150
- }
151
- });