govuk_publishing_components 35.3.5 → 35.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/component_guide/audit-filter.js +81 -0
  3. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-form-tracker.js +1 -1
  4. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-link-tracker.js +7 -3
  5. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-specialist-link-tracker.js +8 -1
  6. data/app/assets/javascripts/govuk_publishing_components/components/step-by-step-nav.js +1 -1
  7. data/app/assets/javascripts/govuk_publishing_components/vendor/lux/lux-reporter.js +245 -176
  8. data/app/assets/stylesheets/component_guide/application.scss +16 -0
  9. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-super-navigation-header.scss +0 -5
  10. data/app/assets/stylesheets/govuk_publishing_components/components/_search.scss +0 -12
  11. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_attachment.scss +0 -11
  12. data/app/models/govuk_publishing_components/audit_applications.rb +14 -0
  13. data/app/models/govuk_publishing_components/audit_comparer.rb +14 -0
  14. data/app/models/govuk_publishing_components/audit_components.rb +34 -32
  15. data/app/views/govuk_publishing_components/audit/_applications.html.erb +40 -32
  16. data/app/views/govuk_publishing_components/audit/_component_contents.html.erb +56 -12
  17. data/app/views/govuk_publishing_components/audit/_components.html.erb +9 -7
  18. data/app/views/govuk_publishing_components/audit/show.html.erb +5 -1
  19. data/app/views/govuk_publishing_components/components/_hint.html.erb +5 -1
  20. data/app/views/govuk_publishing_components/components/_label.html.erb +6 -6
  21. data/app/views/govuk_publishing_components/components/_share_links.html.erb +2 -2
  22. data/app/views/govuk_publishing_components/components/_step_by_step_nav.html.erb +2 -1
  23. data/app/views/govuk_publishing_components/components/docs/hint.yml +1 -1
  24. data/lib/generators/govuk_publishing_components/component_generator.rb +2 -2
  25. data/lib/govuk_publishing_components/presenters/related_navigation_helper.rb +8 -8
  26. data/lib/govuk_publishing_components/version.rb +1 -1
  27. data/node_modules/axe-core/README.md +1 -3
  28. data/node_modules/axe-core/axe.js +4385 -1157
  29. data/node_modules/axe-core/axe.min.js +2 -2
  30. data/node_modules/axe-core/locales/_template.json +12 -0
  31. data/node_modules/axe-core/package.json +2 -1
  32. data/node_modules/axe-core/sri-history.json +4 -0
  33. metadata +3 -2
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = "35.3.5".freeze
2
+ VERSION = "35.5.0".freeze
3
3
  end
@@ -14,14 +14,12 @@ Axe is an accessibility testing engine for websites and other HTML-based user in
14
14
 
15
15
  ## The Accessibility Rules
16
16
 
17
- Axe-core has different types of rules, for WCAG 2.0 and 2.1 on level A and AA, as well as a number of best practices that help you identify common accessibility practices like ensuring every page has an `h1` heading, and to help you avoid "gotchas" in ARIA like where an ARIA attribute you used will get ignored.
17
+ Axe-core has different types of rules, for WCAG 2.0, 2.1, 2.2 on level A, AA and AAA as well as a number of best practices that help you identify common accessibility practices like ensuring every page has an `h1` heading, and to help you avoid "gotchas" in ARIA like where an ARIA attribute you used will get ignored. The complete list of rules, grouped WCAG level and best practice, can found in [doc/rule-descriptions.md](./doc/rule-descriptions.md).
18
18
 
19
19
  With axe-core, you can find **on average 57% of WCAG issues automatically**. Additionally, axe-core will return elements as "incomplete" where axe-core could not be certain, and manual review is needed.
20
20
 
21
21
  To catch bugs earlier in the development cycle we recommend using the [axe-linter vscode extension](https://marketplace.visualstudio.com/items?itemName=deque-systems.vscode-axe-linter). To improve test coverage even further we recommend the [intelligent guided tests](https://www.youtube.com/watch?v=AtsX0dPCG_4&feature=youtu.be&ab_channel=DequeSystems) in the [axe Extension](https://www.deque.com/axe/browser-extensions/).
22
22
 
23
- The complete list of rules, grouped WCAG level and best practice, can found in [doc/rule-descriptions.md](./doc/rule-descriptions.md).
24
-
25
23
  ## Getting started
26
24
 
27
25
  First download the package: