govuk_publishing_components 3.2.1 → 3.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/components/_back-link.scss +33 -0
- data/app/assets/stylesheets/govuk_publishing_components/application.scss +1 -0
- data/app/views/components/_back_link.html.erb +6 -0
- data/app/views/components/docs/back_link.yml +10 -0
- data/config/locales/cy.yml +2 -0
- data/config/locales/en.yml +2 -0
- data/lib/govuk_publishing_components/version.rb +1 -1
- metadata +4 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6824adb0ac3f33d0beeb80f026ac1e5e7f28d38b
|
4
|
+
data.tar.gz: af7894128522651abec009b43e12e37387f86a5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
+
}
|
@@ -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: '#'
|
data/config/locales/cy.yml
CHANGED
data/config/locales/en.yml
CHANGED
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.
|
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
|