govuk_publishing_components 20.1.0 → 20.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (19) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/govuk_publishing_components/chevron-banner/chevron-banner-focus.svg +13 -0
  3. data/app/assets/images/govuk_publishing_components/chevron-banner/chevron-banner-hover-border.svg +13 -0
  4. data/app/assets/images/govuk_publishing_components/chevron-banner/chevron-banner-hover.svg +14 -0
  5. data/app/assets/images/govuk_publishing_components/chevron-banner/chevron-banner-small-focus.svg +4 -0
  6. data/app/assets/images/govuk_publishing_components/chevron-banner/chevron-banner-small.svg +4 -0
  7. data/app/assets/images/govuk_publishing_components/chevron-banner/chevron-banner.svg +14 -0
  8. data/app/assets/stylesheets/govuk_publishing_components/_all_components.scss +1 -0
  9. data/app/assets/stylesheets/govuk_publishing_components/components/_chevron-banner.scss +128 -0
  10. data/app/assets/stylesheets/govuk_publishing_components/components/_input.scss +6 -0
  11. data/app/assets/stylesheets/govuk_publishing_components/components/_related-navigation.scss +20 -4
  12. data/app/views/govuk_publishing_components/components/_chevron_banner.html.erb +23 -0
  13. data/app/views/govuk_publishing_components/components/docs/chevron_banner.yml +33 -0
  14. data/app/views/govuk_publishing_components/components/related_navigation/_section.html.erb +2 -2
  15. data/app/views/layouts/govuk_publishing_components/application.html.erb +1 -0
  16. data/config/initializers/assets.rb +6 -0
  17. data/lib/govuk_publishing_components/presenters/related_navigation_helper.rb +4 -2
  18. data/lib/govuk_publishing_components/version.rb +1 -1
  19. metadata +11 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 70e1e7a68a80183757a98e24a3a4c9c62cb7b915574e99213f52bbe7363368a2
4
- data.tar.gz: 7bab5f6f55fe885de0fe39090d419c5d3816f8bf162b1ae9b9cb739a07465ced
3
+ metadata.gz: '05006139ee9b68bb3a6e0518569811f151d28d6fb1ea47572e9e6d81892c9f76'
4
+ data.tar.gz: 6995f979ebfcb57f3eace0c77173f26eb48788c89aa9fe87ba0bef80907c3b20
5
5
  SHA512:
