govuk_publishing_components 3.2.1 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6c63624d4a76a90938dc438568d07b4db50dc6b8
4
- data.tar.gz: 62c60f16537343a19e9303f3f99718b2b23d4df4
3
+ metadata.gz: 6824adb0ac3f33d0beeb80f026ac1e5e7f28d38b
4
+ data.tar.gz: af7894128522651abec009b43e12e37387f86a5a
5
5
  SHA512:
6
- metadata.gz: 2f28df695a45ad3893354989d307ff62e86f2538be5dc375d4ba4ec9b453aedcb19f900b7112007e3979f36097dbe0287aebad643809f3a7b3b7d90cc0768f6f
7
- data.tar.gz: a62ed02ff1a66de90299849d67b2aaf3378f2c36dace660889987855e71a384a4aa9e1a725a5a7882bc7c5a85e65533ba8243fa8d612e94c9ebe417187015a6f
6
+ metadata.gz: 9689fcdadf63203859864c6453bb7bbd81b831fcf831479863fa602b7de507d64c03b68f2c5e16c923e476ebb6af0f2dc0fe47318ed07f1ce399ecfd5966284e
7
+ data.tar.gz: 76617b5ebc0eeaa676c84bf6f58723fc02f943c64fd9cccfbe4e74a0415522c2c345c827f88b3124f3bf1c1e457f1626786eed39c3bcf56ad876e18ab62a9861
@@ -0,0 +1,33 @@
1
+ @import "helpers/variables";
2
+
3
+ .gem-c-back-link {
4
+ position: relative;
5
+ display: inline-block;
6
+ margin-top: $gem-spacing-scale-3;
7
+ margin-bottom: $gem-spacing-scale-3;
8
+ font-size: 16px;
9
+ line-height: 1.25;
10
+
11
+ text-decoration: none;
12
+ border-bottom: 1px solid currentColor;
13
+
14
+ &:link,
15
+ &:link:focus,
16
+ &:visited,
17
+ &:active {
18
+ color: currentColor;
19
+ }
20
+
21
+ &:hover {
22
+ color: $link-colour;
23
+ }
24
+
25
+ &::before {
26
+ content: "";
27
+ display: inline-block;
28
+ margin-right: .3em;
29
+ border-top: 0.3125em solid transparent;
30
+ border-right: 0.375em solid currentColor;
31
+ border-bottom: 0.3125em solid transparent;
32
+ }
33
+ }
@@ -4,6 +4,7 @@
4
4
  @import "typography";
5
5
  @import "colours";
6
6
 
7
+ @import "../components/back-link";
7
8
  @import "../components/fieldset";
8
9
  @import "../components/label";
9
10
  @import "../components/radio";
@@ -0,0 +1,6 @@
1
+ <a
2
+ class="gem-c-back-link"
3
+ href="<%= href %>"
4
+ >
5
+ <%= t('components.back_link.back') %>
6
+ </a>
@@ -0,0 +1,10 @@
1
+ name: Back link
2
+ description: A link used to help users get back, useful when not using other navigation such as breadcrumbs
3
+ accessibility_criteria: |
4
+ - has a touch area easy for users to touch
5
+ shared_accessibility_criteria:
6
+ - link
7
+ examples:
8
+ default:
9
+ data:
10
+ href: '#'
@@ -2,3 +2,5 @@ cy:
2
2
  components:
3
3
  radio:
4
4
  or: 'neu'
5
+ back_link:
6
+ back: "Yn ôl"
@@ -23,3 +23,5 @@ en:
23
23
  components:
24
24
  radio:
25
25
  or: 'or'
26
+ back_link:
27
+ back: 'Back'
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = '3.2.1'.freeze
2
+ VERSION = '3.3.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: 3.2.1
4
+ version: 3.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev
@@ -226,6 +226,7 @@ files:
226
226
  - app/assets/javascripts/govuk_publishing_components/vendor/matches-polyfill.min.js
227
227
  - app/assets/javascripts/govuk_publishing_components/visual-regression.js
228
228
  - app/assets/javascripts/history-support.js
229
+ - app/assets/stylesheets/components/_back-link.scss
229
230
  - app/assets/stylesheets/components/_fieldset.scss
230
231
  - app/assets/stylesheets/components/_label.scss
231
232
  - app/assets/stylesheets/components/_radio.scss
@@ -246,12 +247,14 @@ files:
246
247
  - app/models/govuk_publishing_components/component_doc_resolver.rb
247
248
  - app/models/govuk_publishing_components/component_example.rb
248
249
  - app/models/govuk_publishing_components/shared_accessibility_criteria.rb
250
+ - app/views/components/_back_link.html.erb
249
251
  - app/views/components/_fieldset.html.erb
250
252
  - app/views/components/_label.html.erb
251
253
  - app/views/components/_radio.html.erb
252
254
  - app/views/components/_task_list.html.erb
253
255
  - app/views/components/_task_list_header.html.erb
254
256
  - app/views/components/_task_list_related.html.erb
257
+ - app/views/components/docs/back_link.yml
255
258
  - app/views/components/docs/fieldset.yml
256
259
  - app/views/components/docs/label.yml
257
260
  - app/views/components/docs/radio.yml