@qld-gov-au/qgds-bootstrap5 2.1.3 → 2.1.5

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.
Files changed (45) hide show
  1. package/.storybook/main.mjs +1 -0
  2. package/.storybook/manager.js +31 -0
  3. package/dist/assets/components/bs5/globalAlert/globalAlert.hbs +2 -2
  4. package/dist/assets/components/bs5/head/head.hbs +1 -1
  5. package/dist/assets/components/bs5/inpagenav/inpagenav.hbs +10 -10
  6. package/dist/assets/components/bs5/navbar/navbar.hbs +1 -1
  7. package/dist/assets/css/qld.bootstrap.css +2 -2
  8. package/dist/assets/css/qld.bootstrap.css.map +2 -2
  9. package/dist/assets/css/qld.bootstrap.legacy.css +2 -2
  10. package/dist/assets/css/qld.bootstrap.legacy.css.map +2 -2
  11. package/dist/assets/js/handlebars.helpers.bundle.js +1 -1
  12. package/dist/assets/js/handlebars.init.min.js +15 -15
  13. package/dist/assets/js/handlebars.init.min.js.map +1 -1
  14. package/dist/assets/js/handlebars.partials.js +15 -15
  15. package/dist/assets/js/handlebars.partials.js.map +1 -1
  16. package/dist/assets/js/qld.bootstrap.min.js +6 -6
  17. package/dist/assets/js/qld.bootstrap.min.js.map +3 -3
  18. package/dist/assets/node/handlebars.init.min.js +5 -5
  19. package/dist/assets/node/handlebars.init.min.js.map +1 -1
  20. package/dist/components/bs5/globalAlert/globalAlert.hbs +2 -2
  21. package/dist/components/bs5/head/head.hbs +1 -1
  22. package/dist/components/bs5/inpagenav/inpagenav.hbs +10 -10
  23. package/dist/components/bs5/navbar/navbar.hbs +1 -1
  24. package/dist/package.json +2 -1
  25. package/dist/sample-data/globalAlert/globalAlert.data.json +9 -9
  26. package/package.json +2 -1
  27. package/src/components/bs5/globalAlert/globalAlert.data.json +9 -9
  28. package/src/components/bs5/globalAlert/globalAlert.hbs +2 -2
  29. package/src/components/bs5/globalAlert/globalAlert.scss +24 -9
  30. package/src/components/bs5/globalAlert/globalAlert.stories.js +1 -1
  31. package/src/components/bs5/globalAlert/globalAlert.test.js +0 -14
  32. package/src/components/bs5/inpageAlert/inpageAlert.stories.js +1 -1
  33. package/src/components/bs5/inpagenav/inpagenav.hbs +10 -10
  34. package/src/components/bs5/linkColumns/linkColumns.scss +24 -5
  35. package/src/components/bs5/linkColumns/linkColumns.stories.js +11 -10
  36. package/src/components/bs5/navbar/navbar.functions.js +52 -67
  37. package/src/components/bs5/navbar/navbar.hbs +1 -1
  38. package/src/components/bs5/navbar/navbar.scss +50 -39
  39. package/src/components/bs5/promotionalPanel/promotionalPanel.stories.js +17 -15
  40. package/src/components/bs5/quickexit/quickexit.stories.js +1 -1
  41. package/src/components/bs5/searchInput/searchInput.stories.js +1 -1
  42. package/src/components/bs5/spinner/Spinner.stories.js +14 -19
  43. package/src/components/bs5/table/table.stories.js +1 -1
  44. package/src/components/bs5/video/video.stories.js +1 -1
  45. package/src/stories/Introduction.mdx +15 -6
@@ -2,7 +2,7 @@
2
2
 
3
3
  <div class="global-alert-include">
