govuk-components 5.13.0 → 5.13.1

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
  SHA256:
3
- metadata.gz: c89bb1fe65604aadc708e12699a48d43c35da1b2c9d241431f26f836ce069dbd
4
- data.tar.gz: 1d10a73b3e15be50910663d746c5edf0d5007d44c1175623e3f8dc8088519f1d
3
+ metadata.gz: 123b830a78e9d652ef53388d242717a0f547e175dedf4e2af5e88bcbc170d7f7
4
+ data.tar.gz: 3d70addb10c631e0d6327b5e6716cd7f9e419f85276d527d362ae76dc0dc4fbb
5
5
  SHA512:
6
- metadata.gz: a5dcc959d8eee3690fe9ee1a0e64be7ea2357df9ec646f5f5d94507b70aa5917986dbdfd6ffec1bc9deca61b1a4f1f0a45b7bd2e120686b04463c240ca438356
7
- data.tar.gz: dc8c1b08489a0c882cc33c0bf6943c46b2ce5bd909176d7d18bc4eef4ccd2efe26ecca92631aa6df28b344825679e597b2df2076d1bc172fb58a6eec303e8fd5
6
+ metadata.gz: eb94a5a0ee9cfc3f964a53a0c4aa44fb841697240c4c80b7f420a7a0c2b73e06243df7be949813777f7d9a455ac57fb51706b51a9b7be73782dd4849b95023a2
7
+ data.tar.gz: bc0163e115016dac5c6fc62640d8d62f2e4e7b28fbaef143acaff086a4e1abbd3737dacfd4089d47526763d09bfa444d76b27e2a93085e87bed93c04b3f13316
data/README.md CHANGED
@@ -15,41 +15,41 @@ It aims to implement the functionality from the original Nunjucks macros in a wa
15
15
 
16
16
  ## Documentation
17
17
 
