govuk_publishing_components 24.10.2 → 24.10.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0506262186ba0a9a1bf7ad543de412379a31dcdbf85d340fe24a08ca4b168a9
|
4
|
+
data.tar.gz: eaeea982722cc7e5ee8a06f2609719034495eed7e717e967bee5fa5fe7897fbe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 570b60d946209abd90e62672f2fd1739f44cd2312ffe1662cec29d8a6330a1995e0dc338ab32e7c0029091571dc317b407e34454f0b96dddb31408e430db03c8
|
7
|
+
data.tar.gz: 8816a7575cc3038dcdd148dd3809692d6263ceb7da18f080e413f3c9bd4f39ad891c7c54bc176373a4d4e281fad40a5467b40ed9b3bf7f4a2b7a43573d8c103e
|
@@ -4,10 +4,6 @@ phase ||= nil
|
|
4
4
|
message ||= nil
|
5
5
|
inverse ||= false
|
6
6
|
|
7
|
-
unless phase.in?(%w[alpha beta])
|
8
|
-
raise ArgumentError, "The phase banner component expects a `phase` (`beta` or `alpha`), #{phase.inspect} given"
|
9
|
-
end
|
10
|
-
|
11
7
|
unless message.present?
|
12
8
|
if phase == "beta"
|
13
9
|
message = raw("This part of GOV.UK is being rebuilt – <a class=\"govuk-link\" href=\"/help/beta\">find out what beta means</a>")
|
@@ -23,7 +19,7 @@ container_css_classes << "gem-c-phase-banner--inverse" if inverse
|
|
23
19
|
<%= tag.div class: container_css_classes do %>
|
24
20
|
<%= tag.p class: "govuk-phase-banner__content" do %>
|
25
21
|
<%= tag.strong app_name, class: "govuk-phase-banner__content__app-name" if app_name %>
|
26
|
-
<%= tag.strong phase, class: "govuk-tag govuk-phase-banner__content__tag" %>
|
22
|
+
<%= tag.strong phase, class: "govuk-tag govuk-phase-banner__content__tag" if phase %>
|
27
23
|
<%= tag.span message, class: "govuk-phase-banner__text" if message %>
|
28
24
|
<% end %>
|
29
25
|
<% end %>
|
@@ -1,6 +1,6 @@
|
|
1
|
-
name: Phase
|
1
|
+
name: Phase banner
|
2
2
|
description: |
|
3
|
-
A banner that indicates content is in a alpha or beta
|
3
|
+
A banner that indicates content is in a certain phase (usually alpha or beta), with an optional explanation
|
4
4
|
accessibility_criteria: |
|
5
5
|
The label must:
|
6
6
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: govuk_publishing_components
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 24.10.
|
4
|
+
version: 24.10.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GOV.UK Dev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-05-
|
11
|
+
date: 2021-05-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: govuk_app_config
|