4
4
  {{#each alertItems}}
5
- <section role="region" class="global-alert alert container-full d-none {{variant}}" data-variant="{{variant}}"
5
+ <section role="region" class="global-alert d-none {{variant}}" data-variant="{{variant}}"
6
6
  {{#if ariaLabel}} aria-label="{{ ariaLabel }}"
7
7
  {{~else ifCond variant "==" "global-alert-critical"}} aria-label="Critical alert"
8
8
  {{~else ifCond variant "==" "global-alert-info"}} aria-label="Informational alert"
@@ -11,7 +11,7 @@
11
11
  {{~/if}}
12
12
  {{#if id}} data-id="{{id}}" {{/if}}{{#if dismissedExpiryDays}}
13
13
  data-expiry-days="{{dismissedExpiryDays}}" {{/if}}>
14
- <div class="qld-global-alert-main">
14
+ <div class="qld-global-alert-main container">
15
15
  <div class="global-alert-icon">
16
16
  {{#ifCond variant '==' 'global-alert-critical'}}
17
17
  <span class="qld-icon qld-icon-sm qld-icon-alert-danger" aria-hidden="true"></span>
@@ -1,5 +1,5 @@
1
1
 
2
- <!-- VERSION_DETAILS={"project_id":"@qld-gov-au/qgds-bootstrap5","version":"2.1.3","branch":"HEAD","tag":"v2.1.3","commit":"0459f9571a74eab35ed443c3d02fece2a811642c","majorVersion":"v2"} -->
2
+ <!-- VERSION_DETAILS={"project_id":"@qld-gov-au/qgds-bootstrap5","version":"2.1.5","branch":"HEAD","tag":"v2.1.5","commit":"e93e0950560c9799698822b70ccb0c1c5aa99639","majorVersion":"v2"} -->
3
3
 
4
4
  {{! Select environment, used verbatium if not using predefind key
5
5
  cdn := PROD|STAGING|BETA|TEST|DEV|???
@@ -1,15 +1,15 @@
1
1
  <!-- QGDS Partial: inpage-nav -->
2
2
 
3
- <div class="qld-inpage-nav">
3
+ <nav class="qld-inpage-nav" aria-label="In page navigation">
4
4
 
5
- <h2 class="nav-title">{{navtitle}}</h2>
5
+ <h2 class="nav-title">{{navtitle}}</h2>
6
6
 
7
- <ul class="nav">
8
- {{#each navitems}}
9
- <li class="nav-item">
10
- <a class="nav-link" href="#{{linkid}}">{{linktext}}</a>
11
- </li>
12
- {{/each}}
13
- </ul>
7
+ <ul class="nav">
8
+ {{#each navitems}}
9
+ <li class="nav-item">
10
+ <a class="nav-link" href="#{{linkid}}">{{linktext}}</a>
11
+ </li>
12
+ {{/each}}
13
+ </ul>
14
14
 
15
- </div>
15
+ </nav>
@@ -26,7 +26,7 @@
26
26
  {{text}}
27
27
  {{/if}}
28
28
  </a>
29
- <button class="nav-link dropdown-toggle"{{#if currentPage}} aria-current="page"{{/if}} data-bs-toggle="dropdown" aria-expanded="false" aria-selected="false" aria-label="Toggle navigation">
29
+ <button class="nav-link dropdown-toggle"{{#if currentPage}} aria-current="page"{{/if}} data-bs-toggle="dropdown" data-bs-auto-close="false" aria-expanded="false" aria-selected="false" aria-label="Toggle navigation">
30
30
  <span class="visually-hidden">Expand</span>
31
31
  </button>
32
32
  <ul class="dropdown-menu">
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qld-gov-au/qgds-bootstrap5",
3
- "version": "2.1.3",
3
+ "version": "2.1.5",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",
@@ -99,6 +99,7 @@
99
99
  "selenium-webdriver": "^4.38.0",
100
100
  "storybook": "^10.0.8",
101
101
  "storybook-addon-deep-controls": "^0.10.0",
102
+ "storybook-addon-tag-badges": "^3.0.2",
102
103
  "vite": "^7.1.11",
103
104
  "vitest": "^4.0.10"
104
105
  },
@@ -6,7 +6,7 @@
6
6
  "variant": "global-alert-critical",
7
7
  "ariaLabel": "Critical alert",
8
8
  "dismissedExpiryDays": 0,
9
- "content": "<strong>Severe weather:</strong> Cyclone XYZ is expected to impact the coast area. Prepare <a href='#'>your home and businesses</a> or check for <a href='#'>available support</a>.",
9
+ "content": "<strong>Severe weather:</strong> Cyclone XYZ is expected to impact the coast area. Prepare your home and businesses or check for available support.",
10
10
  "action": "<a href='https://www.qld.gov.au/'><span>Read more</span></a>"
11
11
  }
12
12
  ]
@@ -17,7 +17,7 @@
17
17
  "id": "service-delay-weather",
18
18
  "variant": "global-alert-warning",
19
19
  "ariaLabel": "Warning alert",
20
- "content": "<strong>Service Delay:</strong> Various <a href='#'>services</a> are experiencing delays due to the weather event.",
20
+ "content": "<strong>Service Delay:</strong> Various services are experiencing delays due to the weather event.",
21
21
  "action": "<a href='https://www.qld.gov.au/'><span>Learn more</span></a>"
22
22
  }
23
23
  ]
@@ -28,7 +28,7 @@
28
28
  "id": "caretaker-period-2024",
29
29
  "variant": "global-alert-info",
30
30
  "ariaLabel": "Information alert",
31
- "content": "<strong>Caretaker period:</strong> The Queensland Government is in a <a href='#'>caretaker period</a> until after the <a href='#'>state election</a>. Minimal updates will be made to this site until after the election results are declared.",
31
+ "content": "<strong>Caretaker period:</strong> The Queensland Government is in a caretaker period until after the state election. Minimal updates will be made to this site until after the election results are declared.",
32
32
  "action": "<a href='https://www.qld.gov.au/'><span>Learn more</span></a>"
33
33
  }
34
34
  ]
@@ -39,14 +39,14 @@
39
39
  "id": "cyclone-xyz-critical",
40
40
  "variant": "global-alert-critical",
41
41
  "ariaLabel": "Critical alert",
42
- "content": "<strong>Severe weather:</strong> Cyclone XYZ is expected to impact the coast area. Prepare <a href='#'>your home and businesses</a> or check for <a href='#'>available support</a>.",
42
+ "content": "<strong>Severe weather:</strong> Cyclone XYZ is expected to impact the coast area. Prepare your home and businesses or check for available support.",
43
43
  "action": "<a href='https://www.qld.gov.au/'><span>Learn more</span></a>"
44
44
  },
45
45
  {
46
46
  "id": "flood-warning-southeast",
47
47
  "variant": "global-alert-critical",
48
48
  "ariaLabel": "Critical alert",
49
- "content": "<strong>Severe weather:</strong> Cyclone XYZ is expected to impact the coast area. Prepare <a href='#'>your home and businesses</a> or check for <a href='#'>available support</a>.",
49
+ "content": "<strong>Severe weather:</strong> Cyclone XYZ is expected to impact the coast area. Prepare your home and businesses or check for available support.",
50
50
  "action": "<a href='https://www.qld.gov.au/'><span>Learn more</span></a>",
51
51
  "preventDismiss": true
52
52
  },
@@ -54,14 +54,14 @@
54
54
  "id": "transport-delays-brisbane",
55
55
  "variant": "global-alert-warning",
56
56
  "ariaLabel": "Warning alert",
57
- "content": "<strong>Service Delay:</strong> Various <a href='#'>services</a> are experiencing delays due to the weather event.",
57
+ "content": "<strong>Service Delay:</strong> Various services are experiencing delays due to the weather event.",
58
58
  "action": "<a href='https://www.qld.gov.au/'><span>Read more</span></a>"
59
59
  },
60
60
  {
61
61
  "id": "health-services-disruption",
62
62
  "variant": "global-alert-warning",
63
63
  "ariaLabel": "Warning alert",
64
- "content": "<strong>Service Delay:</strong> Various <a href='#'>services</a> are experiencing delays due to the weather event.",
64
+ "content": "<strong>Service Delay:</strong> Various services are experiencing delays due to the weather event.",
65
65
  "action": "<a href='https://www.qld.gov.au/'><span>Read more</span></a>",
66
66
  "preventDismiss": true
67
67
  },
@@ -69,13 +69,13 @@
69
69
  "id": "election-caretaker-info",
70
70
  "variant": "global-alert-info",
71
71
  "ariaLabel": "Information alert",
72
- "content": "<strong>Caretaker period:</strong> The Queensland Government is in a <a href='#'>caretaker period</a> until after the <a href='#'>state election</a>. Minimal updates will be made to this site until after the election results are declared.",
72
+ "content": "<strong>Caretaker period:</strong> The Queensland Government is in a caretaker period until after the state election. Minimal updates will be made to this site until after the election results are declared.",
73
73
  "action": "<a href='https://www.qld.gov.au/'><span>Learn more</span></a>"
74
74
  },
75
75
  {
76
76
  "variant": "global-alert-info",
77
77
  "ariaLabel": "Information alert",
78
- "content": "<strong>Caretaker period:</strong> The Queensland Government is in a <a href='#'>caretaker period</a> until after the <a href='#'>state election</a>. Minimal updates will be made to this site until after the election results are declared.",
78
+ "content": "<strong>Caretaker period:</strong> The Queensland Government is in a caretaker period until after the state election. Minimal updates will be made to this site until after the election results are declared.",
79
79
  "action": "<a href='https://www.qld.gov.au/'><span>Learn more</span></a>",
80
80
  "preventDismiss": true
81
81
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qld-gov-au/qgds-bootstrap5",
3
- "version": "2.1.3",
3
+ "version": "2.1.5",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",
@@ -99,6 +99,7 @@
99
99
  "selenium-webdriver": "^4.38.0",
100
100
  "storybook": "^10.0.8",
101
101
  "storybook-addon-deep-controls": "^0.10.0",
102
+ "storybook-addon-tag-badges": "^3.0.2",
102
103
  "vite": "^7.1.11",
103
104
  "vitest": "^4.0.10"
104
105
  },
@@ -6,7 +6,7 @@
6
6
  "variant": "global-alert-critical",
7
7
  "ariaLabel": "Critical alert",
8
8
  "dismissedExpiryDays": 0,
9
- "content": "<strong>Severe weather:</strong> Cyclone XYZ is expected to impact the coast area. Prepare <a href='#'>your home and businesses</a> or check for <a href='#'>available support</a>.",
9
+ "content": "<strong>Severe weather:</strong> Cyclone XYZ is expected to impact the coast area. Prepare your home and businesses or check for available support.",
10
10
  "action": "<a href='https://www.qld.gov.au/'><span>Read more</span></a>"
11
11
  }
12
12
  ]
@@ -17,7 +17,7 @@
17
17
  "id": "service-delay-weather",
18
18
  "variant": "global-alert-warning",
19
19
  "ariaLabel": "Warning alert",
20
- "content": "<strong>Service Delay:</strong> Various <a href='#'>services</a> are experiencing delays due to the weather event.",
20
+ "content": "<strong>Service Delay:</strong> Various services are experiencing delays due to the weather event.",
21
21
  "action": "<a href='https://www.qld.gov.au/'><span>Learn more</span></a>"
22
22
  }
23
23
  ]
@@ -28,7 +28,7 @@
28
28
  "id": "caretaker-period-2024",
29
29
  "variant": "global-alert-info",
30
30
  "ariaLabel": "Information alert",
31
- "content": "<strong>Caretaker period:</strong> The Queensland Government is in a <a href='#'>caretaker period</a> until after the <a href='#'>state election</a>. Minimal updates will be made to this site until after the election results are declared.",
31
+ "content": "<strong>Caretaker period:</strong> The Queensland Government is in a caretaker period until after the state election. Minimal updates will be made to this site until after the election results are declared.",
32
32
  "action": "<a href='https://www.qld.gov.au/'><span>Learn more</span></a>"
33
33
  }
34
34
  ]
@@ -39,14 +39,14 @@
39
39
  "id": "cyclone-xyz-critical",
40
40
  "variant": "global-alert-critical",
41
41
  "ariaLabel": "Critical alert",
42
- "content": "<strong>Severe weather:</strong> Cyclone XYZ is expected to impact the coast area. Prepare <a href='#'>your home and businesses</a> or check for <a href='#'>available support</a>.",
42
+ "content": "<strong>Severe weather:</strong> Cyclone XYZ is expected to impact the coast area. Prepare your home and businesses or check for available support.",
43
43
  "action": "<a href='https://www.qld.gov.au/'><span>Learn more</span></a>"
44
44
  },
45
45
  {
46
46
  "id": "flood-warning-southeast",
47
47
  "variant": "global-alert-critical",
48
48
  "ariaLabel": "Critical alert",
49
- "content": "<strong>Severe weather:</strong> Cyclone XYZ is expected to impact the coast area. Prepare <a href='#'>your home and businesses</a> or check for <a href='#'>available support</a>.",
49
+ "content": "<strong>Severe weather:</strong> Cyclone XYZ is expected to impact the coast area. Prepare your home and businesses or check for available support.",
50
50
  "action": "<a href='https://www.qld.gov.au/'><span>Learn more</span></a>",
51
51
  "preventDismiss": true
52
52
  },
@@ -54,14 +54,14 @@
54
54
  "id": "transport-delays-brisbane",
55
55
  "variant": "global-alert-warning",
56
56
  "ariaLabel": "Warning alert",
57
- "content": "<strong>Service Delay:</strong> Various <a href='#'>services</a> are experiencing delays due to the weather event.",
57
+ "content": "<strong>Service Delay:</strong> Various services are experiencing delays due to the weather event.",
58
58
  "action": "<a href='https://www.qld.gov.au/'><span>Read more</span></a>"
59
59
  },
