@x-govuk/nhsuk-eleventy-plugin 1.1.0 → 1.1.2
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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@x-govuk/nhsuk-eleventy-plugin",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Write documentation using Markdown and publish it using NHS.UK styles",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"nhsuk",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"lint:fix": "npm run lint:prettier:fix && npm run lint:js:fix && npm run lint:scss:fix",
|
|
47
47
|
"test": "node --test",
|
|
48
48
|
"coverage": "node --test --experimental-test-coverage",
|
|
49
|
-
"release": "np"
|
|
49
|
+
"release": "np --no-publish"
|
|
50
50
|
},
|
|
51
51
|
"publishConfig": {
|
|
52
52
|
"access": "public"
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
"@11ty/eleventy-navigation": "^1.0.0",
|
|
57
57
|
"@rollup/plugin-commonjs": "^29.0.0",
|
|
58
58
|
"@rollup/plugin-node-resolve": "^16.0.0",
|
|
59
|
-
"@rollup/plugin-terser": "^0.
|
|
60
|
-
"@x-govuk/govuk-eleventy-plugin": "^
|
|
59
|
+
"@rollup/plugin-terser": "^1.0.0",
|
|
60
|
+
"@x-govuk/govuk-eleventy-plugin": "^9.0.1",
|
|
61
61
|
"accessible-autocomplete": "^3.0.1",
|
|
62
62
|
"deepmerge": "^4.2.2",
|
|
63
63
|
"markdown-it-abbr": "^2.0.0",
|
|
@@ -6,6 +6,17 @@
|
|
|
6
6
|
@extend .nhsuk-contents-list__list;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
+
// Bugfix:
|
|
10
|
+
// Nested lists need to remove the margin at the bottom,
|
|
11
|
+
// and add the same margin at the top as is between list items.
|
|
12
|
+
//
|
|
13
|
+
// This can be removed when it is fixed within NHS frontend,
|
|
14
|
+
// see https://github.com/nhsuk/nhsuk-frontend/pull/1854
|
|
15
|
+
.nhsuk-contents-list ol ol {
|
|
16
|
+
@include nhsuk-responsive-margin(2, "top");
|
|
17
|
+
margin-bottom: 0;
|
|
18
|
+
}
|
|
19
|
+
|
|
9
20
|
.nhsuk-contents-list li {
|
|
10
21
|
// stylelint-disable-next-line scss/at-extend-no-missing-placeholder
|
|
11
22
|
@extend .nhsuk-contents-list__item;
|
|
@@ -7,7 +7,7 @@ export class SearchElement extends HTMLElement {
|
|
|
7
7
|
this.statusMessage = null
|
|
8
8
|
this.$container = this.querySelector('.nhsuk-header__search')
|
|
9
9
|
this.$searchForm = this.querySelector('.nhsuk-header__search-form')
|
|
10
|
-
this.$searchInput = this.querySelector('.nhsuk-header__search-input')
|
|
10
|
+
this.$searchInput = this.querySelector('.nhsuk-header__search .nhsuk-input')
|
|
11
11
|
this.searchIndex = null
|
|
12
12
|
this.searchIndexUrl = this.getAttribute('index')
|
|
13
13
|
this.searchResults = []
|