govuk_publishing_components 51.2.1 → 52.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/stylesheets/govuk_publishing_components/components/_layout-super-navigation-header.scss +0 -7
- data/app/views/govuk_publishing_components/components/_add_another.html.erb +10 -6
- data/app/views/govuk_publishing_components/components/_copy_to_clipboard.html.erb +6 -2
- data/app/views/govuk_publishing_components/components/_layout_for_public.html.erb +1 -5
- data/app/views/govuk_publishing_components/components/_layout_super_navigation_header.html.erb +0 -2
- data/app/views/govuk_publishing_components/components/docs/add_another.yml +1 -1
- data/app/views/govuk_publishing_components/components/docs/copy_to_clipboard.yml +1 -0
- data/app/views/govuk_publishing_components/components/docs/govspeak.yml +685 -566
- data/app/views/govuk_publishing_components/components/docs/layout_for_public.yml +0 -16
- data/app/views/govuk_publishing_components/components/docs/layout_super_navigation_header.yml +1 -7
- data/app/views/govuk_publishing_components/components/layout_for_public/_account-layout.html.erb +6 -2
- data/app/views/govuk_publishing_components/components/layout_for_public/_layout_super_navigation_header_homepage.html.erb +0 -1
- data/lib/govuk_publishing_components/version.rb +1 -1
- metadata +3 -3
@@ -134,19 +134,3 @@ examples:
|
|
134
134
|
cookie_preferences:
|
135
135
|
text: How GOV.UK accounts use cookies
|
136
136
|
href: https://www.gov.uk/government/publications/govuk-accounts-trial-full-privacy-notice-and-accessibility-statement
|
137
|
-
with_custom_layout:
|
138
|
-
description: Yields a custom layout for the content.
|
139
|
-
data:
|
140
|
-
custom_layout: true
|
141
|
-
block: |
|
142
|
-
<main id="custom-layout">
|
143
|
-
<h1>This is a custom layout</h1>
|
144
|
-
</main>
|
145
|
-
with_custom_header:
|
146
|
-
description: Allows the header to be replaced with HTML injected by the calling application in a `content_for` tag named `:custom_header`.
|
147
|
-
embed: |
|
148
|
-
<% content_for(:custom_header) do %>
|
149
|
-
<header id="custom-header">I'm a custom header</header>
|
150
|
-
<% end %>
|
151
|
-
<%= render "govuk_publishing_components/components/layout_for_public", {
|
152
|
-
} %>
|
data/app/views/govuk_publishing_components/components/docs/layout_super_navigation_header.yml
CHANGED
@@ -39,10 +39,9 @@ examples:
|
|
39
39
|
logo_link_title: "Go to example"
|
40
40
|
homepage:
|
41
41
|
description: |
|
42
|
-
This variant is used for the homepage. It toggles the following attributes:
|
42
|
+
This variant is used for the homepage. It toggles the following attributes: hide_logo_text and blue_background
|
43
43
|
data:
|
44
44
|
hide_logo_text: true
|
45
|
-
hide_button_left_border: true
|
46
45
|
blue_background: true
|
47
46
|
large_navbar: true
|
48
47
|
hide_logo_text:
|
@@ -50,11 +49,6 @@ examples:
|
|
50
49
|
Logo text is shown by default. This option allows us to hide the text for the homepage.
|
51
50
|
data:
|
52
51
|
hide_logo_text: true
|
53
|
-
remove_left_button_border:
|
54
|
-
description: |
|
55
|
-
The left border for the toggle button is shown by default. This option allows us to hide the text for the homepage.
|
56
|
-
data:
|
57
|
-
hide_button_left_border: true
|
58
52
|
blue_blackground_colour:
|
59
53
|
description: |
|
60
54
|
The black background is shown by default. This option allows us to change the background colour for the homepage.
|
data/app/views/govuk_publishing_components/components/layout_for_public/_account-layout.html.erb
CHANGED
@@ -12,9 +12,13 @@
|
|
12
12
|
<div class="govuk-grid-column-two-thirds">
|
13
13
|
<div id="wrapper">
|
14
14
|
<%= yield :before_content %>
|
15
|
-
|
15
|
+
<% if for_static %>
|
16
|
+
<main id="content">
|
17
|
+
<%= yield %>
|
18
|
+
</main>
|
19
|
+
<% else %>
|
16
20
|
<%= yield %>
|
17
|
-
|
21
|
+
<% end %>
|
18
22
|
</div>
|
19
23
|
</div>
|
20
24
|
</div>
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: govuk_publishing_components
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 52.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GOV.UK Dev
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-02-
|
10
|
+
date: 2025-02-20 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: govuk_app_config
|
@@ -1997,7 +1997,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1997
1997
|
- !ruby/object:Gem::Version
|
1998
1998
|
version: '0'
|
1999
1999
|
requirements: []
|
2000
|
-
rubygems_version: 3.6.
|
2000
|
+
rubygems_version: 3.6.4
|
2001
2001
|
specification_version: 4
|
2002
2002
|
summary: A gem to document components in GOV.UK frontend applications
|
2003
2003
|
test_files: []
|