6
- metadata.gz: 93bebe89425509dfb139678e9031cba30fcbae81c332c7942212ba020289704546551ec10ec470f57e072c7f31803f4ea03c3934797b73fc50f6eb34c055e580
7
- data.tar.gz: 16f8ea19a174281ca1c19f9b135c439e5b64c0dfd3dfd372b5761beccd3f3d73ebce5342dc2054435b5e6827355bc96098a77b3c34bfc8af07d38afef638c534
6
+ metadata.gz: 87922adb67096dd48bd9818004b82cc612ec899d0078162b81fb9a3faad023e856ba14486262f1922dfed229f77265b3f440c2b5b7857b495f146d97bda05dad
7
+ data.tar.gz: 468605f70f4428f9d0e7059cd46b87a7833bb54970e965342fb6040daeee262aa13f10e740d8eb739786b5e3dfd3cb14819f3f4d61ace75657cefd9a4b78a0fd
@@ -0,0 +1,13 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg viewBox="0 0 135 109" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <defs>
4
+ <path id="d" d="M0 0h93v109H0z"/>
5
+ </defs>
6
+ <g fill="#FD0" shape-rendering="geometricPrecision" stroke="#000" stroke-width="2.5px" vector-effect="non-scaling-stroke">
7
+ <path d="m91.611 52.664c1.0371 1.1432 1.0375 2.8869 8.02e-4 4.0305l-44.991 49.634c-0.37092 0.40919-0.33989 1.0416 0.069307 1.4125 0.18394 0.16674 0.42334 0.25909 0.6716 0.25909h36.892c0.55978 0 1.0939-0.2346 1.4727-0.6468l46.534-50.643c1.0549-1.148 1.0546-2.9127-7.09e-4 -4.0604l-46.898-51.003c-0.37873-0.41188-0.91268-0.64628-1.4722-0.64628h-36.891c-0.55228 0-1 0.44772-1 1 0 0.24841 0.092454 0.48792 0.25936 0.6719l45.352 49.992z" vector-effect="non-scaling-stroke"/>
8
+ <mask id="c" fill="#fff">
9
+ <use xlink:href="#d"/>
10
+ </mask>
11
+ <path d="m-37.997 1l0.35768 107h40.408c0.55978 0 1.0939-0.2346 1.4727-0.6468l46.534-50.643c1.0549-1.148 1.0546-2.9127-7.095e-4 -4.0604l-46.898-51.003c-0.37873-0.41188-0.91268-0.64628-1.4722-0.64628h-40.402z" mask="url(#c)" vector-effect="non-scaling-stroke"/>
12
+ </g>
13
+ </svg>
@@ -0,0 +1,13 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg viewBox="0 0 140 109" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <defs>
4
+ <path id="d" d="M0 0h93v109H0z"/>
5
+ </defs>
6
+ <g fill="#B31424" shape-rendering="geometricPrecision" stroke="#FFF" stroke-width="2.5" vector-effect="non-scaling-stroke">
7
+ <path d="m91.611 52.664c1.0371 1.1432 1.0375 2.8869 8.02e-4 4.0305l-44.991 49.634c-0.37092 0.40919-0.33989 1.0416 0.069307 1.4125 0.18394 0.16674 0.42334 0.25909 0.6716 0.25909h36.892c0.55978 0 1.0939-0.2346 1.4727-0.6468l46.534-50.643c1.0549-1.148 1.0546-2.9127-7.09e-4 -4.0604l-46.898-51.003c-0.37873-0.41188-0.91268-0.64628-1.4722-0.64628h-36.891c-0.55228 0-1 0.44772-1 1 0 0.24841 0.092454 0.48792 0.25936 0.6719l45.352 49.992z" vector-effect="non-scaling-stroke"/>
8
+ <mask id="c" fill="#fff">
9
+ <use xlink:href="#d"/>
10
+ </mask>
11
+ <path d="m-37.997 1l0.35768 107h40.408c0.55978 0 1.0939-0.2346 1.4727-0.6468l46.534-50.643c1.0549-1.148 1.0546-2.9127-7.095e-4 -4.0604l-46.898-51.003c-0.37873-0.41188-0.91268-0.64628-1.4722-0.64628h-40.402z" mask="url(#c)" vector-effect="non-scaling-stroke"/>
12
+ </g>
13
+ </svg>
@@ -0,0 +1,14 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 134 107">
2
+ <defs>
3
+ <path id="a" d="M0 0h93v109H0z"/>
4
+ </defs>
5
+ <g fill="none" fill-rule="evenodd">
6
+ <path fill="#b31424" fill-rule="nonzero" d="M91.611 51.664c1.0371 1.1432 1.0375 2.8869.000802 4.0305l-44.991 49.634c-.37092.40919-.33989 1.0416.069307 1.4125.18394.16674.42334.25909.6716.25909h36.892c.55978 0 1.0939-.2346 1.4727-.6468l46.534-50.643c1.0549-1.148 1.0546-2.9127-.000709-4.0604L85.3617.64689c-.37873-.41188-.91268-.64628-1.4722-.64628h-36.891c-.55228 0-1 .44772-1 1 0 .24841.092454.48792.25936.6719l45.352 49.992z"/>
7
+ <g transform="translate(0 -1)">
8
+ <mask id="b" fill="#fff">
9
+ <use xlink:href="#a"/>
10
+ </mask>
11
+ <path fill="#b31424" fill-rule="nonzero" d="M-37.997 1l.35768 107h40.408c.55978 0 1.0939-.2346 1.4727-.6468l46.534-50.643c1.0549-1.148 1.0546-2.9127-.0007095-4.0604l-46.898-51.003c-.37873-.41188-.91268-.64628-1.4722-.64628h-40.402z" mask="url(#b)"/>
12
+ </g>
13
+ </g>
14
+ </svg>
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg viewBox="0 0 104 122" xmlns="http://www.w3.org/2000/svg">
3
+ <path d="m0.81268 5.0662l51.363 54.069c1.0996 1.1575 1.1 2.9735 8.258e-4 4.1315l-50.942 53.668c-1.1407 1.2017-1.0912 3.1006 0.11054 4.2412 0.55745 0.52914 1.2967 0.82413 2.0653 0.82413h41.812c0.8157 0 1.5962-0.33215 2.1618-0.91994l55.613-57.799c1.1179-1.1618 1.1176-2.9994-7.29e-4 -4.1609l-56.04-58.201c-0.56552-0.58733-1.3457-0.91919-2.1611-0.91919h-41.809c-1.6569 0-3 1.3431-3 3 0 0.76901 0.29531 1.5087 0.82496 2.0662z" fill-rule="evenodd"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg viewBox="0 0 104 122" xmlns="http://www.w3.org/2000/svg">
3
+ <path d="m0.81268 5.0662l51.363 54.069c1.0996 1.1575 1.1 2.9735 8.258e-4 4.1315l-50.942 53.668c-1.1407 1.2017-1.0912 3.1006 0.11054 4.2412 0.55745 0.52914 1.2967 0.82413 2.0653 0.82413h41.812c0.8157 0 1.5962-0.33215 2.1618-0.91994l55.613-57.799c1.1179-1.1618 1.1176-2.9994-7.29e-4 -4.1609l-56.04-58.201c-0.56552-0.58733-1.3457-0.91919-2.1611-0.91919h-41.809c-1.6569 0-3 1.3431-3 3 0 0.76901 0.29531 1.5087 0.82496 2.0662z" fill="#FFF" fill-rule="evenodd"/>
4
+ </svg>
@@ -0,0 +1,14 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 134 107">
2
+ <defs>
3
+ <path id="a" d="M0 0h93v109H0z"/>
4
+ </defs>
5
+ <g fill="none" fill-rule="evenodd">
6
+ <path fill="#E61E32" fill-rule="nonzero" d="M91.611 51.664c1.0371 1.1432 1.0375 2.8869.000802 4.0305l-44.991 49.634c-.37092.40919-.33989 1.0416.069307 1.4125.18394.16674.42334.25909.6716.25909h36.892c.55978 0 1.0939-.2346 1.4727-.6468l46.534-50.643c1.0549-1.148 1.0546-2.9127-.000709-4.0604L85.3617.64689c-.37873-.41188-.91268-.64628-1.4722-.64628h-36.891c-.55228 0-1 .44772-1 1 0 .24841.092454.48792.25936.6719l45.352 49.992z"/>
7
+ <g transform="translate(0 -1)">
8
+ <mask id="b" fill="#fff">
9
+ <use xlink:href="#a"/>
10
+ </mask>
11
+ <path fill="#E61E32" fill-rule="nonzero" d="M-37.997 1l.35768 107h40.408c.55978 0 1.0939-.2346 1.4727-.6468l46.534-50.643c1.0549-1.148 1.0546-2.9127-.0007095-4.0604l-46.898-51.003c-.37873-.41188-.91268-.64628-1.4722-.64628h-40.402z" mask="url(#b)"/>
12
+ </g>
13
+ </g>
14
+ </svg>
@@ -25,6 +25,7 @@
25
25
  @import "components/button";
