govuk_publishing_components 62.2.1 → 62.3.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b14ee30fabb3db7ed08c6e18da64893341f1173eb25ce7af31ea9943d04396ac
4
- data.tar.gz: edce4972ce2cd377cec0ad3de2991a4dbcf42a3959f23d164dc47a610af7cb6c
3
+ metadata.gz: 877d3b494b073557d9eb1ead7a807dd6a1b669ede799d5cc14646f5b7dfe9e27
4
+ data.tar.gz: f5b477c3685c7405690997f8668477d65e45be54976e5115ff62e9b035e160be
5
5
  SHA512:
6
- metadata.gz: a0e490bcafa5edfdd2013aa4ef0e3c66628cfd734d5edf2e3ffbde3d50a21b54fdd5720931a68ec026aec99033d9b3c783e40dde03c78289857573209b9f0958
7
- data.tar.gz: cc9f3d8671616a1b69dcc8e0c092c735edd087211bda3f5c1d394b9383c79e9a479e4a431453fcbee3fe5ec736bde31446d1a882e510628ee318d5e0227f09b3
6
+ metadata.gz: 32838e5c58c4ccbe1c076cc94d210fac0d58a3d9573bb1f05dfba29d06c448a53b312fe8c8cebfb4b0737ffac4885520e2ea4894d5b22fd801ebf70c0ee80b38
7
+ data.tar.gz: ae7fbc9735a2e96482c6098a8c1e3f1f370e700f1da77f93ba5c11cd67bb51eb7e0e924fdf436f3666eed64d213006f8adfac19a3f1f0a7775917b32c04b95d3
@@ -10,7 +10,7 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
10
10
  applyOnInit: true,
11
11
  autoOutdent: false,
12
12
  outdentAll: false,
13
- chartVisibleText: 'Change to table and accessible view',
13
+ chartVisibleText: 'Change to table view',
14
14
  tableVisibleText: 'Change to chart view',
15
15
  chartAlertText: 'Chart visible',
16
16
  tableAlertText: 'Table visible',
@@ -418,17 +418,7 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
418
418
  }
419
419
 
420
420
  MagnaCharta.prototype.insert = function () {
421
- var label = document.createElement('span')
422
- var labelId = 'mc-chart-not-accessible-' + this.chartId
423
-
424
- label.innerHTML = 'This content is not accessible - switch to table'
425
- label.className = 'mc-hidden'
426
- label.id = labelId
427
-
428
- this.$graphContainer.setAttribute('aria-labelledby', labelId)
429
421
  this.$graphContainer.appendChild(this.$graph)
430
- this.$graphContainer.appendChild(label)
431
-
432
422
  this.$table.insertAdjacentElement('afterend', this.$graphContainer)
433
423
  }
434
424
 
@@ -20,6 +20,7 @@
20
20
  show_cross_service_header ||= false
21
21
  draft_watermark ||= false
22
22
  title ||= "GOV.UK - The best place to find government services and information"
23
+ title_lang ||= nil
23
24
 
24
25
  show_account_layout ||= false
25
26
  account_nav_location ||= nil
@@ -34,7 +35,7 @@
34
35
  <html class="govuk-template govuk-template--rebranded" lang="<%= html_lang %>">
35
36
  <head>
36
37
  <meta charset="utf-8">
37
- <title><%= title %></title>
38
+ <%= tag.title title, lang: title_lang %>
38
39
 
39
40
  <%= javascript_include_tag "govuk_publishing_components/vendor/lux/lux-measurer", { async: true } %>
40
41
  <%= javascript_include_tag "govuk_publishing_components/rum-custom-data", type: "module" %>
@@ -126,3 +126,9 @@ examples:
126
126
  cookie_preferences:
127
127
  text: How GOV.UK accounts use cookies
128
128
  href: https://www.gov.uk/government/publications/govuk-accounts-trial-full-privacy-notice-and-accessibility-statement
129
+ with_title_lang_attribute:
130
+ data:
131
+ title: 'Example layout'
132
+ title_lang: 'cy'
133
+ block: |
134
+ <h1>Page content goes here</h1>
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = "62.2.1".freeze
2
+ VERSION = "62.3.0".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_publishing_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 62.2.1
4
+ version: 62.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev
@@ -2120,7 +2120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
2120
2120
  - !ruby/object:Gem::Version
2121
2121
  version: '0'
2122
2122
  requirements: []
2123
- rubygems_version: 4.0.0
2123
+ rubygems_version: 4.0.1
2124
2124
  specification_version: 4
2125
2125
  summary: A gem to document components in GOV.UK frontend applications
2126
2126
  test_files: []