govuk-components 3.0.3 → 3.0.4
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 +4 -4
- data/README.md +8 -9
- data/app/helpers/govuk_back_to_top_link_helper.rb +2 -2
- data/lib/govuk/components/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c3bf635c37adb87e738a728912c6e69c23fb78b8294bc5ec88051e2bf426c264
|
|
4
|
+
data.tar.gz: da828729be36c2602f70b404c4a5a81d31ebb079fca7aaa7107e77329c74c771
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 11be36a8bcd99438c882feb99e4428bded8aa524f80764fd62f640a723eb5e6fe864308b309735de5f1ed4d90f568de653aef0162bf57f802cc6d1b2e89cd130
|
|
7
|
+
data.tar.gz: 12b3f543f555c0bf7291e4295ff0f50c84c656833d74768fb8a142df87a48b30fa8b3cae269ecfeb8dfab2673814159a6013562fc6396424d45666c8dbcbcfbd
|
data/README.md
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
[](https://rubygems.org/gems/govuk-components)
|
|
7
7
|
[](https://codeclimate.com/github/DFE-Digital/govuk-components/test_coverage)
|
|
8
8
|
[](https://github.com/DFE-Digital/govuk-components/blob/main/LICENSE)
|
|
9
|
-
[](https://design-system.service.gov.uk)
|
|
10
|
+
[](https://weblog.rubyonrails.org/releases/)
|
|
11
11
|
[](https://www.ruby-lang.org/en/downloads/)
|
|
12
12
|
|
|
13
13
|
This gem provides a suite of reusable components for the [GOV.UK Design System](https://design-system.service.gov.uk/). It is intended to provide a lightweight alternative to the [GOV.UK Publishing Components](https://github.com/alphagov/govuk_publishing_components) library and is built with GitHub’s [ViewComponent](https://github.com/github/view_component) framework.
|
|
@@ -21,8 +21,7 @@ All of the non-form components from the GOV.UK Design System are implemented by
|
|
|
21
21
|
The provided components are:
|
|
22
22
|
|
|
23
23
|
* [Accordion](https://govuk-components.netlify.app/components/accordion)
|
|
24
|
-
* [Back link](https://govuk-components.netlify.app/components/back-
|
|
25
|
-
* [Back to top link](https://govuk-components.netlify.app/components/back-to-top-link)
|
|
24
|
+
* [Back link](https://govuk-components.netlify.app/components/back-link)
|
|
26
25
|
* [Breadcrumbs](https://govuk-components.netlify.app/components/breadcrumbs)
|
|
27
26
|
* [Cookie banner](https://govuk-components.netlify.app/components/cookie-banner)
|
|
28
27
|
* [Details](https://govuk-components.netlify.app/components/details)
|
|
@@ -32,16 +31,16 @@ The provided components are:
|
|
|
32
31
|
* [Notification banner](https://govuk-components.netlify.app/components/notification-banner)
|
|
33
32
|
* [Panel](https://govuk-components.netlify.app/components/panel)
|
|
34
33
|
* [Phase banner](https://govuk-components.netlify.app/components/phase-banner)
|
|
35
|
-
* [Skip link](https://govuk-components.netlify.app/components/skip-link)
|
|
36
34
|
* [Start button](https://govuk-components.netlify.app/components/start-button)
|
|
37
35
|
* [Summary list](https://govuk-components.netlify.app/components/summary-list)
|
|
38
36
|
* [Tabs](https://govuk-components.netlify.app/components/tabs)
|
|
39
37
|
* [Tables](https://govuk-components.netlify.app/components/table)
|
|
40
|
-
* [Tags](https://govuk-components.netlify.app/components/
|
|
38
|
+
* [Tags](https://govuk-components.netlify.app/components/tag)
|
|
41
39
|
* [Warning text](https://govuk-components.netlify.app/components/warning-text)
|
|
42
40
|
|
|
43
|
-
This library also provides [
|
|
44
|
-
[
|
|
41
|
+
This library also provides helpers for creating [links](https://govuk-components.netlify.app/helpers/link),
|
|
42
|
+
[buttons](https://govuk-components.netlify.app/helpers/button), [skip links](https://govuk-components.netlify.app/helpers/skip-link)
|
|
43
|
+
and [back to top links](https://govuk-components.netlify.app/helpers/back-to-top-link).
|
|
45
44
|
|
|
46
45
|
## Alternative syntax
|
|
47
46
|
|
|
@@ -89,7 +88,7 @@ Here are the rendered tabs:
|
|
|
89
88
|
|
|
90
89
|

|
|
91
90
|
|
|
92
|
-
For examples on usage see the [guide page](https://
|
|
91
|
+
For examples on usage see the [guide page](https://govuk-components.netlify.app/).
|
|
93
92
|
|
|
94
93
|
## Setup
|
|
95
94
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
module GovukBackToTopLinkHelper
|
|
2
|
-
def govuk_back_to_top_link
|
|
3
|
-
link_to
|
|
2
|
+
def govuk_back_to_top_link(target = '#top')
|
|
3
|
+
link_to(target, class: 'govuk-link govuk-link--no-visited-state') do
|
|
4
4
|
<<-HTML.squish.html_safe
|
|
5
5
|
<svg class="app-back-to-top__icon" xmlns="http://www.w3.org/2000/svg" width="13" height="17" viewBox="0 0 13 17">
|
|
6
6
|
<path fill="currentColor" d="M6.5 0L0 6.5 1.4 8l4-4v12.7h2V4l4.3 4L13 6.4z"></path>
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: govuk-components
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- DfE developers
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-05-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activemodel
|