govuk_publishing_components 31.1.2 → 32.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (24) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/govuk_publishing_components/action-link-arrow--blue.svg +8 -2
  3. data/app/assets/javascripts/govuk_publishing_components/analytics/track-click.js +1 -1
  4. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-ecommerce-tracker.js +10 -5
  5. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-event-tracker.js +2 -2
  6. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-page-views.js +10 -3
  7. data/app/assets/stylesheets/govuk_publishing_components/components/_feedback.scss +81 -73
  8. data/app/views/govuk_publishing_components/components/_layout_super_navigation_header.html.erb +25 -1
  9. data/app/views/govuk_publishing_components/components/feedback/_problem_form.html.erb +20 -11
  10. data/app/views/govuk_publishing_components/components/feedback/_survey_signup_form.html.erb +20 -10
  11. data/app/views/govuk_publishing_components/components/feedback/_yes_no_banner.html.erb +44 -39
  12. data/config/locales/en.yml +1 -1
  13. data/lib/govuk_publishing_components/version.rb +1 -1
  14. data/node_modules/axe-core/README.md +7 -6
  15. data/node_modules/axe-core/axe.d.ts +1 -0
  16. data/node_modules/axe-core/axe.js +8911 -7204
  17. data/node_modules/axe-core/axe.min.js +2 -2
  18. data/node_modules/axe-core/locales/_template.json +1067 -0
  19. data/node_modules/axe-core/locales/fr.json +1 -1
  20. data/node_modules/axe-core/locales/he.json +1015 -0
  21. data/node_modules/axe-core/locales/no_NB.json +797 -0
  22. data/node_modules/axe-core/package.json +57 -59
  23. data/node_modules/axe-core/sri-history.json +4 -0
  24. metadata +5 -2
@@ -78,9 +78,9 @@ The [axe-core API](doc/API.md) fully supports the following browsers:
78
78
  - Google Chrome v42 and above
79
79
  - Mozilla Firefox v38 and above
80
80
  - Apple Safari v7 and above
81
- - Internet Explorer v11
81
+ - Internet Explorer v11 (DEPRECATED)
82
82
 
83
- Support means that we will fix bugs and attempt to test each browser regularly. Only Firefox, Chrome, and Internet Explorer 11 are currently tested on every pull request.
83
+ Support means that we will fix bugs and attempt to test each browser regularly. Only Chrome and Firefox are currently tested on every pull request.
84
84
 
85
85
  There is limited support for JSDOM. We will attempt to make all rules compatible with JSDOM but where this is not possible, we recommend turning those rules off. Currently the `color-contrast` rule is known not to work with JSDOM.
86
86
 
@@ -103,9 +103,9 @@ or equivalently:
103
103
 
104
104
  `npm run build -- --lang=nl`
105
105
 
106
- This will create a new build for axe, called `axe.<lang>.js` and `axe.<lang>.min.js`. If you want to build localized versions, simply pass in `--all-lang` instead. If you want to build multiple localized versions (but not all of them), you can pass in a comma-separated list of langages to the `--lang` flag, like `--lang=nl,ja`.
106
+ This will create a new build for axe, called `axe.<lang>.js` and `axe.<lang>.min.js`. If you want to build localized versions, simply pass in `--all-lang` instead. If you want to build multiple localized versions (but not all of them), you can pass in a comma-separated list of languages to the `--lang` flag, like `--lang=nl,ja`.
107
107
 
108
- To create a new translation for axe, start by running `grunt translate --lang=<langcode>`. This will create a json file fin the `./locales` directory, with the default English text in it for you to translate. We welcome any localization for axe-core. For details on how to contribute, see the Contributing section below. For details on the message syntax, see [Check Message Template](/docs/check-message-template.md).
108
+ To create a new translation for axe, start by running `grunt translate --lang=<langcode>`. This will create a json file fin the `./locales` directory, with the default English text in it for you to translate. Alternatively, you could copy `./locales/_template.json`. We welcome any localization for axe-core. For details on how to contribute, see the Contributing section below. For details on the message syntax, see [Check Message Template](/docs/check-message-template.md).
109
109
 
110
110
  To update existing translation file, re-run `grunt translate --lang=<langcode>`. This will add new messages used in English and remove messages which were not used in English.
111
111
 
@@ -127,8 +127,7 @@ axe.configure({
127
127
  },
128
128
  'aria-errormessage': {
129
129
  // Note: doT (https://github.com/olado/dot) templates are supported here.
130
- fail:
131
- 'Der Wert der aria-errormessage ${data.values}` muss eine Technik verwenden, um die Message anzukündigen (z. B., aria-live, aria-describedby, role=alert, etc.).'
130
+ fail: 'Der Wert der aria-errormessage ${data.values}` muss eine Technik verwenden, um die Message anzukündigen (z. B., aria-live, aria-describedby, role=alert, etc.).'
132
131
  }
133
132
  // ...
134
133
  }
@@ -145,8 +144,10 @@ Axe-core supports the following locales. Do note that since locales are contribu
145
144
  - Dutch
146
145
  - French
147
146
  - German
147
+ - Hebrew
148
148
  - Japanese
149
149
  - Korean
150
+ - Norwegian (Bokmål)
150
151
  - Polish
151
152
  - Portuguese (Brazilian)
152
153
  - Spanish
@@ -250,6 +250,7 @@ declare namespace axe {
250
250
  help: string;
251
251
  helpUrl: string;
252
252
  tags: string[];
253
+ actIds?: string[];
253
254
  }
254
255
  interface SerialDqElement {
255
256
  source: string;