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 +4 -4
- data/app/assets/javascripts/govuk_publishing_components/lib/govspeak/magna-charta.js +1 -11
- data/app/views/govuk_publishing_components/components/_layout_for_public.html.erb +2 -1
- data/app/views/govuk_publishing_components/components/docs/layout_for_public.yml +6 -0
- data/lib/govuk_publishing_components/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 877d3b494b073557d9eb1ead7a807dd6a1b669ede799d5cc14646f5b7dfe9e27
|
|
4
|
+
data.tar.gz: f5b477c3685c7405690997f8668477d65e45be54976e5115ff62e9b035e160be
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
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
|
-
|
|
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>
|
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.
|
|
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.
|
|
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: []
|