60
60
  {
61
61
  "id": "health-services-disruption",
62
62
  "variant": "global-alert-warning",
63
63
  "ariaLabel": "Warning alert",
64
- "content": "<strong>Service Delay:</strong> Various <a href='#'>services</a> are experiencing delays due to the weather event.",
64
+ "content": "<strong>Service Delay:</strong> Various services are experiencing delays due to the weather event.",
65
65
  "action": "<a href='https://www.qld.gov.au/'><span>Read more</span></a>",
66
66
  "preventDismiss": true
67
67
  },
@@ -69,13 +69,13 @@
69
69
  "id": "election-caretaker-info",
70
70
  "variant": "global-alert-info",
71
71
  "ariaLabel": "Information alert",
72
- "content": "<strong>Caretaker period:</strong> The Queensland Government is in a <a href='#'>caretaker period</a> until after the <a href='#'>state election</a>. Minimal updates will be made to this site until after the election results are declared.",
72
+ "content": "<strong>Caretaker period:</strong> The Queensland Government is in a caretaker period until after the state election. Minimal updates will be made to this site until after the election results are declared.",
73
73
  "action": "<a href='https://www.qld.gov.au/'><span>Learn more</span></a>"
74
74
  },
75
75
  {
76
76
  "variant": "global-alert-info",
77
77
  "ariaLabel": "Information alert",
78
- "content": "<strong>Caretaker period:</strong> The Queensland Government is in a <a href='#'>caretaker period</a> until after the <a href='#'>state election</a>. Minimal updates will be made to this site until after the election results are declared.",
78
+ "content": "<strong>Caretaker period:</strong> The Queensland Government is in a caretaker period until after the state election. Minimal updates will be made to this site until after the election results are declared.",
79
79
  "action": "<a href='https://www.qld.gov.au/'><span>Learn more</span></a>",
80
80
  "preventDismiss": true
81
81
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  <div class="global-alert-include">
4
4
  {{#each alertItems}}
5
- <section role="region" class="global-alert alert container-full d-none {{variant}}" data-variant="{{variant}}"
5
+ <section role="region" class="global-alert d-none {{variant}}" data-variant="{{variant}}"
6
6
  {{#if ariaLabel}} aria-label="{{ ariaLabel }}"
7
7
  {{~else ifCond variant "==" "global-alert-critical"}} aria-label="Critical alert"
8
8
  {{~else ifCond variant "==" "global-alert-info"}} aria-label="Informational alert"
@@ -11,7 +11,7 @@
11
11
  {{~/if}}
12
12
  {{#if id}} data-id="{{id}}" {{/if}}{{#if dismissedExpiryDays}}
13
13
  data-expiry-days="{{dismissedExpiryDays}}" {{/if}}>
14
- <div class="qld-global-alert-main">
14
+ <div class="qld-global-alert-main container">
15
15
  <div class="global-alert-icon">
16
16
  {{#ifCond variant '==' 'global-alert-critical'}}
17
17
  <span class="qld-icon qld-icon-sm qld-icon-alert-danger" aria-hidden="true"></span>
@@ -1,10 +1,13 @@
1
1
  @use "../../../css/mixins" as m;
2
2
 
3
3
  .global-alert {
4
+ --focus-colour: var(--#{$prefix}neutral-darkest);
5
+
4
6
  line-height: 1.25rem;
5
7
  border-radius: 0;
6
8
  border-top-style: solid;
7
9
  border-width: 0;
10
+ padding-block: 0.75rem;
8
11
 
9
12
  &:first-child:not(:only-child) {
10
13
  border-top-width: 1px;
@@ -14,13 +17,6 @@
14
17
  border-top-width: 1px;
15
18
  }
16
19
 
17
- &.alert {
18
- padding-top: 0.75rem;
19
- padding-bottom: 0.75rem;
20
- padding-left: 2rem;
21
- margin-bottom: 0;
22
- }
23
-
24
20
  .qld-global-alert-main {
25
21
  display: flex;
26
22
  column-gap: 1rem;
@@ -69,7 +65,7 @@
69
65
  text-wrap: nowrap;
70
66
  }
71
67
  }
72
-
68
+
73
69
  .global-alert-close {
74
70
  display: inline-flex;
75
71
  justify-content: center;
@@ -108,6 +104,10 @@
108
104
 
109
105
  @include m.focusable($outlineWidth: 2px);
110
106
  box-shadow: none;
107
+ &:focus {
108
+ outline-color: var(--focus-colour);
109
+ }
110
+
111
111
 
112
112
  @include media-breakpoint-down(lg) {
113
113
  &:hover {
@@ -119,6 +119,7 @@
119
119
 
120
120
  &.global-alert-critical {
121
121
  --#{$prefix}icon-color: #{$core-default-color-neutral-white};
122
+ --focus-colour: var(--#{$prefix}neutral-white);
122
123
 
123
124
  background-color: $qld-notify-warning;
124
125
  color: var(--#{$prefix}white);
@@ -196,7 +197,20 @@
196
197
  }
197
198
  }
198
199
  }
199
-
200
+ @include media-breakpoint-down(lg) {
201
+ .global-alert {
202
+ .global-alert-content .global-alert-action {
203
+ margin-inline-end: 2rem;
204
+ }
205
+ }
206
+ }
207
+ @include media-breakpoint-down(md) {
208
+ .global-alert {
209
+ .global-alert-content {
210
+ padding: 0;
211
+ }
212
+ }
213
+ }
200
214
  @include media-breakpoint-up(lg) {
201
215
  .global-alert {
202
216
  .global-alert-close {
@@ -215,5 +229,6 @@
215
229
  }
216
230
  }
217
231
  }
232
+
218
233
  }
219
234
  }
@@ -3,7 +3,7 @@ import { GlobalAlert } from "./GlobalAlert.js";
3
3
  import defaultdata from "./globalAlert.data.json";
4
4
 
5
5
  export default {
6
- tags: ["autodocs"],
6
+ tags: ["autodocs", "extended"],
7
7
  title: "3. Components/Global Alert",
8
8
  render: (args) => new GlobalAlert(args).html,
9
9
  argTypes: {
@@ -155,20 +155,6 @@ describe("initGlobalAlerts", () => {
155
155
  localStorage.clear();
156
156
  });
157
157
 
158
- it("Renders with proper classes applied", () => {
159
- // The reason we needed to call initGlobalAlerts() manually in the tests is because:
160
- // The JSDOM environment handles script execution and events differently than a real browser. Here's what happens:
161
- // 1. When JSDOM loads the HTML with the scripts, the scripts execute immediately
162
- // 2. The DOMContentLoaded event might fire before the test can set up localStorage properly
163
- // 3. Even if DOMContentLoaded fires, the localStorage mock might not be properly injected into the script's execution context
164
- initGlobalAlerts();
165
-
166
- const alerts = d.querySelectorAll(".global-alert");
167
- alerts.forEach((alert) => {
168
- expect(alert.classList.contains("alert")).toBe(true);
169
- });
170
- });
171
-
172
158
  test("Alert uses default variant when data-variant is not provided", () => {
173
159
  initGlobalAlerts();
174
160
 
@@ -129,7 +129,7 @@ export const AllVariants = {
129
129
  <div class="mb-4">
130
130
  ${new InpageAlert(alertData).html}
131
131
  </div>
132
- `
132
+ `,
133
133
  )
134
134
  .join("");
135
135
  },
@@ -1,15 +1,15 @@
1
1
  <!-- QGDS Partial: inpage-nav -->
2
2
 
3
- <div class="qld-inpage-nav">
3
+ <nav class="qld-inpage-nav" aria-label="In page navigation">
4
4
 
5
- <h2 class="nav-title">{{navtitle}}</h2>
5
+ <h2 class="nav-title">{{navtitle}}</h2>
6
6
 
7
- <ul class="nav">
8
- {{#each navitems}}
9
- <li class="nav-item">
10
- <a class="nav-link" href="#{{linkid}}">{{linktext}}</a>
11
- </li>
12
- {{/each}}
13
- </ul>
7
+ <ul class="nav">
8
+ {{#each navitems}}
9
+ <li class="nav-item">
10
+ <a class="nav-link" href="#{{linkid}}">{{linktext}}</a>
11
+ </li>
12
+ {{/each}}
13
+ </ul>
14
14
 
15
- </div>
15
+ </nav>
@@ -1,7 +1,23 @@
1
1
  .link-column {
2
2
  --max-column-width: 46rem;
3
+ --color-border: var(--#{$prefix}neutral-lighter);
4
+
3
5
  background-color: var(--#{$prefix}body-bg);
4
6
 
7
+ &.light {
8
+ --color-border: var(--#{$prefix}light-border);
9
+ }
10
+
11
+ &.alt {
12
+ --color-border: var(--#{$prefix}light-border-alt);
13
+ }
14
+ &.dark {
15
+ --color-border: var(--#{$prefix}dark-border);
16
+ }
17
+ &.dark-alt {
18
+ --color-border: var(--#{$prefix}dark-alt-border);
19
+ }
20
+
5
21
  &:has(.col-1) {
6
22
  max-width: var(--max-column-width);
7
23
  }
@@ -31,12 +47,14 @@
31
47
  .col-vert-1 {
32
48
  display: block;
33
49
  column-count: 1;
34
- column-gap: 1rem;
35
50
  }
36
51
  .col-vert-2 {
37
52
  display: block;
38
53
  column-count: 2;
39
- column-gap: 1rem;
54
+ column-gap: 2rem;
55
+ @include media-breakpoint-down(lg) {
56
+ column-gap: 1.5rem;
57
+ }
40
58
  @include media-breakpoint-down(md) {
41
59
  column-count: 1;
42
60
  }
@@ -44,10 +62,11 @@
44
62
  .col-vert-3 {
45
63
  display: block;
46
64
  column-count: 3;
47
- column-gap: 1rem;
65
+ column-gap: 2rem;
48
66
  @include media-breakpoint-down(lg) {
49
67
  column-count: 2;
50
- }
68
+ column-gap: 1.5rem;
69
+ }
51
70
  @include media-breakpoint-down(md) {
52
71
  column-count: 1;
53
72
  }
@@ -58,7 +77,7 @@
58
77
  gap: 1rem;
59
78
  align-items: center;
60
79
  align-content: center;
61
- border-block-end: 1px solid var(--#{$prefix}light-grey);
80
+ border-block-end: 1px solid var(--color-border);
62
81
  // Required to reset styles from .qld-content-body li
63
82
  margin-block: 0;
64
83
  //Reset the line height too to override styles from .qld-content-body li
@@ -11,23 +11,24 @@ import defaultdata from "./linkColumns.data.json";
11
11
  export default {
12
12
  tags: ["autodocs"],
13
13
  title: "3. Components/Link Columns",
14
-
14
+
15
15
  render: (args) => new LinkColumns(args).html,
16
16
  // args: defaultdata,
17
17
  argTypes: {
18
18
  columns: {
19
- description: 'Number of coloumns of links to display',
20
- control: { type: 'number', min: 1, max: 3, step: 1 },
19
+ description: "Number of coloumns of links to display",
20
+ control: { type: "number", min: 1, max: 3, step: 1 },
21
21
  },
22
- id: { control: 'text' },
22
+ id: { control: "text" },
23
23
  theme: {
24
- description: 'The types of themes that this component supports',
24
+ description: "The types of themes that this component supports",
25
25
  control: "select",
26
- options: ["default","light", "alt", "dark", "dark-alt"],
26
+ options: ["default", "light", "alt", "dark", "dark-alt"],
27
27
  },
28
28
  data: {
29
- description: 'The data for the link columns. Each link has a url, id, value, and target. The all_link option if available, displays a single link at the end of the list, with a optional class property.',
30
- control: 'object',
29
+ description:
30
+ "The data for the link columns. Each link has a url, id, value, and target. The all_link option if available, displays a single link at the end of the list, with a optional class property.",
31
+ control: "object",
31
32
  },
32
33
  },
33
34
 
@@ -46,8 +47,8 @@ export default {
46
47
  type: "figma",
47
48
  url: "https://www.figma.com/design/qKsxl3ogIlBp7dafgxXuCA/QGDS-UI-kit?node-id=23167-395563&t=RyMlGjeuzgl8p5Gx-0",
48
49
  },
49
- pageLayout: 'with-wrapper',
50
- wrapperClasses:'qld-content-body',
50
+ pageLayout: "with-wrapper",
51
+ wrapperClasses: "qld-content-body",
51
52
  },
52
53
  };
53
54