26
26
  @import "components/character-count";
27
27
  @import "components/checkboxes";
28
+ @import "components/chevron-banner";
28
29
  @import "components/contents-list";
29
30
  @import "components/cookie-banner";
30
31
  @import "components/copy-to-clipboard";
@@ -0,0 +1,128 @@
1
+ $red: #e61e32;
2
+ $dark-red: #b31424;
3
+ $yellow: #ffdd00;
4
+
5
+ .gem-c-chevron-banner {
6
+ position: relative;
7
+ }
8
+
9
+ .gem-c-chevron-banner:hover {
10
+ .gem-c-chevron-banner__link-container {
11
+ background-color: $dark-red;
12
+ }
13
+
14
+ .gem-c-chevron-banner__link-container:after {
15
+ background-image: image-url("govuk_publishing_components/chevron-banner/chevron-banner-hover.svg");
16
+ }
17
+ }
18
+
19
+ .gem-c-chevron-banner--hover-border:hover {
20
+ .gem-c-chevron-banner__link-container {
21
+ border-right: 2px solid;
22
+ border-color: govuk-colour("white");
23
+
24
+ @include govuk-media-query($from: mobile) {
25
+ border-right: 0;
26
+ }
27
+ }
28
+
29
+ .gem-c-chevron-banner__link-container:after {
30
+ background-image: image-url("govuk_publishing_components/chevron-banner/chevron-banner-hover-border.svg");
31
+ }
32
+ }
33
+
34
+ .gem-c-chevron-banner:focus-within .gem-c-chevron-banner__link-container {
35
+ border-right: 2px solid;
36
+ border-color: govuk-colour("black");
37
+ background-color: $yellow;
38
+
39
+ @include govuk-media-query($from: mobile) {
40
+ border-right: 0;
41
+ }
42
+ }
43
+
44
+ .gem-c-chevron-banner:focus-within .gem-c-chevron-banner__link-container:after {
45
+ background-image: image-url("govuk_publishing_components/chevron-banner/chevron-banner-small-focus.svg");
46
+
47
+ @include govuk-media-query($from: mobile) {
48
+ background-image: image-url("govuk_publishing_components/chevron-banner/chevron-banner-focus.svg");
49
+ }
50
+ }
51
+
52
+ .gem-c-chevron-banner__link-container {
53
+ background-color: $red;
54
+ padding: govuk-spacing(4);
55
+ border-radius: 5px;
56
+ border: 2px solid transparent;
57
+ border-right: 0;
58
+
59
+ @include govuk-media-query($from: mobile) {
60
+ border-radius: 5px 0 0 5px;
61
+ margin-right: 104px;
62
+ }
63
+ }
64
+
65
+ .gem-c-chevron-banner__link-container:after {
66
+ content: "";
67
+ position: absolute;
68
+ right: 10px;
69
+ top: 0;
70
+ width: 25px;
71
+ height: 100%;
72
+ background-image: image-url("govuk_publishing_components/chevron-banner/chevron-banner-small.svg");
73
+ background-size: 25px 25px;
74
+ background-repeat: no-repeat;
75
+ background-position: center right;
76
+
77
+ @include govuk-media-query($from: mobile) {
78
+ content: "";
79
+ display: block;
80
+ position: absolute;
81
+ top: 0;
82
+ right: 0;
83
+ height: 100%;
84
+ min-width: 105px;
85
+ background-image: image-url("govuk_publishing_components/chevron-banner/chevron-banner.svg");
86
+ background-repeat: no-repeat;
87
+ background-position: -1px center;
88
+ background-size: auto 100%;
89
+ }
90
+
91
+ // Target IE 9-11
92
+ @media screen and (min-width: 0\0) {
93
+ background-position: -8px center;
94
+ }
95
+ }
96
+
97
+ .gem-c-chevron-banner__link {
98
+ @include govuk-media-query($until: mobile) {
99
+ display: block;
100
+ width: 80%;
101
+ }
102
+ }
103
+
104
+ .gem-c-chevron-banner__link:link,
105
+ .gem-c-chevron-banner__link:visited,
106
+ .gem-c-chevron-banner__link:hover {
107
+ @include govuk-font(24, $weight: bold);
108
+ color: govuk-colour("white");
109
+ text-decoration: none;
110
+ }
111
+
112
+ // The yellow is hardcoded so it doesn't vary between apps as a result of the partial GOVUK Frontend V3 pgrade
113
+ .gem-c-chevron-banner__link:link:focus,
114
+ .gem-c-chevron-banner__link:focus {
115
+ color: govuk-colour("black");
116
+ background-color: $yellow;
117
+ box-shadow: 0 -2px $yellow, 0 4px govuk-colour("black");
118
+ }
119
+
120
+ .gem-c-chevron-banner__link:after {
121
+ content: "";
122
+ position: absolute;
123
+ z-index: 10;
124
+ top: 0;
125
+ left: 0;
126
+ width: 100%;
127
+ height: 100%;
128
+ }
@@ -4,3 +4,9 @@
4
4
  background: govuk-colour("white") url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36' width='40' height='40'%3E%3Cpath d='M25.7 24.8L21.9 21c.7-1 1.1-2.2 1.1-3.5 0-3.6-2.9-6.5-6.5-6.5S10 13.9 10 17.5s2.9 6.5 6.5 6.5c1.6 0 3-.6 4.1-1.5l3.7 3.7 1.4-1.4zM12 17.5c0-2.5 2-4.5 4.5-4.5s4.5 2 4.5 4.5-2 4.5-4.5 4.5-4.5-2-4.5-4.5z' fill='currentColor'%3E%3C/path%3E%3C/svg%3E") no-repeat -5px -3px;
