govuk-components 3.0.3 → 3.0.4

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: a229df44a0c397ee14a4b26c7a35053f0c9aa6e1900c443d1d25196947a8ff74
4
- data.tar.gz: edacba877b2aa74e44453eee0ad0648fbd28b723cca4a527adac78f8f21e402d
3
+ metadata.gz: c3bf635c37adb87e738a728912c6e69c23fb78b8294bc5ec88051e2bf426c264
4
+ data.tar.gz: da828729be36c2602f70b404c4a5a81d31ebb079fca7aaa7107e77329c74c771
5
5
  SHA512:
6
- metadata.gz: 2655f993ae5663cd9e22ac642bed9bf764caded1f04f27fc1051eb0c82b64de465491872478c546565cf501e0d36c74279bccf0a55e716e5f542125a0a405587
7
- data.tar.gz: 2468c74b30988168652920314ae1ea4e09e0b4075b7d1c7ae7fdd26ed8288116b436f110e522af6bd7b658e7f9488a1747e33d7eb322d4b87b180bc481359b5b
6
+ metadata.gz: 11be36a8bcd99438c882feb99e4428bded8aa524f80764fd62f640a723eb5e6fe864308b309735de5f1ed4d90f568de653aef0162bf57f802cc6d1b2e89cd130
7
+ data.tar.gz: 12b3f543f555c0bf7291e4295ff0f50c84c656833d74768fb8a142df87a48b30fa8b3cae269ecfeb8dfab2673814159a6013562fc6396424d45666c8dbcbcfbd
data/README.md CHANGED
@@ -6,8 +6,8 @@
6
6
  [![Gem](https://img.shields.io/gem/dt/govuk-components?logo=rubygems)](https://rubygems.org/gems/govuk-components)
7
7
  [![Test Coverage](https://api.codeclimate.com/v1/badges/cbcbc140f300b920d833/test_coverage)](https://codeclimate.com/github/DFE-Digital/govuk-components/test_coverage)
8
8
  [![GitHub license](https://img.shields.io/github/license/DFE-Digital/govuk-components)](https://github.com/DFE-Digital/govuk-components/blob/main/LICENSE)
9
- [![GOV.UK Design System Version](https://img.shields.io/badge/GOV.UK%20Design%20System-4.0.1-brightgreen)](https://design-system.service.gov.uk)
10
- [![Rails](https://img.shields.io/badge/Rails-6.1.4.4%20%E2%95%B1%207.0.2-E16D6D)](https://weblog.rubyonrails.org/releases/)
9
+ [![GOV.UK Design System Version](https://img.shields.io/badge/GOV.UK%20Design%20System-4.1.0-brightgreen)](https://design-system.service.gov.uk)
10
+ [![Rails](https://img.shields.io/badge/Rails-6.1.5%20%E2%95%B1%207.0.3-E16D6D)](https://weblog.rubyonrails.org/releases/)
11
11
  [![Ruby](https://img.shields.io/badge/Ruby-2.7.5%20%20%E2%95%B1%203.0.3%20%20%E2%95%B1%203.1.0-E16D6D)](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-links)
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/tags)
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 [link](https://govuk-components.netlify.app/helpers/link) and
44
- [button](https://govuk-components.netlify.app/helpers/button) helpers.
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
  ![Tabs preview](docs/images/tabs.png)
91
90
 
92
- For examples on usage see the [guide page](https://dfe-digital.github.io/govuk-components/).
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 '#top', class: 'govuk-link govuk-link--no-visited-state' do
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>
@@ -1,5 +1,5 @@
1
1
  module Govuk
2
2
  module Components
3
- VERSION = '3.0.3'.freeze
3
+ VERSION = '3.0.4'.freeze
4
4
  end
5
5
  end
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.3
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-03-03 00:00:00.000000000 Z
11
+ date: 2022-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel