@qld-gov-au/qgds-bootstrap5 2.1.2 → 2.1.4

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 (72) 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/navbar/navbar.hbs +1 -1
  6. package/dist/assets/css/qld.bootstrap.css +2 -2
  7. package/dist/assets/css/qld.bootstrap.css.map +2 -2
  8. package/dist/assets/css/qld.bootstrap.legacy.css +2 -2
  9. package/dist/assets/css/qld.bootstrap.legacy.css.map +2 -2
  10. package/dist/assets/js/handlebars.helpers.bundle.js +1 -1
  11. package/dist/assets/js/handlebars.init.min.js +5 -5
  12. package/dist/assets/js/handlebars.init.min.js.map +1 -1
  13. package/dist/assets/js/handlebars.partials.js +5 -5
  14. package/dist/assets/js/handlebars.partials.js.map +1 -1
  15. package/dist/assets/js/qld.bootstrap.min.js +6 -6
  16. package/dist/assets/js/qld.bootstrap.min.js.map +3 -3
  17. package/dist/assets/node/handlebars.init.min.js +4 -4
  18. package/dist/assets/node/handlebars.init.min.js.map +1 -1
  19. package/dist/components/bs5/globalAlert/globalAlert.hbs +2 -2
  20. package/dist/components/bs5/head/head.hbs +1 -1
  21. package/dist/components/bs5/navbar/navbar.hbs +1 -1
  22. package/dist/package.json +2 -1
  23. package/dist/sample-data/globalAlert/globalAlert.data.json +9 -9
  24. package/package.json +2 -1
  25. package/src/components/bs5/accordion/mdx/_designResources.mdx +0 -1
  26. package/src/components/bs5/backToTop/backToTop.mdx +0 -1
  27. package/src/components/bs5/banner/Banner.mdx +0 -1
  28. package/src/components/bs5/blockquote/Blockquote.mdx +0 -1
  29. package/src/components/bs5/breadcrumbs/Breadcrumbs.mdx +0 -1
  30. package/src/components/bs5/button/Button.mdx +0 -1
  31. package/src/components/bs5/callToAction/callToAction.mdx +0 -1
  32. package/src/components/bs5/callout/Callout.mdx +0 -1
  33. package/src/components/bs5/card/Card.mdx +0 -1
  34. package/src/components/bs5/directionLinks/DirectionLinks.mdx +0 -1
  35. package/src/components/bs5/footer/Footer.mdx +0 -1
  36. package/src/components/bs5/formcheck/stories/checkbox/Checkbox.mdx +1 -3
  37. package/src/components/bs5/formcheck/stories/radio/Radio.mdx +0 -1
  38. package/src/components/bs5/globalAlert/GlobalAlert.mdx +0 -1
  39. package/src/components/bs5/globalAlert/globalAlert.data.json +9 -9
  40. package/src/components/bs5/globalAlert/globalAlert.hbs +2 -2
  41. package/src/components/bs5/globalAlert/globalAlert.scss +24 -9
  42. package/src/components/bs5/globalAlert/globalAlert.stories.js +1 -1
  43. package/src/components/bs5/globalAlert/globalAlert.test.js +0 -14
  44. package/src/components/bs5/header/header.scss +1 -1
  45. package/src/components/bs5/image/Image.mdx +0 -1
  46. package/src/components/bs5/inpageAlert/InpageAlert.mdx +0 -1
  47. package/src/components/bs5/inpageAlert/inpageAlert.stories.js +1 -1
  48. package/src/components/bs5/inpagenav/Inpagenav.mdx +0 -1
  49. package/src/components/bs5/link/link.mdx +1 -3
  50. package/src/components/bs5/linkColumns/linkColumns.mdx +0 -1
  51. package/src/components/bs5/linkColumns/linkColumns.stories.js +11 -10
  52. package/src/components/bs5/navbar/navbar.functions.js +52 -67
  53. package/src/components/bs5/navbar/navbar.hbs +1 -1
  54. package/src/components/bs5/navbar/navbar.scss +119 -46
  55. package/src/components/bs5/pagination/Pagination.mdx +0 -1
  56. package/src/components/bs5/pagination/pagination.scss +14 -18
  57. package/src/components/bs5/promotionalPanel/PromotionalPanel.mdx +0 -1
  58. package/src/components/bs5/promotionalPanel/promotionalPanel.stories.js +17 -15
  59. package/src/components/bs5/quickexit/quickexit.stories.js +1 -1
  60. package/src/components/bs5/searchInput/SearchInput.mdx +1 -1
  61. package/src/components/bs5/searchInput/search.functions.js +48 -2
  62. package/src/components/bs5/searchInput/searchInput.stories.js +1 -1
  63. package/src/components/bs5/spinner/Spinner.stories.js +14 -19
  64. package/src/components/bs5/table/Table.mdx +0 -1
  65. package/src/components/bs5/table/table.stories.js +1 -1
  66. package/src/components/bs5/tabs/Tabs.mdx +0 -1
  67. package/src/components/bs5/tag/Tag.mdx +0 -1
  68. package/src/components/bs5/video/Video.mdx +0 -1
  69. package/src/components/bs5/video/video.scss +1 -1
  70. package/src/components/bs5/video/video.stories.js +1 -1
  71. package/src/css/mixins/focusable.scss +1 -1
  72. 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.2","branch":"HEAD","tag":"v2.1.2","commit":"a76edf5d0854742800c2d5846df18b5280e0ed09","majorVersion":"v2"} -->
2
+ <!-- VERSION_DETAILS={"project_id":"@qld-gov-au/qgds-bootstrap5","version":"2.1.4","branch":"HEAD","tag":"v2.1.4","commit":"119a2bb84ace0878da734ff1026c633117afc4bc","majorVersion":"v2"} -->
3
3
 
4
4
  {{! Select environment, used verbatium if not using predefind key
5
5
  cdn := PROD|STAGING|BETA|TEST|DEV|???
@@ -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.2",
3
+ "version": "2.1.4",
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.2",
3
+ "version": "2.1.4",
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
  },
@@ -1,6 +1,5 @@
1
1
  ## Design resources
2
2
 
3
- - [Component library (Figma)](https://www.figma.com/file/qKsxl3ogIlBp7dafgxXuCA/QLD-GOV-DDS?type=design&node-id=6276-45691&mode=design&t=chjWFr1CLu6KQXzg-4)
4
3
  - [Master component file (Figma)](https://www.figma.com/file/qKsxl3ogIlBp7dafgxXuCA/QLD-GOV-DDS?type=design&node-id=5990-98109&mode=design&t=ORVHLonASEFQzPeD-0)
5
4
  - [Design System website](https://www.design-system.health.qld.gov.au/components/accordions)
6
5
  - [Bootstrap component](https://getbootstrap.com/docs/5.3/components/accordion/)
@@ -9,6 +9,5 @@ import * as BackToTopStories from "./backToTop.stories";
9
9
 
10
10
  ## Design resources
11
11
 
12
- - [Component library (Figma)](https://www.figma.com/design/XPeQMu5zKhEPKXdtZclWIW/Back-to-top?node-id=2004-2461&m=dev)
13
12
  - [Master component file (Figma)]()
14
13
  - [Design System website](https://www.designsystem.qld.gov.au/components/back-to-top)
@@ -10,7 +10,6 @@ import defaultdata from "./banner.data.json";
10
10
 
11
11
  ## Design resources
12
12
 
13
- - [Component library (Figma)](https://www.figma.com/file/qKsxl3ogIlBp7dafgxXuCA/QLD-GOV-DDS?type=design&node-id=10861-449385&mode=design&t=NREcuP5UOBB2Y6G4-4)
14
13
  - [Master component file (Figma)](https://www.figma.com/file/qKsxl3ogIlBp7dafgxXuCA/QLD-GOV-DDS?type=design&node-id=6037-22593&mode=design&t=YLfxdziHdqD2Ty0o-0)
15
14
  - [Design System website](https://www.designsystem.qld.gov.au/components/banners)
16
15
 
@@ -9,6 +9,5 @@ import * as BlockquoteStories from "./blockquote.stories";
9
9
 
10
10
  ## Design resources
11
11
 
12
- - [Component library (Figma)](https://www.figma.com/file/qKsxl3ogIlBp7dafgxXuCA/QLD-GOV-DDS?type=design&node-id=6310-45849&mode=design&t=NREcuP5UOBB2Y6G4-4)
13
12
  - [Master component file (Figma)](https://www.figma.com/file/qKsxl3ogIlBp7dafgxXuCA/QLD-GOV-DDS?type=design&node-id=11056-321340&mode=design&t=YLfxdziHdqD2Ty0o-0)
14
13
  - [Design System website](https://www.designsystem.qld.gov.au/components/callouts#section__quote-example)
@@ -10,7 +10,6 @@ import defaultdata from "./breadcrumbs.data.json";
10
10
 
11
11
  ## Design resources
12
12
 
13
- - [Component library (Figma)](https://www.figma.com/file/qKsxl3ogIlBp7dafgxXuCA/QLD-GOV-DDS?type=design&node-id=11185-261509&mode=design&t=NREcuP5UOBB2Y6G4-4)
14
13
  - [Master component file (Figma)](https://www.figma.com/file/qKsxl3ogIlBp7dafgxXuCA/QLD-GOV-DDS?type=design&node-id=5990-98076&mode=design&t=YLfxdziHdqD2Ty0o-0)
15
14
  - [Design System website](https://www.designsystem.qld.gov.au/components/breadcrumbs)
16
15
  - [Bootstrap component](https://getbootstrap.com/docs/5.3/components/breadcrumb/)
@@ -9,7 +9,6 @@ import * as ButtonStories from "./button.stories";
9
9
 
10
10
  ## Design resources
11
11
 
12
- - [Component library (Figma)](https://www.figma.com/file/qKsxl3ogIlBp7dafgxXuCA/QLD-GOV-DDS?type=design&node-id=6274-44764&mode=design&t=NREcuP5UOBB2Y6G4-4)
13
12
  - [Master component file (Figma)](https://www.figma.com/file/qKsxl3ogIlBp7dafgxXuCA/QLD-GOV-DDS?type=design&node-id=5990-98058&mode=design&t=YLfxdziHdqD2Ty0o-0)
14
13
  - [Design System website](https://www.designsystem.qld.gov.au/components/buttons)
15
14
  - [Bootstrap component](https://getbootstrap.com/docs/5.3/components/buttons/)
@@ -10,7 +10,6 @@ import defaultdata from "./callToAction.data.json";
10
10
 
11
11
  ## Design resources
12
12
 
13
- - [Component library (Figma)](https://www.figma.com/design/qKsxl3ogIlBp7dafgxXuCA/QGDS-UI-kit?node-id=23167-395565&t=TIV8Ku0uZZw4wtEa-0)
14
13
  - [Master component file (Figma)](https://www.figma.com/design/qKsxl3ogIlBp7dafgxXuCA/QGDS-UI-kit?node-id=11056-321367&p=f&t=PtLTzZO7iSzsq4Qn-0)
15
14
  - [Design System website](https://www.designsystem.qld.gov.au/components/call-to-action-cta)
16
15
 
@@ -9,6 +9,5 @@ import * as CalloutStories from "./callout.stories";
9
9
 
10
10
  ## Design resources
11
11
 
12
- - [Component library (Figma)](https://www.figma.com/file/qKsxl3ogIlBp7dafgxXuCA/QLD-GOV-DDS?type=design&node-id=6310-45849&mode=design&t=NREcuP5UOBB2Y6G4-4)
13
12
  - [Master component file (Figma)](https://www.figma.com/file/qKsxl3ogIlBp7dafgxXuCA/QLD-GOV-DDS?type=design&node-id=5990-98115&mode=design&t=YLfxdziHdqD2Ty0o-0)
14
13
  - [Design System website](https://www.designsystem.qld.gov.au/components/callouts)
@@ -14,7 +14,6 @@ Use the field `headingTag` to apply the correct heading level of your card title
14
14
 
15
15
  ## Design resources
16
16
 
17
- - [Component library (Figma)](https://www.figma.com/file/qKsxl3ogIlBp7dafgxXuCA/QLD-GOV-DDS?type=design&node-id=6273-41238&mode=design&t=Y96ILJNKlcVOEkpC-4)
18
17
  - [Master component file (Figma)](https://www.figma.com/file/qKsxl3ogIlBp7dafgxXuCA/QLD-GOV-DDS?type=design&node-id=5990-98141&mode=design&t=d1ly5fkj79b8cqJ6-0)
19
18
  - [Design System website](https://www.design-system.health.qld.gov.au/components/cards)
20
19
  - [Bootstrap component](https://getbootstrap.com/docs/5.3/components/card/)
@@ -9,6 +9,5 @@ import * as DirectionLinksStories from "./directionLinks.stories";
9
9
 
10
10
  ## Design resources
11
11
 
12
- - [Component library (Figma)](https://www.figma.com/design/qKsxl3ogIlBp7dafgxXuCA/QGDS-UI-kit?node-id=23167-395560&t=7cFV6FheiSfxWCL8-0)
13
12
  - [Master component file (Figma)](https://www.figma.com/design/qKsxl3ogIlBp7dafgxXuCA/QGDS-UI-kit?node-id=11056-321363&p=f&t=cQBFbBP6J97taQCN-0)
14
13
  - [Design System website](https://www.designsystem.qld.gov.au/components/direction-links)
@@ -10,7 +10,6 @@ import defaultdata from "./footer.data.json";
10
10
 
11
11
  ## Design resources
12
12
 
13
- - [Component library (Figma)](https://www.figma.com/file/qKsxl3ogIlBp7dafgxXuCA/QLD-GOV-DDS?type=design&node-id=5728-106979&mode=design&t=2A547O8zdXmQCwY7-0)
14
13
  - [Master component file (Figma)](https://www.figma.com/file/qKsxl3ogIlBp7dafgxXuCA/QLD-GOV-DDS?type=design&node-id=5728-106979&mode=design&t=2A547O8zdXmQCwY7-0)
15
14
  - [Design System website](https://www.designsystem.qld.gov.au/components/footer)
16
15
 
@@ -13,7 +13,5 @@ import * as FormCheckCheckboxStories from "./checkbox.stories";
13
13
 
14
14
  ### Checkbox
15
15
 
16
- - [Component library (Figma)](https://www.figma.com/file/qKsxl3ogIlBp7dafgxXuCA/QLD-GOV-DDS?type=design&node-id=11185-257399&mode=design&t=9b0T06NG5P47amzB-4)
17
16
  - [Master component file (Figma)](https://www.figma.com/file/qKsxl3ogIlBp7dafgxXuCA/QLD-GOV-DDS?type=design&node-id=11056-321348&mode=design&t=9b0T06NG5P47amzB-0)
18
- - [Design System website](https://www.design-system.health.qld.gov.au/components/checkboxes)./formcheckRadio.stories
19
- ../../formcheckCheckbox.stories./checkbox.stories
17
+ - [Design System website](https://www.design-system.health.qld.gov.au/components/checkboxes)
@@ -13,6 +13,5 @@ import * as FormCheckRadioStories from "./radio.stories";
13
13
 
14
14
  ### Radio
15
15
 
16
- - [Component library (Figma)](https://www.figma.com/file/qKsxl3ogIlBp7dafgxXuCA/QLD-GOV-DDS?type=design&node-id=6274-42582&mode=design&t=sWeMBpAnKzpGzmWI-4)
17
16
  - [Master component file (Figma)](https://www.figma.com/file/qKsxl3ogIlBp7dafgxXuCA/QLD-GOV-DDS?type=design&node-id=11056-321347&mode=design&t=9b0T06NG5P47amzB-0)
18
17
  - [Design System website](https://www.design-system.health.qld.gov.au/components/radio-buttons)
@@ -10,7 +10,6 @@ import defaultdata from "./globalAlert.data.json";
10
10
 
11
11
  ## Design resources
12
12
 
13
- - [Component library (Figma)](https://www.figma.com/file/qKsxl3ogIlBp7dafgxXuCA/QLD-GOV-DDS?type=design&node-id=23805-314551&mode=design&t=NREcuP5UOBB2Y6G4-4)
14
13
  - [Master component file (Figma)](https://www.figma.com/file/qKsxl3ogIlBp7dafgxXuCA/QLD-GOV-DDS?type=design&node-id=5990-97590&mode=design&t=YLfxdziHdqD2Ty0o-0)
15
14
  - [Design System website](https://www.designsystem.qld.gov.au/components/alerts-global)
16
15
 
@@ -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
 
@@ -78,7 +78,7 @@
78
78
  --qld-icon-color: var(--qld-action-icon-hover-color);
79
79
  }
80
80
 
81
- @include mixins.focusable($offsetOutline: false);
81
+ @include mixins.focusable($offsetOutline: -3px);
82
82
 
83
83
  &:before {
84
84
  content: "";
@@ -9,6 +9,5 @@ import * as ImageStories from "./image.stories";
9
9
 
10
10
  ## Design resources
11
11
 
12
- - [Component library (Figma)](https://www.figma.com/design/qKsxl3ogIlBp7dafgxXuCA/QGDS-UI-kit?node-id=11009-239702&t=EU1m2kX6Y0PGJw2O-0)
13
12
  - [Master component file (Figma)](https://www.figma.com/design/qKsxl3ogIlBp7dafgxXuCA/QGDS-UI-kit?node-id=5990-97962&p=f&t=EU1m2kX6Y0PGJw2O-0)
14
13
  - [Design System website](https://www.designsystem.qld.gov.au/styles/images)
@@ -10,7 +10,6 @@ import defaultdata from "./inpageAlert.data.json";
10
10
 
11
11
  ## Design resources
12
12
 
13
- - [Component library (Figma)](https://www.figma.com/file/qKsxl3ogIlBp7dafgxXuCA/QLD-GOV-DDS?type=design&node-id=6314-44622&mode=design&t=NREcuP5UOBB2Y6G4-4)
14
13
  - [Master component file (Figma)](https://www.figma.com/file/qKsxl3ogIlBp7dafgxXuCA/QLD-GOV-DDS?type=design&node-id=5990-98125&mode=design&t=YLfxdziHdqD2Ty0o-0)
15
14
  - [Design System website](https://www.designsystem.qld.gov.au/components/alerts-in-page)
16
15
  - [Bootstrap component](https://getbootstrap.com/docs/5.3/components/alerts/)
@@ -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
  },
@@ -9,7 +9,6 @@ import * as InpagenavStories from "./inpagenav.stories";
9
9
 
10
10
  ## Design resources
11
11
 
12
- - [Component library (Figma)](https://www.figma.com/file/qKsxl3ogIlBp7dafgxXuCA/QLD-GOV-DDS?type=design&node-id=23167-395561&mode=design&t=BToeasIYcqL5uxRb-0)
13
12
  - [Master component file (Figma)](https://www.figma.com/file/qKsxl3ogIlBp7dafgxXuCA/QLD-GOV-DDS?type=design&node-id=7905-252906&mode=design&t=BToeasIYcqL5uxRb-0)
14
13
  - [Design System website](https://www.designsystem.qld.gov.au/components/in-page-navigation)
15
14
  - [Bootstrap component](https://getbootstrap.com/docs/5.3/components/navs-tabs/#vertical)
@@ -9,6 +9,4 @@ import * as linkStories from "./link.stories";
9
9
 
10
10
  ## Design resources
11
11
 
12
- - [Component library (Figma)](https://www.figma.com/design/2hnawnMhbVAHbYj91Z3S0I/00.-QLD.GOV-extended-components-and-templates?node-id=7402-2821&m=dev)
13
- - [Master component file (Figma)]()
14
- - [Design System website]()
12
+ - [Master component file (Figma)](https://www.figma.com/design/qKsxl3ogIlBp7dafgxXuCA/QGDS-UI-kit?node-id=12900-201779&p=f&m=dev)
@@ -10,7 +10,6 @@ import defaultdata from "./linkColumns.data.json";
10
10
 
11
11
  ## Design resources
12
12
 
13
- - [Component library (Figma)](https://www.figma.com/design/qKsxl3ogIlBp7dafgxXuCA/QGDS-UI-kit?node-id=11056-321574&p=f&t=6pghtHXhO8h5PAit-0)
14
13
  - [Master component file (Figma)](https://www.figma.com/design/qKsxl3ogIlBp7dafgxXuCA/QGDS-UI-kit?node-id=11056-321574&p=f&t=6sRnJtEdRnteiQXM-0)
15
14
  - [Design System website](https://www.designsystem.qld.gov.au/components/link-columns-link-list)
16
15
 
@@ -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