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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 123b830a78e9d652ef53388d242717a0f547e175dedf4e2af5e88bcbc170d7f7
|
|
4
|
+
data.tar.gz: 3d70addb10c631e0d6327b5e6716cd7f9e419f85276d527d362ae76dc0dc4fbb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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
|
[](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.
|
|
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.
|
|
29
|
-
* [Back link](https://govuk-components.
|
|
30
|
-
* [Breadcrumbs](https://govuk-components.
|
|
31
|
-
* [Cookie banner](https://govuk-components.
|
|
32
|
-
* [Details](https://govuk-components.
|
|
33
|
-
* [Exit this page](https://govuk-components.
|
|
34
|
-
* [GOV.UK footer](https://govuk-components.
|
|
35
|
-
* [GOV.UK header](https://govuk-components.
|
|
36
|
-
* [Inset text](https://govuk-components.
|
|
37
|
-
* [Notification banner](https://govuk-components.
|
|
38
|
-
* [Panel](https://govuk-components.
|
|
39
|
-
* [Pagination](https://govuk-components.
|
|
40
|
-
* [Phase banner](https://govuk-components.
|
|
41
|
-
* [Section break](https://govuk-components.
|
|
42
|
-
* [Start button](https://govuk-components.
|
|
43
|
-
* [Summary list](https://govuk-components.
|
|
44
|
-
* [Tabs](https://govuk-components.
|
|
45
|
-
* [Tables](https://govuk-components.
|
|
46
|
-
* [Tags](https://govuk-components.
|
|
47
|
-
* [Task list](https://govuk-components.
|
|
48
|
-
* [Warning text](https://govuk-components.
|
|
49
|
-
|
|
50
|
-
This library also provides helpers for creating [links](https://govuk-components.
|
|
51
|
-
[buttons](https://govuk-components.
|
|
52
|
-
and [back to top links](https://govuk-components.
|
|
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
|

|
|
99
99
|
|
|
100
|
-
For examples on usage see the [guide page](https://govuk-components.
|
|
100
|
+
For examples on usage see the [guide page](https://govuk-components.x-govuk.org/).
|
|
101
101
|
|
|
102
102
|
## Setup
|
|
103
103
|
|
data/app/components/govuk_component/service_navigation_component/navigation_item_component.rb
CHANGED
|
@@ -76,8 +76,13 @@ private
|
|
|
76
76
|
end
|
|
77
77
|
|
|
78
78
|
def aria_current
|
|
79
|
-
|
|
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
|
-
|
|
86
|
+
nil
|
|
82
87
|
end
|
|
83
88
|
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.
|
|
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-
|
|
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
|