5
5
  padding-left: govuk-spacing(6);
6
6
  }
7
+
8
+ // this overrides styles from static that break the look of the component
9
+ .gem-c-input.govuk-input {
10
+ margin: 0;
11
+ padding: govuk-spacing(1);
12
+ }
@@ -51,13 +51,17 @@
51
51
  @include govuk-template-link-focus-override;
52
52
  }
53
53
 
54
+ .gem-c-related-navigation__link--truncated-links {
55
+ margin-top: govuk-spacing(2);
56
+ }
57
+
54
58
  .gem-c-related-navigation__toggle {
55
59
  @include govuk-link-common;
56
60
  @include govuk-link-style-no-visited-state;
57
61
  display: none;
58
62
 
59
63
  .js-enabled & {
60
- display: block;
64
+ display: inline-block;
61
65
  }
62
66
  }
63
67
 
@@ -79,6 +83,10 @@
79
83
  @include govuk-template-link-focus-override;
80
84
  }
81
85
 
86
+ .gem-c-related-navigation__section-link--inline {
87
+ line-height: 1.45;
88
+ }
89
+
82
90
  // reset the default browser styles
83
91
  .gem-c-related-navigation__link-list {
84
92
  padding: 0;
@@ -87,8 +95,16 @@
87
95
  margin-bottom: 1.25em;
88
96
  }