18
- The gem comes with [a full guide](https://govuk-components.netlify.app/) that covers most aspects of day-to-day use, along with code and output examples. The examples in the guide (and the guide itself) are built using the components, so it will always be up to date.
18
+ The gem comes with [a full guide](https://govuk-components.x-govuk.org/) that covers most aspects of day-to-day use, along with code and output examples. The examples in the guide (and the guide itself) are built using the components, so it will always be up to date.
19
19
 
20
20
  [![Netlify Status](https://api.netlify.com/api/v1/badges/d40a5a0a-b086-4c35-b046-97fbcbf9f219/deploy-status)](https://app.netlify.com/sites/govuk-components/deploys)
21
21
 
22
22
  ## What’s included?
23
23
 
24
- All of the non-form components from the GOV.UK Design System are implemented by this library as ViewComponents. Form components are implemented by the [GOV.UK Form Builder](https://govuk-form-builder.netlify.app/).
24
+ All of the non-form components from the GOV.UK Design System are implemented by this library as ViewComponents. Form components are implemented by the [GOV.UK Form Builder](https://govuk-form-builder.x-govuk.org/).
25
25
 
26
26
  The provided components are:
27
27
 
28
- * [Accordion](https://govuk-components.netlify.app/components/accordion)
29
- * [Back link](https://govuk-components.netlify.app/components/back-link)
30
- * [Breadcrumbs](https://govuk-components.netlify.app/components/breadcrumbs)
31
- * [Cookie banner](https://govuk-components.netlify.app/components/cookie-banner)
32
- * [Details](https://govuk-components.netlify.app/components/details)
33
- * [Exit this page](https://govuk-components.netlify.app/components/exit-this-page)
34
- * [GOV.UK footer](https://govuk-components.netlify.app/components/footer)
35
- * [GOV.UK header](https://govuk-components.netlify.app/components/header)
36
- * [Inset text](https://govuk-components.netlify.app/components/inset-text)
37
- * [Notification banner](https://govuk-components.netlify.app/components/notification-banner)
38
- * [Panel](https://govuk-components.netlify.app/components/panel)
39
- * [Pagination](https://govuk-components.netlify.app/components/pagination)
40
- * [Phase banner](https://govuk-components.netlify.app/components/phase-banner)
41
- * [Section break](https://govuk-components.netlify.app/components/section-break)
42
- * [Start button](https://govuk-components.netlify.app/components/start-button)
43
- * [Summary list](https://govuk-components.netlify.app/components/summary-list)
44
- * [Tabs](https://govuk-components.netlify.app/components/tabs)
45
- * [Tables](https://govuk-components.netlify.app/components/table)
46
- * [Tags](https://govuk-components.netlify.app/components/tag)
47
- * [Task list](https://govuk-components.netlify.app/components/task-list)
48
- * [Warning text](https://govuk-components.netlify.app/components/warning-text)
49
-
50
- This library also provides helpers for creating [links](https://govuk-components.netlify.app/helpers/link),
51
- [buttons](https://govuk-components.netlify.app/helpers/button), [skip links](https://govuk-components.netlify.app/helpers/skip-link)
52
- and [back to top links](https://govuk-components.netlify.app/helpers/back-to-top-link).
28
+ * [Accordion](https://govuk-components.x-govuk.org/components/accordion)
29
+ * [Back link](https://govuk-components.x-govuk.org/components/back-link)
30
+ * [Breadcrumbs](https://govuk-components.x-govuk.org/components/breadcrumbs)
31
+ * [Cookie banner](https://govuk-components.x-govuk.org/components/cookie-banner)
32
+ * [Details](https://govuk-components.x-govuk.org/components/details)
33
+ * [Exit this page](https://govuk-components.x-govuk.org/components/exit-this-page)
34
+ * [GOV.UK footer](https://govuk-components.x-govuk.org/components/footer)
35
+ * [GOV.UK header](https://govuk-components.x-govuk.org/components/header)
36
+ * [Inset text](https://govuk-components.x-govuk.org/components/inset-text)
37
+ * [Notification banner](https://govuk-components.x-govuk.org/components/notification-banner)
38
+ * [Panel](https://govuk-components.x-govuk.org/components/panel)
39
+ * [Pagination](https://govuk-components.x-govuk.org/components/pagination)
40
+ * [Phase banner](https://govuk-components.x-govuk.org/components/phase-banner)
41
+ * [Section break](https://govuk-components.x-govuk.org/components/section-break)
42
+ * [Start button](https://govuk-components.x-govuk.org/components/start-button)
43
+ * [Summary list](https://govuk-components.x-govuk.org/components/summary-list)
44
+ * [Tabs](https://govuk-components.x-govuk.org/components/tabs)
45
+ * [Tables](https://govuk-components.x-govuk.org/components/table)
46
+ * [Tags](https://govuk-components.x-govuk.org/components/tag)
47
+ * [Task list](https://govuk-components.x-govuk.org/components/task-list)
48
+ * [Warning text](https://govuk-components.x-govuk.org/components/warning-text)
49
+
50
+ This library also provides helpers for creating [links](https://govuk-components.x-govuk.org/helpers/link),
51
+ [buttons](https://govuk-components.x-govuk.org/helpers/button), [skip links](https://govuk-components.x-govuk.org/helpers/skip-link)
52
+ and [back to top links](https://govuk-components.x-govuk.org/helpers/back-to-top-link).
53
53
 
54
54
  ## Alternative syntax
55
55
 
@@ -97,7 +97,7 @@ Here are the rendered tabs:
97
97
 
98
98
  ![Tabs preview](docs/images/tabs.png)
99
99
 
100
- For examples on usage see the [guide page](https://govuk-components.netlify.app/).
100
+ For examples on usage see the [guide page](https://govuk-components.x-govuk.org/).
101
101
 
102
102
  ## Setup
103
103
 
@@ -76,8 +76,13 @@ private
76
76
  end
77
77
 
78
78
  def aria_current
79
- current = (current?) ? 'page' : true
79
+ { aria: { current: aria_current_value } }
80
+ end
81
+
82
+ def aria_current_value
83
+ return 'page' if current?
84
+ return true if active?
80
85
 
81
- { aria: { current: } }
86
+ nil
82
87
  end
83
88
  end
@@ -1,5 +1,5 @@
1
1
  module Govuk
2
2
  module Components
3
- VERSION = '5.13.0'.freeze
3
+ VERSION = '5.13.1'.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: 5.13.0
4
+ version: 5.13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - DfE developers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-10-29 00:00:00.000000000 Z
11
+ date: 2025-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: html-attributes-utils