govuk_publishing_components 23.15.0 → 24.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/govuk_publishing_components/components/cookie-banner.js +0 -4
- data/app/assets/javascripts/govuk_publishing_components/components/step-by-step-nav.js +23 -14
- data/app/assets/stylesheets/govuk_publishing_components/_all_components.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/component_support.scss +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_error-alert.scss +4 -4
- data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav.scss +101 -48
- data/app/assets/stylesheets/govuk_publishing_components/components/_success-alert.scss +8 -8
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_contact.scss +0 -5
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_step-by-step-nav.scss +2 -2
- data/app/views/govuk_publishing_components/components/_document_list.html.erb +10 -1
- data/app/views/govuk_publishing_components/components/docs/contextual_sidebar.yml +5 -0
- data/app/views/govuk_publishing_components/components/docs/document_list.yml +18 -0
- data/app/views/govuk_publishing_components/components/docs/govspeak.yml +3 -3
- data/config/initializers/assets.rb +0 -1
- data/lib/govuk_publishing_components/presenters/contextual_navigation.rb +61 -2
- data/lib/govuk_publishing_components/version.rb +1 -1
- data/node_modules/govuk-frontend/govuk/all.js +1 -1
- data/node_modules/govuk-frontend/govuk/components/_all.scss +1 -0
- data/node_modules/govuk-frontend/govuk/components/breadcrumbs/fixtures.json +10 -10
- data/node_modules/govuk-frontend/govuk/components/breadcrumbs/template.njk +2 -2
- data/node_modules/govuk-frontend/govuk/components/button/_index.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/character-count/_index.scss +1 -0
- data/node_modules/govuk-frontend/govuk/components/character-count/character-count.js +1 -1
- data/node_modules/govuk-frontend/govuk/components/character-count/fixtures.json +13 -0
- data/node_modules/govuk-frontend/govuk/components/cookie-banner/_cookie-banner.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/cookie-banner/_index.scss +51 -0
- data/node_modules/govuk-frontend/govuk/components/cookie-banner/fixtures.json +425 -0
- data/node_modules/govuk-frontend/govuk/components/cookie-banner/macro-options.json +132 -0
- data/node_modules/govuk-frontend/govuk/components/cookie-banner/macro.njk +3 -0
- data/node_modules/govuk-frontend/govuk/components/cookie-banner/template.njk +63 -0
- data/node_modules/govuk-frontend/govuk/components/details/fixtures.json +2 -2
- data/node_modules/govuk-frontend/govuk/components/header/fixtures.json +18 -18
- data/node_modules/govuk-frontend/govuk/components/header/template.njk +4 -4
- data/node_modules/govuk-frontend/govuk/components/table/_index.scss +21 -0
- data/node_modules/govuk-frontend/govuk/components/table/macro-options.json +2 -2
- data/node_modules/govuk-frontend/govuk/objects/_all.scss +1 -0
- data/node_modules/govuk-frontend/govuk/objects/_button-group.scss +94 -0
- data/node_modules/govuk-frontend/package.json +1 -1
- metadata +9 -17
- data/app/assets/images/govuk_publishing_components/chevron-banner/chevron-banner-small-focus.svg +0 -4
- data/app/assets/images/govuk_publishing_components/chevron-banner/chevron-banner-small.svg +0 -4
- data/app/assets/javascripts/govuk_publishing_components/components/header.js +0 -8
- data/app/assets/javascripts/govuk_publishing_components/lib/auto-track-event.js +0 -31
- data/app/assets/stylesheets/govuk_publishing_components/components/_chevron-banner.scss +0 -138
- data/app/assets/stylesheets/govuk_publishing_components/components/_list.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_variables.scss +0 -27
- data/app/assets/stylesheets/govuk_publishing_components/components/mixins/_back-arrow.scss +0 -13
- data/app/assets/stylesheets/govuk_publishing_components/components/mixins/_clearfix.scss +0 -8
- data/app/views/govuk_publishing_components/components/_chevron_banner.html.erb +0 -19
- data/app/views/govuk_publishing_components/components/_subscription-links.html.erb +0 -85
- data/app/views/govuk_publishing_components/components/_translation-nav.html.erb +0 -33
- data/app/views/govuk_publishing_components/components/docs/chevron_banner.yml +0 -33
- data/app/views/govuk_publishing_components/components/docs/subscription-links.yml +0 -103
- data/app/views/govuk_publishing_components/components/docs/translation-nav.yml +0 -139
@@ -1,139 +0,0 @@
|
|
1
|
-
# DO NOT MAKE CHANGES TO THIS FILE
|
2
|
-
# It is a temporary copy of translation_nav.yml and will be deleted shortly
|
3
|
-
|
4
|
-
name: Translation navigation
|
5
|
-
description: A list of links to available translations
|
6
|
-
body: The active property indicates the current language.
|
7
|
-
accessibility_criteria: |
|
8
|
-
The component must:
|
9
|
-
|
10
|
-
- be [a landmark with a navigation role](https://accessibility.blog.gov.uk/2016/05/27/using-navigation-landmarks/)
|
11
|
-
- have an accessible name in the current language, eg "Translations"
|
12
|
-
|
13
|
-
The translation links must:
|
14
|
-
|
15
|
-
- [identify the language of the text](https://www.w3.org/TR/UNDERSTANDING-WCAG20/meaning-other-lang-id.html#meaning-other-lang-id-examples-head)
|
16
|
-
|
17
|
-
[Watch a screen reader pronounce text differently based on lang attribute](https://bit.ly/screenreaderpronunciation)
|
18
|
-
shared_accessibility_criteria:
|
19
|
-
- link
|
20
|
-
examples:
|
21
|
-
default:
|
22
|
-
data:
|
23
|
-
translations:
|
24
|
-
- locale: 'en'
|
25
|
-
base_path: '/en'
|
26
|
-
text: 'English'
|
27
|
-
active: true
|
28
|
-
- locale: 'hi'
|
29
|
-
base_path: '/hi'
|
30
|
-
text: 'हिंदी'
|
31
|
-
multiple_translations:
|
32
|
-
data:
|
33
|
-
translations:
|
34
|
-
- locale: 'en'
|
35
|
-
base_path: '/en'
|
36
|
-
text: 'English'
|
37
|
-
active: true
|
38
|
-
- locale: 'fr'
|
39
|
-
base_path: '/fr'
|
40
|
-
text: 'Français'
|
41
|
-
- locale: 'hi'
|
42
|
-
base_path: '/hi'
|
43
|
-
text: 'हिंदी'
|
44
|
-
- locale: 'ja'
|
45
|
-
base_path: '/ja'
|
46
|
-
text: '日本語'
|
47
|
-
- locale: 'ur'
|
48
|
-
base_path: '/ur'
|
49
|
-
text: 'اردو'
|
50
|
-
- locale: 'zh'
|
51
|
-
base_path: '/zh'
|
52
|
-
text: '中文'
|
53
|
-
right_to_left:
|
54
|
-
data:
|
55
|
-
translations:
|
56
|
-
- locale: 'en'
|
57
|
-
base_path: '/en'
|
58
|
-
text: 'English'
|
59
|
-
- locale: 'ar'
|
60
|
-
base_path: '/ar'
|
61
|
-
text: 'العربية'
|
62
|
-
active: true
|
63
|
-
context:
|
64
|
-
right_to_left: true
|
65
|
-
with_branding:
|
66
|
-
description: Organisation [colour branding](https://github.com/alphagov/govuk_publishing_components/blob/master/docs/component_branding.md) can be added to the component as shown.
|
67
|
-
data:
|
68
|
-
brand: 'wales-office'
|
69
|
-
translations:
|
70
|
-
- locale: 'en'
|
71
|
-
base_path: '/en'
|
72
|
-
text: 'English'
|
73
|
-
active: true
|
74
|
-
- locale: 'cy'
|
75
|
-
base_path: '/cy'
|
76
|
-
text: 'Cymraeg'
|
77
|
-
with_no_top_margin:
|
78
|
-
data:
|
79
|
-
no_margin_top: true
|
80
|
-
translations:
|
81
|
-
- locale: 'en'
|
82
|
-
base_path: '/en'
|
83
|
-
text: 'English'
|
84
|
-
active: true
|
85
|
-
- locale: 'cy'
|
86
|
-
base_path: '/cy'
|
87
|
-
text: 'Cymraeg'
|
88
|
-
with_tracking:
|
89
|
-
description: Data attributes can be passed for each link as shown.
|
90
|
-
data:
|
91
|
-
translations:
|
92
|
-
- locale: 'en'
|
93
|
-
base_path: '/en'
|
94
|
-
text: 'English'
|
95
|
-
active: true
|
96
|
-
data_attributes:
|
97
|
-
track_category: 'categoryEnglish'
|
98
|
-
track_action: 1.1
|
99
|
-
track_label: 'labelEnglish'
|
100
|
-
track_options:
|
101
|
-
dimension28: 1
|
102
|
-
dimension29: 'dimension29English'
|
103
|
-
- locale: 'cy'
|
104
|
-
base_path: '/cy'
|
105
|
-
text: 'Cymraeg'
|
106
|
-
data_attributes:
|
107
|
-
track_category: 'categoryWelsh'
|
108
|
-
track_action: 1.2
|
109
|
-
track_label: 'labelWelsh'
|
110
|
-
track_options:
|
111
|
-
dimension28: 1
|
112
|
-
dimension29: 'dimension29Welsh'
|
113
|
-
inverse:
|
114
|
-
data:
|
115
|
-
inverse: true
|
116
|
-
translations:
|
117
|
-
- locale: 'en'
|
118
|
-
base_path: '/en'
|
119
|
-
text: 'English'
|
120
|
-
active: true
|
121
|
-
data_attributes:
|
122
|
-
track_category: 'categoryEnglish'
|
123
|
-
track_action: 1.1
|
124
|
-
track_label: 'labelEnglish'
|
125
|
-
track_options:
|
126
|
-
dimension28: 1
|
127
|
-
dimension29: 'dimension29English'
|
128
|
-
- locale: 'cy'
|
129
|
-
base_path: '/cy'
|
130
|
-
text: 'Cymraeg'
|
131
|
-
data_attributes:
|
132
|
-
track_category: 'categoryWelsh'
|
133
|
-
track_action: 1.2
|
134
|
-
track_label: 'labelWelsh'
|
135
|
-
track_options:
|
136
|
-
dimension28: 1
|
137
|
-
dimension29: 'dimension29Welsh'
|
138
|
-
context:
|
139
|
-
dark_background: true
|