diff --git a/Gemfile.lock b/Gemfile.lock index fbd1d96f..387c26c4 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - govuk-components (1.1.8) + govuk-components (1.1.9) activemodel (>= 6.0) railties (>= 6.0) view_component (~> 2.20) @@ -161,7 +161,7 @@ GEM tzinfo (2.0.4) concurrent-ruby (~> 1.0) unicode-display_width (1.7.0) - view_component (2.30.0) + view_component (2.31.1) activesupport (>= 5.0.0, < 7.0) xpath (3.2.0) nokogiri (~> 1.8) diff --git a/docs/index.html b/docs/index.html index eed0e2bf..b467195a 100644 --- a/docs/index.html +++ b/docs/index.html @@ -11085,13 +11085,13 @@
render GovukComponent::CookieBanner.new(title: "Cookies on a service") do |component|
- component.with(:body) do
+ component.body do
safe_join([
tag.p("A paragraph.", class: "govuk-body"),
tag.p("A second, smaller paragraph.", class: "govuk-body-s"),
])
end
- component.with(:actions) do
+ component.actions do
safe_join([
govuk_link_to("Accept cookies", "#accept", button: true),
govuk_link_to("Reject cookies", "#reject", button: true),
@@ -11288,8 +11288,8 @@ Header
GOV.UK
-
+
@@ -11357,12 +11357,12 @@ Header with a product name and custom description
-
-
- Custom product name
-
+
+ Custom product name
+
- Coming soon!
+ Coming soon!
+
@@ -11395,27 +11395,24 @@ Header with navigation
Some service
-
+
+
+ Page C
+
+
@@ -11484,7 +11481,7 @@ Email links
Button links (this will render a form that POSTs)
diff --git a/lib/govuk/components/version.rb b/lib/govuk/components/version.rb
index b4c0ffba..158781cd 100644
--- a/lib/govuk/components/version.rb
+++ b/lib/govuk/components/version.rb
@@ -1,5 +1,5 @@
module Govuk
module Components
- VERSION = '1.1.8'.freeze
+ VERSION = '1.1.9'.freeze
end
end
diff --git a/spec/dummy/app/views/demos/examples/_cookie_banner.html.erb b/spec/dummy/app/views/demos/examples/_cookie_banner.html.erb
index 63e4f504..d2049732 100644
--- a/spec/dummy/app/views/demos/examples/_cookie_banner.html.erb
+++ b/spec/dummy/app/views/demos/examples/_cookie_banner.html.erb
@@ -2,13 +2,13 @@
<%= render "shared/example", title: "Cookie banner", example: <<~COOKIE_BANNER
render GovukComponent::CookieBanner.new(title: "Cookies on a service") do |component|
- component.with(:body) do
+ component.body do
safe_join([
tag.p("A paragraph.", class: "govuk-body"),
tag.p("A second, smaller paragraph.", class: "govuk-body-s"),
])
end
- component.with(:actions) do
+ component.actions do
safe_join([
govuk_link_to("Accept cookies", "#accept", button: true),
govuk_link_to("Reject cookies", "#reject", button: true),