89
97
 
90
- .gem-c-related-navigation__toggle-more.js-hidden {
91
- .js-enabled & {
92
- display: none;
98
+ .gem-c-related-navigation__toggle-more {
99
+ .gem-c-related-navigation__section-link {
100
+ @include govuk-media-query($from: tablet) {
101
+ line-height: 1.45;
102
+ }
103
+ }
104
+
105
+ &.js-hidden {
106
+ .js-enabled & {
107
+ display: none;
108
+ }
93
109
  }
94
110
  }
@@ -0,0 +1,23 @@
1
+ <%
2
+ href ||= false
3
+ text ||= false
4
+ hover_border ||= false
5
+
6
+ data_attributes ||= {}
7
+ data_attributes[:module] = 'track-click' if data_attributes.any?
8
+ %>
9
+ <% if href && text %>
10
+ <% #This assumes the application calling the component supports passing :extra_headers into the layout. %>
11
+ <% #If not, add the following to your application layout file: `yield :extra_headers` %>
12
+ <% content_for :extra_headers do %>
13
+ <link rel="preload" as="image" href="<%= asset_path 'govuk_publishing_components/chevron-banner/chevron-banner-hover.svg' %>" type="image/svg+xml">
14
+ <link rel="preload" as="image" href="<%= asset_path 'govuk_publishing_components/chevron-banner/chevron-banner-hover-border.svg' %>" type="image/svg+xml">
15
+ <link rel="preload" as="image" href="<%= asset_path 'govuk_publishing_components/chevron-banner/chevron-banner-focus.svg' %>" type="image/svg+xml">
16
+ <% end %>
17
+
18
+ <div class="gem-c-chevron-banner <%= "gem-c-chevron-banner--hover-border" if hover_border %>">
19
+ <div class="gem-c-chevron-banner__link-container">
20
+ <%= link_to(text, href, class: "gem-c-chevron-banner__link govuk-link", data: data_attributes) %>
21
+ </div>
22
+ </div>
23
+ <% end %>
@@ -0,0 +1,33 @@
1
+ name: Chevron Banner
2
+ description: A branded banner for use on EU Exit campaign pages. This should not be used on non-campaign pages.
3
+ accessibility_criteria: |
4
+ The component must:
5
+
6
+ - accept focus
7
+ - be focusable with a keyboard
8
+ - be usable with a keyboard
9
+ - be usable with touch
10
+ - indicate when they have focus
11
+
12
+ shared_accessibility_criteria:
13
+ - link
14
+ examples:
15
+ default:
16
+ data:
17
+ href: '/test-link'
18
+ text: 'This is some text'
19
+ with_hover_border:
20
+ data:
21
+ href: '/test-link'
22
+ text: 'This is some text'
23
+ hover_border: true
24
+ context:
25
+ dark_background: true
26
+ with_data_attributes:
27
+ data:
28
+ href: '/test-link'
29
+ text: 'This is some text'
30
+ data_attributes:
31
+ track-category: "startButtonClicked"
32
+ track-action: "/test-link"
33
+ track-label: "This is some text"
@@ -26,7 +26,7 @@
26
26
  link_element = link_to(
27
27
  link[:text],
28
28
  link[:path],
29
- class: related_nav_helper.section_css_class("gem-c-related-navigation__section-link", section_title, link),
29
+ class: related_nav_helper.section_css_class("gem-c-related-navigation__section-link", section_title, link, (index >= section_link_limit)),
30
30
  rel: link[:rel],
31
31
  lang: related_nav_helper.t_locale_check(link[:locale]),
32
32
  data: {
@@ -60,7 +60,7 @@
60
60
  </a>
61
61
  </li>
62
62
 
63
- <li class="gem-c-related-navigation__link">
63
+ <li class="gem-c-related-navigation__link gem-c-related-navigation__link--truncated-links">
64
64
  <span id="toggle_<%= section_title %>" class="gem-c-related-navigation__toggle-more js-hidden">
65
65
  <%= to_sentence(constructed_link_array) %>
66
66
  </span>
@@ -24,6 +24,7 @@
24
24
  <% end %>
25
25
 
26
26
  <%= javascript_include_tag "govuk_publishing_components/vendor/modernizr" %>
27
+ <%= yield :extra_headers %>
27
28
  </head>
28
29
  <body class="gem-c-layout-for-admin govuk-template__body <%= 'hide-header-and-footer' if @preview %>">
29
30
  <script>
@@ -19,6 +19,12 @@ Rails.application.config.assets.precompile += %w(
19
19
  govuk_publishing_components/govuk-schema-placeholder-4x3.png
20
20
  govuk_publishing_components/govuk-schema-placeholder-16x9.png
21
21
  govuk_publishing_components/search-button.png
22
+ govuk_publishing_components/chevron-banner.svg
23
+ govuk_publishing_components/chevron-banner-focus.svg
24
+ govuk_publishing_components/chevron-banner-hover-border.svg
25
+ govuk_publishing_components/chevron-banner-hover.svg
26
+ govuk_publishing_components/chevron-banner-small.svg
27
+ govuk_publishing_components/chevron-banner-small-focus.svg
22
28
  )
23
29
 
24
30
  # GOV.UK Frontend assets
@@ -60,8 +60,10 @@ module GovukPublishingComponents
60
60
  end
61
61
  end
62
62
 
63
- def section_css_class(css_class, section_title, link = {})
64
- css_classes = [css_class, "#{css_class}--#{@context}"]
63
+ def section_css_class(css_class, section_title, link = {}, link_is_inline = false)
64
+ css_classes = [css_class]
65
+ css_classes << "#{css_class}--#{@context}" unless @context.nil?
66
+ css_classes << "#{css_class}--inline" if link_is_inline
65
67
 
66
68
  unless DEFINED_SECTIONS.include?(section_title) || link.fetch(:finder, false)
67
69
  css_classes << " #{css_class}--other"
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = '20.1.0'.freeze
2
+ VERSION = '20.2.0'.freeze
3
3
  end
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: 20.1.0
4
+ version: 20.2.0
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: 2019-09-05 00:00:00.000000000 Z
11
+ date: 2019-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gds-api-adapters
@@ -329,6 +329,12 @@ files:
329
329
  - README.md
330
330
  - Rakefile
331
331
  - app/assets/config/govuk_publishing_components_manifest.js
332
+ - app/assets/images/govuk_publishing_components/chevron-banner/chevron-banner-focus.svg
333
+ - app/assets/images/govuk_publishing_components/chevron-banner/chevron-banner-hover-border.svg
334
+ - app/assets/images/govuk_publishing_components/chevron-banner/chevron-banner-hover.svg
335
+ - app/assets/images/govuk_publishing_components/chevron-banner/chevron-banner-small-focus.svg
336
+ - app/assets/images/govuk_publishing_components/chevron-banner/chevron-banner-small.svg
337
+ - app/assets/images/govuk_publishing_components/chevron-banner/chevron-banner.svg
332
338
  - app/assets/images/govuk_publishing_components/favicon-development.png
333
339
  - app/assets/images/govuk_publishing_components/favicon-example.png
334
340
  - app/assets/images/govuk_publishing_components/favicon-integration.png
@@ -380,6 +386,7 @@ files:
380
386
  - app/assets/stylesheets/govuk_publishing_components/components/_button.scss
381
387
  - app/assets/stylesheets/govuk_publishing_components/components/_character-count.scss
382
388
  - app/assets/stylesheets/govuk_publishing_components/components/_checkboxes.scss
389
+ - app/assets/stylesheets/govuk_publishing_components/components/_chevron-banner.scss
383
390
  - app/assets/stylesheets/govuk_publishing_components/components/_contents-list.scss
384
391
  - app/assets/stylesheets/govuk_publishing_components/components/_cookie-banner.scss
385
392
  - app/assets/stylesheets/govuk_publishing_components/components/_copy-to-clipboard.scss
@@ -499,6 +506,7 @@ files:
499
506
  - app/views/govuk_publishing_components/components/_button.html.erb
500
507
  - app/views/govuk_publishing_components/components/_character_count.html.erb
501
508
  - app/views/govuk_publishing_components/components/_checkboxes.html.erb
509
+ - app/views/govuk_publishing_components/components/_chevron_banner.html.erb
502
510
  - app/views/govuk_publishing_components/components/_contents_list.html.erb
503
511
  - app/views/govuk_publishing_components/components/_contextual_breadcrumbs.html.erb
504
512
  - app/views/govuk_publishing_components/components/_contextual_footer.html.erb
@@ -570,6 +578,7 @@ files:
570
578
  - app/views/govuk_publishing_components/components/docs/button.yml
571
579
  - app/views/govuk_publishing_components/components/docs/character_count.yml
572
580
  - app/views/govuk_publishing_components/components/docs/checkboxes.yml
581
+ - app/views/govuk_publishing_components/components/docs/chevron_banner.yml
573
582
  - app/views/govuk_publishing_components/components/docs/contents_list.yml
574
583
  - app/views/govuk_publishing_components/components/docs/contextual_breadcrumbs.yml
575
584
  - app/views/govuk_publishing_components/components/docs/contextual_footer.yml