govuk_tech_docs 6.1.0 → 6.2.0
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/.github/ISSUE_TEMPLATE/bug.yaml +69 -0
- data/.github/ISSUE_TEMPLATE/config.yaml +6 -0
- data/.github/ISSUE_TEMPLATE/enhancement.yaml +25 -0
- data/.github/pull_request_template.md +22 -8
- data/.github/workflows/dependency-review.yaml +17 -0
- data/.github/workflows/test.yaml +1 -1
- data/.nvmrc +1 -1
- data/.ruby-version +1 -1
- data/CHANGELOG.md +9 -2
- data/example/.ruby-version +1 -1
- data/govuk_tech_docs.gemspec +22 -21
- data/lib/govuk_tech_docs/version.rb +1 -1
- data/node_modules/govuk-frontend/dist/govuk/all.bundle.js +1 -1
- data/node_modules/govuk-frontend/dist/govuk/all.bundle.mjs +1 -1
- data/node_modules/govuk-frontend/dist/govuk/common/govuk-frontend-version.mjs +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/_accordion.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/_index.scss +3 -1
- data/node_modules/govuk-frontend/dist/govuk/components/back-link/_back-link.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/back-link/_index.scss +7 -3
- data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/_breadcrumbs.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/_index.scss +8 -4
- data/node_modules/govuk-frontend/dist/govuk/components/button/_button.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/button/_index.scss +3 -1
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/_character-count.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/_index.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/_checkboxes.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/_index.scss +10 -6
- data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/_cookie-banner.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/_index.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/components/date-input/_date-input.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/date-input/_index.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/components/details/_details.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/details/_index.scss +3 -1
- data/node_modules/govuk-frontend/dist/govuk/components/error-message/_error-message.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/error-message/_index.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/_error-summary.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/_index.scss +3 -1
- data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/_exit-this-page.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/_index.scss +3 -1
- data/node_modules/govuk-frontend/dist/govuk/components/fieldset/_fieldset.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/fieldset/_index.scss +3 -1
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/_file-upload.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/_index.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/footer/_footer.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/footer/_index.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/components/header/_header.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/header/_index.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/components/hint/_hint.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/hint/_index.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/components/input/_index.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/components/input/_input.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/inset-text/_index.scss +5 -1
- data/node_modules/govuk-frontend/dist/govuk/components/inset-text/_inset-text.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/label/_index.scss +3 -1
- data/node_modules/govuk-frontend/dist/govuk/components/label/_label.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/_index.scss +6 -2
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/_notification-banner.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/_index.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/_pagination.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/panel/_index.scss +3 -1
- data/node_modules/govuk-frontend/dist/govuk/components/panel/_panel.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/_index.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/_password-input.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/_index.scss +3 -1
- data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/_phase-banner.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/radios/_index.scss +14 -10
- data/node_modules/govuk-frontend/dist/govuk/components/radios/_radios.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/select/_index.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/components/select/_select.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/_index.scss +5 -1
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/_service-navigation.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/skip-link/_index.scss +7 -3
- data/node_modules/govuk-frontend/dist/govuk/components/skip-link/_skip-link.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/_index.scss +15 -2
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/_summary-list.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/table/_index.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/table/_table.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/tabs/_index.scss +5 -2
- data/node_modules/govuk-frontend/dist/govuk/components/tabs/_tabs.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/tag/_index.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/tag/_tag.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/task-list/_index.scss +6 -2
- data/node_modules/govuk-frontend/dist/govuk/components/task-list/_task-list.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/textarea/_index.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/components/textarea/_textarea.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/warning-text/_index.scss +3 -1
- data/node_modules/govuk-frontend/dist/govuk/components/warning-text/_warning-text.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/core/_global-styles.scss +4 -0
- data/node_modules/govuk-frontend/dist/govuk/core/_index.scss +4 -0
- data/node_modules/govuk-frontend/dist/govuk/core/_links.scss +8 -0
- data/node_modules/govuk-frontend/dist/govuk/core/_lists.scss +10 -1
- data/node_modules/govuk-frontend/dist/govuk/core/_section-break.scss +5 -0
- data/node_modules/govuk-frontend/dist/govuk/core/_typography.scss +14 -13
- data/node_modules/govuk-frontend/dist/govuk/custom-properties/_frontend-version.scss +1 -1
- data/node_modules/govuk-frontend/dist/govuk/custom-properties/_functional-colours.scss +5 -0
- data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.js +1 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_colour.scss +38 -70
- data/node_modules/govuk-frontend/dist/govuk/helpers/_device-pixels.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/helpers/_focused.scss +1 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_grid.scss +3 -2
- data/node_modules/govuk-frontend/dist/govuk/helpers/_links.scss +4 -4
- data/node_modules/govuk-frontend/dist/govuk/helpers/_media-queries.scss +17 -15
- data/node_modules/govuk-frontend/dist/govuk/helpers/_shape-arrow.scss +2 -2
- data/node_modules/govuk-frontend/dist/govuk/helpers/_spacing.scss +19 -13
- data/node_modules/govuk-frontend/dist/govuk/helpers/_typography.scss +48 -26
- data/node_modules/govuk-frontend/dist/govuk/helpers/_visually-hidden.scss +13 -11
- data/node_modules/govuk-frontend/dist/govuk/objects/_grid.scss +4 -2
- data/node_modules/govuk-frontend/dist/govuk/objects/_width-container.scss +10 -9
- data/node_modules/govuk-frontend/dist/govuk/overrides/_display.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/overrides/_index.scss +3 -0
- data/node_modules/govuk-frontend/dist/govuk/overrides/_spacing.scss +5 -1
- data/node_modules/govuk-frontend/dist/govuk/overrides/_text-align.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/overrides/_typography.scss +7 -2
- data/node_modules/govuk-frontend/dist/govuk/overrides/_width.scss +3 -0
- data/node_modules/govuk-frontend/dist/govuk/settings/_assets.scss +18 -0
- data/node_modules/govuk-frontend/dist/govuk/settings/_colours-functional.scss +28 -4
- data/node_modules/govuk-frontend/dist/govuk/settings/_links.scss +3 -2
- data/node_modules/govuk-frontend/dist/govuk/settings/_measurements.scss +8 -16
- data/node_modules/govuk-frontend/dist/govuk/settings/_typography-font.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/settings/_warnings.scss +15 -2
- data/node_modules/govuk-frontend/dist/govuk/tools/_exports.scss +3 -2
- data/node_modules/govuk-frontend/dist/govuk/tools/_font-url.scss +13 -5
- data/node_modules/govuk-frontend/dist/govuk/tools/_if.scss +24 -0
- data/node_modules/govuk-frontend/dist/govuk/tools/_image-url.scss +13 -5
- data/node_modules/govuk-frontend/dist/govuk/tools/_index.scss +1 -0
- data/node_modules/govuk-frontend/dist/govuk/tools/_px-to-em.scss +5 -3
- data/node_modules/govuk-frontend/dist/govuk/tools/_px-to-rem.scss +4 -2
- data/node_modules/govuk-frontend/dist/govuk/utilities/_clearfix.scss +3 -0
- data/node_modules/govuk-frontend/dist/govuk/utilities/_index.scss +1 -0
- data/node_modules/govuk-frontend/dist/govuk/utilities/_visually-hidden.scss +3 -0
- data/node_modules/govuk-frontend/dist/govuk-prototype-kit/init.scss +3 -1
- data/package-lock.json +1259 -4963
- data/package.json +4 -4
- metadata +69 -93
- data/.github/ISSUE_TEMPLATE.md +0 -13
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5b63d996648a19346b3271b19f10e30b6e81338617ee36fe348ec7060ecc7635
|
|
4
|
+
data.tar.gz: 790a7e766bf65ab9ab5a7b45dbff30bfa85d03761275938f8517808869cb940c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 31c6547961ed29eb9e56b4c2f761257900d18429e4fd7c73fa151a7fc21e7751c78a8d1c9ccf5c57a4d8f13e6f471384e8900307179b9f82115491f4349d3275
|
|
7
|
+
data.tar.gz: c0f8a093d245c3ba9ea5c9933eb4eb5f38d1a90fbc4a7dd74ef6b83531b2b3b51d773d7457ad760ab3f214a9b38b1734be839f73709a29decc33ed2a53da2083
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
name: 🐛 Bug report
|
|
2
|
+
description: Something is broken or not working as expected
|
|
3
|
+
title: "[Bug]: "
|
|
4
|
+
labels: ["bug"]
|
|
5
|
+
body:
|
|
6
|
+
- type: markdown
|
|
7
|
+
attributes:
|
|
8
|
+
value: |
|
|
9
|
+
Thank you for reporting a bug in `tech-docs-gem`
|
|
10
|
+
Please include as much detail as you can. This will help us prioritise this issue correctly.
|
|
11
|
+
|
|
12
|
+
- type: textarea
|
|
13
|
+
id: tech-docs-gem-version
|
|
14
|
+
attributes:
|
|
15
|
+
label: tech-docs-gem version
|
|
16
|
+
description: Which version of the tech docs gem are you using
|
|
17
|
+
validations:
|
|
18
|
+
required: true
|
|
19
|
+
|
|
20
|
+
- type: textarea
|
|
21
|
+
id: ruby-version
|
|
22
|
+
attributes:
|
|
23
|
+
label: ruby version
|
|
24
|
+
description: Which version of the ruby are you using (if known)
|
|
25
|
+
validations:
|
|
26
|
+
required: false
|
|
27
|
+
|
|
28
|
+
- type: textarea
|
|
29
|
+
id: description
|
|
30
|
+
attributes:
|
|
31
|
+
label: What happened?
|
|
32
|
+
description: Describe the problem and what you expected to happen.
|
|
33
|
+
validations:
|
|
34
|
+
required: true
|
|
35
|
+
|
|
36
|
+
- type: textarea
|
|
37
|
+
id: reproduction
|
|
38
|
+
attributes:
|
|
39
|
+
label: Steps to reproduce
|
|
40
|
+
description: |
|
|
41
|
+
Tell us how to reproduce the issue.
|
|
42
|
+
Example:
|
|
43
|
+
1. Run `bundle exec middleman serve`
|
|
44
|
+
2. Visit `/guides/setup`
|
|
45
|
+
3. See white screen of death
|
|
46
|
+
placeholder: Step-by-step instructions
|
|
47
|
+
validations:
|
|
48
|
+
required: true
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
- type: textarea
|
|
52
|
+
id: logs
|
|
53
|
+
attributes:
|
|
54
|
+
label: Logs or error output
|
|
55
|
+
description: Any error messages or logs if available
|
|
56
|
+
validations:
|
|
57
|
+
required: false
|
|
58
|
+
|
|
59
|
+
- type: checkboxes
|
|
60
|
+
id: checks
|
|
61
|
+
attributes:
|
|
62
|
+
label: Checks
|
|
63
|
+
options:
|
|
64
|
+
- label: I have searched for existing issues
|
|
65
|
+
required: true
|
|
66
|
+
- label: I have checked other users also have this issue
|
|
67
|
+
required: true
|
|
68
|
+
- label: I have checked that I am not using a local or forked repository with untested changes
|
|
69
|
+
required: true
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
name: ✨ New or updated feature
|
|
2
|
+
description: Suggest a new feature or improvement
|
|
3
|
+
title: "[Enhancement]: "
|
|
4
|
+
labels: ["enhancement"]
|
|
5
|
+
body:
|
|
6
|
+
- type: textarea
|
|
7
|
+
id: problem
|
|
8
|
+
attributes:
|
|
9
|
+
label: What should change?
|
|
10
|
+
description: What would fix the issue? Is this something you think should behave differently, or something that you currently cannot do?
|
|
11
|
+
validations:
|
|
12
|
+
required: true
|
|
13
|
+
|
|
14
|
+
- type: textarea
|
|
15
|
+
id: user-need
|
|
16
|
+
attributes:
|
|
17
|
+
label: User need
|
|
18
|
+
description: Do you have evidence that the change will meet the needs of users? Let us know about any user research or testing you’ve done
|
|
19
|
+
|
|
20
|
+
- type: textarea
|
|
21
|
+
id: proposal
|
|
22
|
+
attributes:
|
|
23
|
+
label: Proposed solution
|
|
24
|
+
description: Optional — describe how you think this could work or a solution you have in mind
|
|
25
|
+
|
|
@@ -1,14 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
## Please fill in the sections below
|
|
1
|
+
## Proposed changes
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
-->
|
|
3
|
+
### What changed
|
|
6
4
|
|
|
7
|
-
|
|
5
|
+
Describe the changes made and the impact the changes have.
|
|
8
6
|
|
|
9
|
-
|
|
7
|
+
## Related issue or tracking reference
|
|
10
8
|
|
|
9
|
+
You should have an open GitHub issue that this PR will fix.
|
|
11
10
|
|
|
12
|
-
|
|
11
|
+
- Fixes #
|
|
12
|
+
- Relates to #
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
> If there is no issue, please open one or please explain why one is not needed (for example small maintenance change, routine dependency update).
|
|
15
|
+
|
|
16
|
+
## Screenshots or examples (if relevant)
|
|
17
|
+
|
|
18
|
+
Include screenshots, logs, or rendered output if this change affects layout or behaviour.
|
|
19
|
+
|
|
20
|
+
## Checklist
|
|
21
|
+
|
|
22
|
+
Before you request approval you should confirm that:
|
|
23
|
+
|
|
24
|
+
- [ ] the pull request has a clear title with a short description about the update in the documentation
|
|
25
|
+
- [ ] GitHub actions all pass
|
|
26
|
+
- [ ] you have tested the changes with a fresh build against the latest version of the `tech-docs-gem`
|
|
27
|
+
- [ ] you have linked this PR to an issue (or explained why none exists)
|
|
28
|
+
- [ ] you have updated documentation if needed
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
name: 'Dependency Review'
|
|
2
|
+
on: [pull_request]
|
|
3
|
+
|
|
4
|
+
permissions:
|
|
5
|
+
contents: read
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
dependency-review:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
steps:
|
|
11
|
+
- name: 'Checkout Repository'
|
|
12
|
+
uses: actions/checkout@v6
|
|
13
|
+
- name: 'Dependency Review'
|
|
14
|
+
uses: actions/dependency-review-action@v4
|
|
15
|
+
with:
|
|
16
|
+
fail-on-severity: high
|
|
17
|
+
show-patched-versions: true
|
data/.github/workflows/test.yaml
CHANGED
data/.nvmrc
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
22
|
data/.ruby-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.
|
|
1
|
+
3.3.11
|
data/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
## 6.2.0
|
|
2
|
+
|
|
3
|
+
- Remove support for Ruby 3.2, by updating `required_ruby_version` to `>= 3.3.0`
|
|
4
|
+
- Unpin ruby gem versions
|
|
5
|
+
- Bump `.nvmrc` to use npm version 22
|
|
6
|
+
- Updates `package.json` and `package-lock.json` to patch security vulnerabilities
|
|
7
|
+
|
|
8
|
+
## 6.1.0
|
|
2
9
|
|
|
3
10
|
- [Add custom extensions to render GOV.UK Design System nunjucks components](https://github.com/alphagov/tech-docs-gem/pull/443/changes)
|
|
4
11
|
- [Fix inconsistent active tab behaviour](https://github.com/alphagov/tech-docs-gem/pull/452)
|
|
5
12
|
|
|
6
|
-
|
|
13
|
+
## 6.0.1
|
|
7
14
|
|
|
8
15
|
- Update version of `openapi3_parser` allowing support for Ruby 4.0.
|
|
9
16
|
|
data/example/.ruby-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.
|
|
1
|
+
3.2.6
|
data/govuk_tech_docs.gemspec
CHANGED
|
@@ -33,35 +33,36 @@ Gem::Specification.new do |spec|
|
|
|
33
33
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
34
34
|
spec.require_paths = %w[lib]
|
|
35
35
|
|
|
36
|
-
spec.required_ruby_version = ">= 3.
|
|
36
|
+
spec.required_ruby_version = ">= 3.3.0"
|
|
37
37
|
|
|
38
|
-
spec.add_dependency "autoprefixer-rails"
|
|
39
|
-
spec.add_dependency "
|
|
40
|
-
spec.add_dependency "
|
|
41
|
-
spec.add_dependency "chronic", "~> 0.10.2"
|
|
42
|
-
spec.add_dependency "concurrent-ruby", "1.3.4" # 1.3.5 introduced a change that breaks activesupport, and so middleman
|
|
38
|
+
spec.add_dependency "autoprefixer-rails"
|
|
39
|
+
spec.add_dependency "chronic"
|
|
40
|
+
spec.add_dependency "concurrent-ruby"
|
|
43
41
|
spec.add_dependency "csv" # TODO: remove once tilt declares this itself.
|
|
44
|
-
spec.add_dependency "haml", "~> 6.0"
|
|
45
|
-
spec.add_dependency "middleman"
|
|
46
|
-
spec.add_dependency "middleman-autoprefixer"
|
|
47
|
-
spec.add_dependency "middleman-compass"
|
|
42
|
+
spec.add_dependency "haml", "~> 6.0" # middleman-core (4.6.3) depends on haml (>= 4.0.5, < 7)
|
|
43
|
+
spec.add_dependency "middleman"
|
|
44
|
+
spec.add_dependency "middleman-autoprefixer"
|
|
45
|
+
spec.add_dependency "middleman-compass"
|
|
48
46
|
spec.add_dependency "middleman-livereload"
|
|
49
47
|
spec.add_dependency "middleman-search-gds"
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
=begin
|
|
49
|
+
middleman-sprockets is very old and out of date. V4.1.0 has a breaking change. Will look to replace with gem "dartsass-sprockets" or uses sass in the package.json
|
|
50
|
+
=end
|
|
51
|
+
spec.add_dependency "middleman-sprockets", "4.0.0"
|
|
52
|
+
spec.add_dependency "middleman-syntax"
|
|
52
53
|
spec.add_dependency "mutex_m" # TODO: remove once activesupport declares this itself.
|
|
53
54
|
spec.add_dependency "nokogiri"
|
|
54
|
-
spec.add_dependency "openapi3_parser"
|
|
55
|
-
spec.add_dependency "redcarpet"
|
|
56
|
-
spec.add_dependency "sassc-embedded"
|
|
57
|
-
|
|
58
|
-
spec.add_development_dependency "benchmark"
|
|
55
|
+
spec.add_dependency "openapi3_parser"
|
|
56
|
+
spec.add_dependency "redcarpet"
|
|
57
|
+
spec.add_dependency "sassc-embedded"
|
|
59
58
|
spec.add_dependency "schmooze", "~> 0.2.0"
|
|
60
59
|
spec.add_dependency "terser", "~> 1.2.3"
|
|
60
|
+
|
|
61
|
+
spec.add_development_dependency "benchmark"
|
|
61
62
|
spec.add_development_dependency "byebug"
|
|
62
|
-
spec.add_development_dependency "capybara"
|
|
63
|
+
spec.add_development_dependency "capybara"
|
|
63
64
|
spec.add_development_dependency "ostruct"
|
|
64
|
-
spec.add_development_dependency "rake"
|
|
65
|
-
spec.add_development_dependency "rspec"
|
|
66
|
-
spec.add_development_dependency "rubocop-govuk"
|
|
65
|
+
spec.add_development_dependency "rake"
|
|
66
|
+
spec.add_development_dependency "rspec"
|
|
67
|
+
spec.add_development_dependency "rubocop-govuk"
|
|
67
68
|
end
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.GOVUKFrontend = global.GOVUKFrontend || {}));
|
|
5
5
|
})(this, (function (exports) { 'use strict';
|
|
6
6
|
|
|
7
|
-
const version = '6.
|
|
7
|
+
const version = '6.1.0';
|
|
8
8
|
|
|
9
9
|
function getBreakpoint(name) {
|
|
10
10
|
const property = `--govuk-breakpoint-${name}`;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@import "../../base";
|
|
2
|
+
|
|
1
3
|
@include govuk-exports("govuk/component/accordion") {
|
|
2
4
|
$govuk-accordion-base-colour: govuk-colour("black");
|
|
3
5
|
$govuk-accordion-hover-colour: govuk-colour("black", $variant: "tint-95");
|
|
@@ -23,11 +25,11 @@
|
|
|
23
25
|
|
|
24
26
|
.govuk-accordion__section-button {
|
|
25
27
|
@include govuk-font($size: 24, $weight: bold);
|
|
26
|
-
@include govuk-text-colour;
|
|
27
28
|
|
|
28
29
|
display: block;
|
|
29
30
|
margin-bottom: 0;
|
|
30
31
|
padding-top: govuk-spacing(3);
|
|
32
|
+
color: govuk-functional-colour(text);
|
|
31
33
|
}
|
|
32
34
|
|
|
33
35
|
// Remove the bottom margin from the last item inside the content
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
@use "sass:string";
|
|
2
|
+
|
|
3
|
+
@import "../../base";
|
|
4
|
+
|
|
1
5
|
@include govuk-exports("govuk/component/back-link") {
|
|
2
6
|
// Component font-size on the Frontend (used for calculations)
|
|
3
7
|
$font-size: 16;
|
|
@@ -49,12 +53,12 @@
|
|
|
49
53
|
border-width: $chevron-border-min-width $chevron-border-min-width 0 0;
|
|
50
54
|
border-color: $chevron-border-colour;
|
|
51
55
|
|
|
52
|
-
@supports (border-width: unquote("max(0px)")) {
|
|
56
|
+
@supports (border-width: string.unquote("max(0px)")) {
|
|
53
57
|
$border-width-eval: "max(#{$chevron-border-min-width}, #{$chevron-border-width})";
|
|
54
58
|
|
|
55
59
|
// Ensure that the chevron never gets smaller than 16px
|
|
56
|
-
border-width: unquote($border-width-eval) unquote($border-width-eval) 0 0;
|
|
57
|
-
font-size: unquote("max(#{$font-size * 1px}, 1em)");
|
|
60
|
+
border-width: string.unquote($border-width-eval) string.unquote($border-width-eval) 0 0;
|
|
61
|
+
font-size: string.unquote("max(#{$font-size * 1px}, 1em)");
|
|
58
62
|
}
|
|
59
63
|
}
|
|
60
64
|
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
@use "sass:string";
|
|
2
|
+
|
|
3
|
+
@import "../../base";
|
|
4
|
+
|
|
1
5
|
@include govuk-exports("govuk/component/breadcrumbs") {
|
|
2
6
|
// Component font-size on the Frontend (used for calculations)
|
|
3
7
|
$font-size: 16;
|
|
@@ -20,10 +24,10 @@
|
|
|
20
24
|
|
|
21
25
|
.govuk-breadcrumbs {
|
|
22
26
|
@include govuk-font($size: $font-size);
|
|
23
|
-
@include govuk-text-colour;
|
|
24
27
|
|
|
25
28
|
margin-top: govuk-spacing(3);
|
|
26
29
|
margin-bottom: govuk-spacing(2);
|
|
30
|
+
color: govuk-functional-colour(text);
|
|
27
31
|
}
|
|
28
32
|
|
|
29
33
|
.govuk-breadcrumbs__list {
|
|
@@ -71,12 +75,12 @@
|
|
|
71
75
|
border-width: $chevron-border-min-width $chevron-border-min-width 0 0;
|
|
72
76
|
border-color: $chevron-border-colour;
|
|
73
77
|
|
|
74
|
-
@supports (border-width: unquote("max(0px)")) {
|
|
78
|
+
@supports (border-width: string.unquote("max(0px)")) {
|
|
75
79
|
$border-width-eval: "max(#{$chevron-border-min-width}, #{$chevron-border-width})";
|
|
76
80
|
|
|
77
81
|
// Ensure that the chevron never gets smaller than 16px
|
|
78
|
-
border-width: unquote($border-width-eval) unquote($border-width-eval) 0 0;
|
|
79
|
-
font-size: unquote("max(#{$font-size * 1px}, 1em)");
|
|
82
|
+
border-width: string.unquote($border-width-eval) string.unquote($border-width-eval) 0 0;
|
|
83
|
+
font-size: string.unquote("max(#{$font-size * 1px}, 1em)");
|
|
80
84
|
}
|
|
81
85
|
}
|
|
82
86
|
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
/// @group components/button
|
|
3
3
|
////
|
|
4
4
|
|
|
5
|
+
@import "../../base";
|
|
6
|
+
|
|
5
7
|
/// Button component background colour
|
|
6
8
|
///
|
|
7
9
|
/// @type Colour
|
|
@@ -71,7 +73,7 @@ $govuk-inverse-button-text-colour: govuk-functional-colour(brand) !default;
|
|
|
71
73
|
margin-left: 0;
|
|
72
74
|
@include govuk-responsive-margin(6, "bottom", $adjustment: $button-shadow-size); // s2
|
|
73
75
|
padding: (govuk-spacing(2) - $govuk-border-width-form-element) govuk-spacing(2)
|
|
74
|
-
(govuk-spacing(2) - $govuk-border-width-form-element - ($button-shadow-size
|
|
76
|
+
(govuk-spacing(2) - $govuk-border-width-form-element - ($button-shadow-size * 0.5)); // s1
|
|
75
77
|
border: $govuk-border-width-form-element solid transparent;
|
|
76
78
|
border-radius: 0;
|
|
77
79
|
color: $govuk-button-text-colour;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@import "../../base";
|
|
2
|
+
|
|
1
3
|
@import "../error-message/index";
|
|
2
4
|
@import "../fieldset/index";
|
|
3
5
|
@import "../hint/index";
|
|
@@ -54,8 +56,8 @@
|
|
|
54
56
|
content: "";
|
|
55
57
|
box-sizing: border-box;
|
|
56
58
|
position: absolute;
|
|
57
|
-
top: ($govuk-touch-target-gutter
|
|
58
|
-
left: ($govuk-touch-target-gutter
|
|
59
|
+
top: ($govuk-touch-target-gutter * 0.5);
|
|
60
|
+
left: ($govuk-touch-target-gutter * 0.5);
|
|
59
61
|
width: $govuk-checkboxes-size;
|
|
60
62
|
height: $govuk-checkboxes-size;
|
|
61
63
|
border: $govuk-border-width-form-element solid currentcolor;
|
|
@@ -144,10 +146,12 @@
|
|
|
144
146
|
|
|
145
147
|
.govuk-checkboxes__divider {
|
|
146
148
|
@include govuk-font($size: 19);
|
|
147
|
-
|
|
149
|
+
|
|
148
150
|
$govuk-divider-size: $govuk-checkboxes-size !default;
|
|
149
151
|
width: $govuk-divider-size;
|
|
152
|
+
|
|
150
153
|
margin-bottom: govuk-spacing(2);
|
|
154
|
+
color: govuk-functional-colour(text);
|
|
151
155
|
text-align: center;
|
|
152
156
|
}
|
|
153
157
|
|
|
@@ -159,7 +163,7 @@
|
|
|
159
163
|
// to be an even number in order to be centred under the 40px checkbox or radio.
|
|
160
164
|
$conditional-border-width: $govuk-border-width-narrow;
|
|
161
165
|
// Calculate the amount of padding needed to keep the border centered against the checkbox.
|
|
162
|
-
$conditional-border-padding: ($govuk-touch-target-size
|
|
166
|
+
$conditional-border-padding: ($govuk-touch-target-size * 0.5) - ($conditional-border-width * 0.5);
|
|
163
167
|
// Move the border centered with the checkbox
|
|
164
168
|
$conditional-margin-left: $conditional-border-padding;
|
|
165
169
|
// Move the contents of the conditional inline with the label
|
|
@@ -186,7 +190,7 @@
|
|
|
186
190
|
// =========================================================
|
|
187
191
|
|
|
188
192
|
.govuk-checkboxes--small {
|
|
189
|
-
$input-offset: ($govuk-touch-target-size - $govuk-small-checkboxes-size)
|
|
193
|
+
$input-offset: ($govuk-touch-target-size - $govuk-small-checkboxes-size) * 0.5;
|
|
190
194
|
|
|
191
195
|
.govuk-checkboxes__item {
|
|
192
196
|
margin-bottom: 0;
|
|
@@ -251,7 +255,7 @@
|
|
|
251
255
|
|
|
252
256
|
// Align conditional reveals with small checkboxes
|
|
253
257
|
.govuk-checkboxes__conditional {
|
|
254
|
-
$margin-left: ($govuk-small-checkboxes-size
|
|
258
|
+
$margin-left: ($govuk-small-checkboxes-size * 0.5) - ($conditional-border-width * 0.5);
|
|
255
259
|
margin-left: $margin-left;
|
|
256
260
|
padding-left: ($govuk-touch-target-size - $input-offset) - ($margin-left + $conditional-border-width);
|
|
257
261
|
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
@import "../../base";
|
|
2
|
+
|
|
1
3
|
@include govuk-exports("govuk/component/details") {
|
|
2
4
|
.govuk-details {
|
|
3
5
|
@include govuk-font($size: 19);
|
|
4
|
-
@include govuk-text-colour;
|
|
5
6
|
@include govuk-responsive-margin(6, "bottom");
|
|
6
7
|
|
|
7
8
|
display: block;
|
|
9
|
+
color: govuk-functional-colour(text);
|
|
8
10
|
}
|
|
9
11
|
|
|
10
12
|
.govuk-details__summary {
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
+
@import "../../base";
|
|
2
|
+
|
|
1
3
|
@import "../../core/lists";
|
|
2
4
|
|
|
3
5
|
@include govuk-exports("govuk/component/error-summary") {
|
|
4
6
|
.govuk-error-summary {
|
|
5
7
|
@include govuk-font($size: 19);
|
|
6
|
-
@include govuk-text-colour;
|
|
7
8
|
@include govuk-responsive-padding(4);
|
|
8
9
|
@include govuk-responsive-margin(8, "bottom");
|
|
9
10
|
|
|
10
11
|
border: $govuk-border-width solid;
|
|
11
12
|
border-color: govuk-functional-colour(error);
|
|
13
|
+
color: govuk-functional-colour(text);
|
|
12
14
|
|
|
13
15
|
&:focus {
|
|
14
16
|
outline: $govuk-focus-width solid;
|