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.
@@ -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
- } %>
@@ -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: hide_button_left_border, hide_logo_text and blue_background
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.
@@ -12,9 +12,13 @@
12
12
  <div class="govuk-grid-column-two-thirds">
13
13
  <div id="wrapper">
14
14
  <%= yield :before_content %>
15
- <main id="content">
15
+ <% if for_static %>
16
+ <main id="content">
17
+ <%= yield %>
18
+ </main>
19
+ <% else %>
16
20
  <%= yield %>
17
- </main>
21
+ <% end %>
18
22
  </div>
19
23
  </div>
20
24
  </div>
@@ -5,7 +5,6 @@
5
5
  hide_logo_text: true,
6
6
  logo_link: logo_link,
7
7
  blue_background: true,
8
- hide_button_left_border: true,
9
8
  large_navbar: true,
10
9
  }
11
10
  %>
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = "51.2.1".freeze
2
+ VERSION = "52.0.0".freeze
3
3
  end
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: 51.2.1
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-11 00:00:00.000000000 Z
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.3
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: []