govuk_publishing_components 5.4.1 → 5.5.0

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: 8d843c3f7f78559a8e8bbe5a24f026a58131f4a1558a33b878266fe89ce5239d
4
- data.tar.gz: 4baecf33e59f1b631786a43f1af3a9c83fd9d57fef96e1c2475ec5cc5829804c
3
+ metadata.gz: c442d89fa6b1b46a24ddefb5ce5b9968367041b147d030b9d4dc8f6f4807749b
4
+ data.tar.gz: 607340ad1271474b15c5bdb20a6e24ed681401f8a54482387e896da3ef1b3cda
5
5
  SHA512:
6
- metadata.gz: 31dc8a84299695fe5d4c3f1cf6f9108f59b975060d628206a60fc8136d8073210df59a77c099afd51d3085162cbd195fccee50e90b371e9497e03f56d3142e9c
7
- data.tar.gz: 4a58f9da9f33d430fadc0cd0fa0cc1245d7788ab363525985d8d689313cd0032cbd118623c973ef5a29b367e88e83f10d6e1ea566890a21d6fa7f27407a5308a
6
+ metadata.gz: 9574c95bb2205a6ae7b1569b1a547054ce7c86107de0af7098a860fba4e4b0175a5fe9374ac6fd781481808b0bb071c903b51c6043036e88f39ac334cd3f32a7
7
+ data.tar.gz: 16d8f689f5fefe71d8158431052cf8df7cffacf15bc8c74687d8573bd23a781a87ac6d888c5cb782987ff912999373d44e84bc590c19a486a7debc080b48a0dd
@@ -19,3 +19,4 @@
19
19
  @import "components/step-by-step-nav-header";
20
20
  @import "components/step-by-step-nav-related";
21
21
  @import "components/feedback";
22
+ @import "components/inverse-header";
@@ -0,0 +1,5 @@
1
+ .gem-c-inverse-header {
2
+ width: 100%;
3
+ background-color: $govuk-blue;
4
+ padding: $gutter-half;
5
+ }
@@ -0,0 +1,6 @@
1
+ <% block = yield %>
2
+ <% unless block.empty? %>
3
+ <header class="gem-c-inverse-header">
4
+ <%= block %>
5
+ </header>
6
+ <% end %>
@@ -0,0 +1,41 @@
1
+ name: Inverse header
2
+ description: A wrapper to contain header content in white text
3
+ body: |
4
+ This component can be passed a block of template code and will wrap it in a blue header. This is as light-touch as possible and doesn't attempt to deal with the margins and paddings of its content, neither does it enforce the white text it requires. Implemented to accomodate topic and list page headings and breadcrumbs but unopinionated about its contents.
5
+
6
+ accessibility_criteria: |
7
+ The component must:
8
+
9
+ * be used in conjunction with content that renders a text contrast ratio higher than 4.5:1
10
+ against the header colour to meet WCAG AA.
11
+
12
+ examples:
13
+ default:
14
+ data:
15
+ block: |
16
+ <div class="pub-c-title pub-c-title--inverse">
17
+ <h1 class="pub-c-title__text ">
18
+ Education, Training and Skills
19
+ </h1>
20
+ </div>
21
+ with_breadcrumbs_and_paragraph:
22
+ data:
23
+ block: |
24
+ <div class="govuk-breadcrumbs " data-module="track-click">
25
+ <ol>
26
+ <li class="">
27
+ <a data-track-category="breadcrumbClicked" data-track-action="1" data-track-label="/section" data-track-options="{&quot;dimension28&quot;:&quot;2&quot;,&quot;dimension29&quot;:&quot;Section&quot;}" class="govuk-breadcrumbs--inverse" aria-current="false" href="/section">Section</a>
28
+ </li>
29
+ <li class="">
30
+ <a data-track-category="breadcrumbClicked" data-track-action="2" data-track-label="#content" data-track-options="{&quot;dimension28&quot;:&quot;2&quot;,&quot;dimension29&quot;:&quot;Education of disadvantaged children&quot;}" class="govuk-breadcrumbs--inverse breadcrumb-for-current-page " aria-current="page" href="#content">Education of disadvantaged children</a>
31
+ </li>
32
+ </ol>
33
+ </div>
34
+ <div class="pub-c-title pub-c-title--inverse">
35
+ <h1 class="pub-c-title__text ">
36
+ Education, Training and Skills
37
+ </h1>
38
+ </div>
39
+ <p class="pub-c-lead-paragraph pub-c-lead-paragraph--inverse">
40
+ Schools and academies, further and higher education, apprenticeships and other skills training, student funding, early&nbsp;years.
41
+ </p>
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = '5.4.1'.freeze
2
+ VERSION = '5.5.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_publishing_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.4.1
4
+ version: 5.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev
@@ -292,6 +292,7 @@ files:
292
292
  - app/assets/stylesheets/govuk_publishing_components/components/_feedback.scss
293
293
  - app/assets/stylesheets/govuk_publishing_components/components/_fieldset.scss
294
294
  - app/assets/stylesheets/govuk_publishing_components/components/_input.scss
295
+ - app/assets/stylesheets/govuk_publishing_components/components/_inverse-header.scss
295
296
  - app/assets/stylesheets/govuk_publishing_components/components/_label.scss
296
297
  - app/assets/stylesheets/govuk_publishing_components/components/_radio.scss
297
298
  - app/assets/stylesheets/govuk_publishing_components/components/_related-navigation.scss
@@ -324,6 +325,7 @@ files:
324
325
  - app/views/govuk_publishing_components/components/_feedback.html.erb
325
326
  - app/views/govuk_publishing_components/components/_fieldset.html.erb
326
327
  - app/views/govuk_publishing_components/components/_input.html.erb
328
+ - app/views/govuk_publishing_components/components/_inverse_header.html.erb
327
329
  - app/views/govuk_publishing_components/components/_label.html.erb
328
330
  - app/views/govuk_publishing_components/components/_radio.html.erb
329
331
  - app/views/govuk_publishing_components/components/_related_navigation.html.erb
@@ -336,6 +338,7 @@ files:
336
338
  - app/views/govuk_publishing_components/components/docs/feedback.yml
337
339
  - app/views/govuk_publishing_components/components/docs/fieldset.yml
338
340
  - app/views/govuk_publishing_components/components/docs/input.yml
341
+ - app/views/govuk_publishing_components/components/docs/inverse_header.yml
339
342
  - app/views/govuk_publishing_components/components/docs/label.yml
340
343
  - app/views/govuk_publishing_components/components/docs/radio.yml
341
344
  - app/views/govuk_publishing_components/components/docs/related_navigation.yml