@qld-gov-au/qgds-bootstrap5 2.0.6 → 2.0.8

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 (210) hide show
  1. package/.esbuild/plugins/qgds-plugin-build-log.js +2 -2
  2. package/.esbuild/plugins/qgds-plugin-copy-assets.js +0 -3
  3. package/.esbuild/plugins/qgds-plugin-handlebar-partial-builder.js +76 -66
  4. package/.storybook/README.md +10 -0
  5. package/.storybook/{main.js → main.mjs} +4 -5
  6. package/.storybook/modes.js +3 -12
  7. package/.storybook/preview.js +14 -11
  8. package/dist/assets/components/bs5/footer/footer.hbs +20 -18
  9. package/dist/assets/components/bs5/head/head.hbs +1 -1
  10. package/dist/assets/components/bs5/header/header.hbs +40 -52
  11. package/dist/assets/components/bs5/header/headerBrand.hbs +9 -10
  12. package/dist/assets/components/bs5/logo/logo.hbs +2 -0
  13. package/dist/assets/components/bs5/logo/logoCOADeliveringForQLD.hbs +49 -0
  14. package/dist/assets/components/bs5/logo/logoCOALandscape.hbs +55 -109
  15. package/dist/assets/components/bs5/logo/logoCOALandscape2Lines.hbs +55 -55
  16. package/dist/assets/components/bs5/searchInput/searchInput.hbs +5 -5
  17. package/dist/assets/css/qld.bootstrap.css +1 -1
  18. package/dist/assets/css/qld.bootstrap.css.map +3 -3
  19. package/dist/assets/css/qld.bootstrap.legacy.css +1 -1
  20. package/dist/assets/css/qld.bootstrap.legacy.css.map +3 -3
  21. package/dist/assets/img/coa-delivering-for-qld.svg +47 -0
  22. package/dist/assets/img/coa-delivering-for-qld.svg.old +58 -0
  23. package/dist/assets/img/coa-landscape-2lines.svg +63 -0
  24. package/dist/assets/img/coa-landscape-web.svg +56 -0
  25. package/dist/assets/js/handlebars.helpers.bundle.js +1 -1
  26. package/dist/assets/js/handlebars.helpers.bundle.js.map +3 -3
  27. package/dist/assets/js/handlebars.init.min.js +1329 -1344
  28. package/dist/assets/js/handlebars.init.min.js.map +4 -4
  29. package/dist/assets/js/handlebars.partials.js +2383 -136
  30. package/dist/assets/js/handlebars.partials.js.map +7 -0
  31. package/dist/assets/js/qld.bootstrap.min.js +3 -3
  32. package/dist/assets/js/qld.bootstrap.min.js.map +3 -3
  33. package/dist/assets/node/handlebars.init.min.js +219 -198
  34. package/dist/assets/node/handlebars.init.min.js.map +3 -3
  35. package/dist/components/bs5/footer/footer.hbs +20 -18
  36. package/dist/components/bs5/head/head.hbs +1 -1
  37. package/dist/components/bs5/header/header.hbs +40 -52
  38. package/dist/components/bs5/header/headerBrand.hbs +9 -10
  39. package/dist/components/bs5/logo/logo.hbs +2 -0
  40. package/dist/components/bs5/logo/logoCOADeliveringForQLD.hbs +49 -0
  41. package/dist/components/bs5/logo/logoCOALandscape.hbs +55 -109
  42. package/dist/components/bs5/logo/logoCOALandscape2Lines.hbs +55 -55
  43. package/dist/components/bs5/searchInput/searchInput.hbs +5 -5
  44. package/dist/package.json +27 -29
  45. package/dist/sample-data/correctincorrect/correctincorrect.data.json +1 -0
  46. package/dist/sample-data/header/header.variant.coBrand.data.json +5 -8
  47. package/dist/sample-data/header/header.variant.endorsed.data.json +3 -6
  48. package/dist/sample-data/header/header.variant.masterBrand.data.json +1 -6
  49. package/dist/sample-data/header/header.variant.standAlone.data.json +3 -6
  50. package/dist/sample-data/header/header.variant.subBrand.data.json +5 -8
  51. package/dist/sample-data/tabs/tabs.data.json +1 -2
  52. package/dist/sample-data/typography/typography.data.json +1 -0
  53. package/esbuild.js +16 -4
  54. package/package.json +27 -29
  55. package/pom.xml +3 -3
  56. package/src/components/bs5/accordion/Accordion.mdx +1 -1
  57. package/src/components/bs5/accordion/accordion.stories.js +17 -22
  58. package/src/components/bs5/backToTop/backToTop.mdx +1 -1
  59. package/src/components/bs5/banner/Banner.mdx +1 -1
  60. package/src/components/bs5/banner/banner.scss +2 -2
  61. package/src/components/bs5/blockquote/Blockquote.mdx +1 -1
  62. package/src/components/bs5/blockquote/manifest.json +1 -0
  63. package/src/components/bs5/breadcrumbs/Breadcrumbs.mdx +1 -1
  64. package/src/components/bs5/breadcrumbs/breadcrumbs.scss +7 -2
  65. package/src/components/bs5/breadcrumbs/breadcrumbs.stories.js +19 -10
  66. package/src/components/bs5/breadcrumbs/manifest.json +1 -0
  67. package/src/components/bs5/breadcumbsWrapper/manifest.json +1 -0
  68. package/src/components/bs5/button/Button.mdx +1 -1
  69. package/src/components/bs5/button/manifest.json +1 -0
  70. package/src/components/bs5/callToAction/callToAction.mdx +1 -1
  71. package/src/components/bs5/callToAction/callToAction.stories.js +15 -50
  72. package/src/components/bs5/callout/Callout.mdx +1 -1
  73. package/src/components/bs5/callout/callout.stories.js +7 -26
  74. package/src/components/bs5/callout/manifest.json +1 -0
  75. package/src/components/bs5/card/Card.mdx +1 -1
  76. package/src/components/bs5/card/card.scss +1 -1
  77. package/src/components/bs5/card/manifest.json +1 -0
  78. package/src/components/bs5/contentFooter/manifest.json +1 -0
  79. package/src/components/bs5/contentFooterWrapper/manifest.json +1 -0
  80. package/src/components/bs5/contentWrapper/manifest.json +1 -0
  81. package/src/components/bs5/correctincorrect/correctincorrect.data.json +1 -0
  82. package/src/components/bs5/correctincorrect/manifest.json +1 -0
  83. package/src/components/bs5/dateinput/Dateinput.stories.js +23 -31
  84. package/src/components/bs5/dateinput/manifest.json +1 -0
  85. package/src/components/bs5/directionLinks/DirectionLinks.mdx +1 -1
  86. package/src/components/bs5/directionLinks/directionLinks.stories.js +14 -12
  87. package/src/components/bs5/footer/Footer.mdx +1 -1
  88. package/src/components/bs5/footer/footer.hbs +20 -18
  89. package/src/components/bs5/footer/footer.scss +7 -5
  90. package/src/components/bs5/formcheck/manifest.json +1 -0
  91. package/src/components/bs5/formcheck/stories/checkbox/Checkbox.mdx +1 -1
  92. package/src/components/bs5/formcheck/stories/checkbox/checkbox.stories.js +44 -87
  93. package/src/components/bs5/formcheck/stories/radio/Radio.mdx +1 -1
  94. package/src/components/bs5/formcheck/stories/radio/radio.stories.js +9 -36
  95. package/src/components/bs5/fullPageWrapper/manifest.json +1 -0
  96. package/src/components/bs5/globalAlert/GlobalAlert.mdx +1 -1
  97. package/src/components/bs5/globalAlert/globalAlert.test.js +3 -3
  98. package/src/components/bs5/globalAlert/manifest.json +1 -0
  99. package/src/components/bs5/head/manifest.json +1 -0
  100. package/src/components/bs5/header/Header.js +25 -0
  101. package/src/components/bs5/header/Header.mdx +1 -1
  102. package/src/components/bs5/header/_header-variables.scss +61 -247
  103. package/src/components/bs5/header/header.functions.js +10 -15
  104. package/src/components/bs5/header/header.hbs +40 -52
  105. package/src/components/bs5/header/header.scss +166 -158
  106. package/src/components/bs5/header/header.stories.js +35 -233
  107. package/src/components/bs5/header/header.variant.coBrand.data.json +5 -8
  108. package/src/components/bs5/header/header.variant.endorsed.data.json +3 -6
  109. package/src/components/bs5/header/header.variant.masterBrand.data.json +1 -6
  110. package/src/components/bs5/header/header.variant.standAlone.data.json +3 -6
  111. package/src/components/bs5/header/header.variant.subBrand.data.json +5 -8
  112. package/src/components/bs5/header/headerBrand.hbs +9 -10
  113. package/src/components/bs5/header/manifest.json +1 -0
  114. package/src/components/bs5/icons/Icons.mdx +1 -1
  115. package/src/components/bs5/icons/manifest.json +1 -0
  116. package/src/components/bs5/icons/mdx/_IconsSizes.mdx +1 -1
  117. package/src/components/bs5/image/Image.mdx +1 -1
  118. package/src/components/bs5/inpageAlert/InpageAlert.mdx +1 -1
  119. package/src/components/bs5/inpageAlert/inpageAlert.scss +107 -120
  120. package/src/components/bs5/inpageAlert/inpageAlert.stories.js +7 -23
  121. package/src/components/bs5/inpageAlert/manifest.json +1 -0
  122. package/src/components/bs5/inpagenav/Inpagenav.mdx +1 -1
  123. package/src/components/bs5/inpagenav/inpagenav.stories.js +4 -6
  124. package/src/components/bs5/inpagenav/manifest.json +1 -0
  125. package/src/components/bs5/link/link.mdx +1 -1
  126. package/src/components/bs5/link/link.stories.js +4 -6
  127. package/src/components/bs5/linkColumns/linkColumns.mdx +1 -1
  128. package/src/components/bs5/linkColumns/linkColumns.scss +18 -25
  129. package/src/components/bs5/logo/Logo.mdx +1 -1
  130. package/src/components/bs5/logo/logo.hbs +2 -0
  131. package/src/components/bs5/logo/logoCOADeliveringForQLD.hbs +49 -0
  132. package/src/components/bs5/logo/logoCOALandscape.hbs +55 -109
  133. package/src/components/bs5/logo/logoCOALandscape2Lines.hbs +55 -55
  134. package/src/components/bs5/mainContainerWrapper/manifest.json +1 -0
  135. package/src/components/bs5/metaDcTerms/manifest.json +1 -0
  136. package/src/components/bs5/metaOpenGraph/manifest.json +1 -0
  137. package/src/components/bs5/modal/Modal.mdx +1 -1
  138. package/src/components/bs5/modal/manifest.json +1 -0
  139. package/src/components/bs5/navbar/navbar.scss +36 -14
  140. package/src/components/bs5/pagination/Pagination.mdx +1 -1
  141. package/src/components/bs5/pagination/manifest.json +1 -0
  142. package/src/components/bs5/pagination/pagination.stories.js +12 -21
  143. package/src/components/bs5/promotionalPanel/PromotionalPanel.mdx +1 -1
  144. package/src/components/bs5/quickexit/manifest.json +1 -0
  145. package/src/components/bs5/searchInput/SearchInput.js +3 -5
  146. package/src/components/bs5/searchInput/SearchInput.mdx +1 -1
  147. package/src/components/bs5/searchInput/__snapshots__/searchInput.test.js.snap +5 -5
  148. package/src/components/bs5/searchInput/manifest.json +1 -0
  149. package/src/components/bs5/searchInput/searchInput.hbs +5 -5
  150. package/src/components/bs5/searchInput/searchInput.scss +13 -0
  151. package/src/components/bs5/searchInput/searchInput.stories.js +10 -12
  152. package/src/components/bs5/select/manifest.json +1 -0
  153. package/src/components/bs5/sidenav/Sidenav.mdx +1 -1
  154. package/src/components/bs5/sidenav/manifest.json +1 -0
  155. package/src/components/bs5/sidenav/sidenav.stories.js +4 -7
  156. package/src/components/bs5/sidenavWrapper/manifest.json +1 -0
  157. package/src/components/bs5/skiplinks/SkipLinks.mdx +1 -1
  158. package/src/components/bs5/spinner/manifest.json +1 -0
  159. package/src/components/bs5/table/Table.mdx +1 -1
  160. package/src/components/bs5/table/manifest.json +1 -0
  161. package/src/components/bs5/tabs/Tabs.mdx +1 -1
  162. package/src/components/bs5/tabs/tabs.data.json +1 -2
  163. package/src/components/bs5/tabs/tabs.stories.js +38 -215
  164. package/src/components/bs5/tag/Tag.mdx +1 -1
  165. package/src/components/bs5/tag/manifest.json +1 -0
  166. package/src/components/bs5/tag/tag--large.stories.js +53 -0
  167. package/src/components/bs5/tag/tag--standard.stories.js +39 -0
  168. package/src/components/bs5/tag/tag--status.stories.js +97 -0
  169. package/src/components/bs5/tag/tag.scss +67 -36
  170. package/src/components/bs5/tag/tag.stories.js +69 -106
  171. package/src/components/bs5/textarea/manifest.json +1 -0
  172. package/src/components/bs5/textbox/manifest.json +1 -0
  173. package/src/components/bs5/typography/Typography.mdx +1 -1
  174. package/src/components/bs5/typography/manifest.json +1 -0
  175. package/src/components/bs5/typography/typography.data.json +1 -0
  176. package/src/components/bs5/typography/typography.stories.js +6 -24
  177. package/src/components/bs5/video/Video.mdx +1 -1
  178. package/src/components/bs5/video/manifest.json +1 -0
  179. package/src/components/bs5/video/video.stories.js +6 -24
  180. package/src/css/main.scss +2 -2
  181. package/src/css/mixins/_index.scss +1 -0
  182. package/src/css/mixins/focusable.scss +6 -5
  183. package/src/css/mixins/make-link.scss +40 -0
  184. package/src/css/qld-print.scss +426 -304
  185. package/src/css/qld-theme.scss +16 -8
  186. package/src/css/qld-type.scss +3 -73
  187. package/src/css/variables/animation.scss +5 -0
  188. package/src/img/coa-delivering-for-qld.svg +47 -0
  189. package/src/img/coa-delivering-for-qld.svg.old +58 -0
  190. package/src/img/coa-landscape-2lines.svg +63 -0
  191. package/src/img/coa-landscape-web.svg +56 -0
  192. package/src/js/handlebars.helpers.js +51 -38
  193. package/src/js/handlebars.partials.js +12 -10
  194. package/src/stories/Introduction.mdx +1 -1
  195. package/vite.config.js +17 -0
  196. package/.eslintrc.cjs +0 -52
  197. package/dist/assets/img/_coa_header-logo-qgov--stacked.svg +0 -171
  198. package/dist/assets/img/_coa_header-logo-qgov-masterbrand.svg +0 -56
  199. package/dist/assets/img/_coa_preheader-logo-qgov.svg +0 -56
  200. package/dist/assets/js/bootstrap.js +0 -6312
  201. package/dist/assets/js/handlebars.helpers.js +0 -292
  202. package/dist/assets/js/handlebars.init.cjs +0 -6
  203. package/dist/assets/js/handlebars.init.js +0 -34
  204. package/dist/components/handlebars.helpers.js +0 -292
  205. package/dist/components/handlebars.init.cjs +0 -6
  206. package/dist/components/handlebars.init.js +0 -34
  207. package/dist/components/handlebars.partials.js +0 -136
  208. package/src/img/_coa_header-logo-qgov--stacked.svg +0 -171
  209. package/src/img/_coa_header-logo-qgov-masterbrand.svg +0 -56
  210. package/src/img/_coa_preheader-logo-qgov.svg +0 -56
@@ -2,136 +2,123 @@
2
2
  // Extends: https://getbootstrap.com/docs/5.3/components/alerts/#variables
3
3
 
4
4
  //All alerts have the same text and background color, even on darker themes
5
- //To account for this, we redefine the global vars at the .alert scope
5
+ //To account for this, we redefine the global vars at the .alert scope
6
6
 
7
- .alert,
8
- .light .alert,
9
- .light-alt .alert,
10
- .dark .alert,
11
- .dark-alt .alert {
12
- --qld-headings-color: var(--#{$prefix}light-text-text);
13
- --qld-body-color: var(--#{$prefix}light-text-text);
14
- --qld-alert-color: var(--#{$prefix}light-text-text);
15
- --qld-alert-bg: #FFF;
16
- --qld-link-color: #{$link-color};
17
- --qld-link-hover-color: #{$link-hover-color};
18
- --qld-link-visited: #{$link-visited-color};
19
- --qld-selection-color: var(--qld-white);
20
- --qld-selection-bg: var(--qld-brand-primary);
21
- --qld-focus-color: var(--qld-light-focus);
7
+ .alert {
8
+ @include light-theme-properties();
9
+ --qld-headings-color: var(--#{$prefix}light-text-text);
10
+ --qld-alert-color: var(--#{$prefix}light-text-text);
11
+ --qld-alert-bg: #fff;
22
12
  }
23
13
 
24
-
25
-
26
14
  .alert {
27
-
28
- padding-left: 4rem;
29
- overflow-wrap: break-word;
30
-
31
- .alert-heading {
32
- line-height: 1.5;
33
- font-size: 1.5rem;
34
- font-weight: 600;
35
- margin: 0 0 1rem 0;
36
- padding: 0;
37
- color: var(--qld-color-default-color-light-text-heading);
38
- }
39
-
40
- p,
41
- ul,
42
- ol {
43
- line-height: 1.5;
44
-
45
- &:last-of-type {
46
- margin-bottom: 0;
47
- }
48
- }
49
-
50
- a {
51
- color: var(--qld-link-color);
52
- text-decoration-color: var(--qld-link-color);
53
-
54
- &:visited {
55
- color: var(--qld-link-visited);
56
- text-decoration-color: var(--qld-link-visited);
57
- }
58
- }
59
-
60
-
61
-
62
- // Close button for dismissible alerts
63
- .btn-close {
64
- position: absolute;
65
- top: 1rem;
66
- right: 1rem;
67
- height: 2rem;
68
- width: 2rem;
69
- background: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg style='mix-blend-mode:multiply'%3E%3Ccircle cx='16' cy='16' r='16' fill='%23F5F5F5'/%3E%3C/g%3E%3Cpath d='M17.2871 15.9004L21.3105 11.916L22.1309 11.0957C22.248 10.9785 22.248 10.7832 22.1309 10.627L21.2715 9.76758C21.1152 9.65039 20.9199 9.65039 20.8027 9.76758L15.998 14.6113L11.1543 9.76758C11.0371 9.65039 10.8418 9.65039 10.6855 9.76758L9.82617 10.627C9.70898 10.7832 9.70898 10.9785 9.82617 11.0957L14.6699 15.9004L9.82617 20.7441C9.70898 20.8613 9.70898 21.0566 9.82617 21.2129L10.6855 22.0723C10.8418 22.1895 11.0371 22.1895 11.1543 22.0723L15.998 17.2285L19.9824 21.252L20.8027 22.0723C20.9199 22.1895 21.1152 22.1895 21.2715 22.0723L22.1309 21.2129C22.248 21.0566 22.248 20.8613 22.1309 20.7441L17.2871 15.9004Z' fill='%231D1D1D'/%3E%3C/svg%3E") no-repeat center center;
70
- }
71
-
72
- //Alert sidebar color and icon
73
- //Colors and icons defined below
74
- &:before,
75
- &:after {
76
- content: "";
77
- width: 3rem;
78
- position: absolute;
79
- left: 0;
80
- top: 0;
81
- bottom: 0;
82
- }
83
-
84
- &:after {
85
- color: #fff;
86
- background-repeat: no-repeat;
87
- background-position: center center;
15
+ padding-left: 4rem;
16
+ overflow-wrap: break-word;
17
+
18
+ .alert-heading {
19
+ line-height: 1.5;
20
+ font-size: 1.5rem;
21
+ font-weight: 600;
22
+ margin: 0 0 1rem 0;
23
+ padding: 0;
24
+ color: var(--qld-color-default-color-light-text-heading);
25
+ }
26
+
27
+ p,
28
+ ul,
29
+ ol {
30
+ line-height: 1.5;
31
+
32
+ &:last-of-type {
33
+ margin-bottom: 0;
88
34
  }
89
-
90
- //alerts color map
91
- $alert-colors-map: (
92
- "success": (color: var(--#{$prefix}success),
93
- icon: "data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cmask id='mask0_5702_82645' style='mask-type:alpha' maskUnits='userSpaceOnUse' x='0' y='0' width='20' height='20'%3E%3Cpath d='M9.2207 12.6953C8.99805 12.918 8.58984 12.918 8.36719 12.6953L5.99219 10.3203C5.76953 10.0977 5.76953 9.68945 5.99219 9.4668C6.21484 9.24414 6.62305 9.24414 6.8457 9.4668L8.8125 11.4336L13.1172 7.0918C13.3398 6.86914 13.748 6.86914 13.9707 7.0918C14.1934 7.31445 14.1934 7.72266 13.9707 7.94531L9.2207 12.6953ZM19.5 9.875C19.5 15.1445 15.2324 19.375 10 19.375C4.73047 19.375 0.5 15.1445 0.5 9.875C0.5 4.64258 4.73047 0.375 10 0.375C15.2324 0.375 19.5 4.64258 19.5 9.875ZM10 1.5625C5.39844 1.5625 1.6875 5.31055 1.6875 9.875C1.6875 14.4766 5.39844 18.1875 10 18.1875C14.5645 18.1875 18.3125 14.4766 18.3125 9.875C18.3125 5.31055 14.5645 1.5625 10 1.5625Z' fill='%2303213F'/%3E%3C/mask%3E%3Cg mask='url(%23mask0_5702_82645)'%3E%3Crect width='20' height='20' fill='%23FFFFFF'/%3E%3C/g%3E%3C/svg%3E%0A"
94
- ),
95
- "info": (color: var(--#{$prefix}info),
96
- icon: "data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cmask id='mask0_5702_82508' style='mask-type:alpha' maskUnits='userSpaceOnUse' x='1' y='1' width='18' height='18'%3E%3Cpath d='M10 7.20312C9.48047 7.20312 9.10938 6.83203 9.10938 6.3125C9.10938 5.83008 9.48047 5.42188 10 5.42188C10.4824 5.42188 10.8906 5.83008 10.8906 6.3125C10.8906 6.83203 10.4824 7.20312 10 7.20312ZM15.9375 1.5625C17.2363 1.5625 18.3125 2.63867 18.3125 3.9375V15.8125C18.3125 17.1484 17.2363 18.1875 15.9375 18.1875H4.0625C2.72656 18.1875 1.6875 17.1484 1.6875 15.8125V3.9375C1.6875 2.63867 2.72656 1.5625 4.0625 1.5625H15.9375ZM17.125 15.8125V3.9375C17.125 3.30664 16.5684 2.75 15.9375 2.75H4.0625C3.39453 2.75 2.875 3.30664 2.875 3.9375V15.8125C2.875 16.4805 3.39453 17 4.0625 17H15.9375C16.5684 17 17.125 16.4805 17.125 15.8125ZM11.7812 13.4375C12.0781 13.4375 12.375 13.7344 12.375 14.0312C12.375 14.3652 12.0781 14.625 11.7812 14.625H8.21875C7.88477 14.625 7.625 14.3652 7.625 14.0312C7.625 13.7344 7.88477 13.4375 8.21875 13.4375H9.40625V9.875H8.8125C8.47852 9.875 8.21875 9.61523 8.21875 9.28125C8.21875 8.98438 8.47852 8.6875 8.8125 8.6875H10C10.2969 8.6875 10.5938 8.98438 10.5938 9.28125V13.4375H11.7812Z' fill='%2303213F'/%3E%3C/mask%3E%3Cg mask='url(%23mask0_5702_82508)'%3E%3Crect width='20' height='20' fill='%23FFFFFF'/%3E%3C/g%3E%3C/svg%3E%0A"
97
- ),
98
- "warning": (color: var(--#{$prefix}warning),
99
- icon: "data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cmask id='mask0_5702_80802' style='mask-type:alpha' maskUnits='userSpaceOnUse' x='0' y='2' width='20' height='17'%3E%3Cpath d='M10 13.9062C10.457 13.9062 10.8438 14.293 10.8086 14.75C10.8086 15.2422 10.457 15.5938 10 15.5938C9.54297 15.5938 9.15625 15.2422 9.15625 14.75C9.15625 14.293 9.50781 13.9062 10 13.9062ZM10 12.5C9.68359 12.5 9.4375 12.2539 9.4375 11.9375V6.875C9.4375 6.59375 9.71875 6.3125 10 6.3125C10.2461 6.3125 10.5273 6.59375 10.5273 6.875V11.9375C10.5273 12.2539 10.2812 12.5 10 12.5ZM18.7188 15.2422C19.0703 15.8398 19.0703 16.543 18.7188 17.1406C18.3672 17.7734 17.7344 18.125 17.0312 18.125H2.96875C2.23047 18.125 1.59766 17.7734 1.24609 17.1406C0.894531 16.543 0.894531 15.8398 1.24609 15.2422L8.27734 3.35938C8.62891 2.76172 9.26172 2.375 10 2.375C10.7031 2.41016 11.3359 2.76172 11.6875 3.35938L18.7188 15.2422ZM17.7344 16.5781C17.9102 16.332 17.875 16.0508 17.7344 15.8047L10.7031 3.92188C10.5625 3.67578 10.2812 3.53516 10 3.5C9.96484 3.5 10 3.5 10 3.5C9.68359 3.5 9.40234 3.67578 9.26172 3.92188L2.23047 15.8047C2.08984 16.0508 2.05469 16.332 2.23047 16.5781C2.37109 16.8594 2.65234 17 2.96875 17H16.9961C17.3125 17 17.5938 16.8594 17.7344 16.5781Z' fill='%2303213F'/%3E%3C/mask%3E%3Cg mask='url(%23mask0_5702_80802)'%3E%3Crect width='20' height='20' fill='%231D1D1D'/%3E%3C/g%3E%3C/svg%3E%0A"
100
- ),
101
- "danger": (color: var(--#{$prefix}danger),
102
- icon: "data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cmask id='mask0_34619_4370' style='mask-type:alpha' maskUnits='userSpaceOnUse' x='4' y='4' width='12' height='12'%3E%3Cpath d='M14.8438 14.875C14.6562 15.0625 14.3125 15.0625 14.125 14.875L10 10.7188L5.84375 14.875C5.65625 15.0625 5.3125 15.0625 5.125 14.875C4.9375 14.6875 4.9375 14.3438 5.125 14.1562L9.28125 10L5.125 5.875C4.9375 5.6875 4.9375 5.34375 5.125 5.15625C5.3125 4.96875 5.65625 4.96875 5.84375 5.15625L10 9.3125L14.125 5.15625C14.3125 4.96875 14.6562 4.96875 14.8438 5.15625C15.0312 5.34375 15.0312 5.6875 14.8438 5.875L10.6875 10L14.8438 14.1562C15.0312 14.3438 15.0312 14.6875 14.8438 14.875Z' fill='%2303213F'/%3E%3C/mask%3E%3Cg mask='url(%23mask0_34619_4370)'%3E%3Crect width='20' height='20' fill='white'/%3E%3C/g%3E%3Ccircle cx='10' cy='10' r='9.5' stroke='white'/%3E%3C/svg%3E%0A"
103
- ),
104
- //.alert-error can be a clone of .alert-danger
105
- "error": (color: var(--#{$prefix}danger),
106
- icon: "data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cmask id='mask0_34619_4370' style='mask-type:alpha' maskUnits='userSpaceOnUse' x='4' y='4' width='12' height='12'%3E%3Cpath d='M14.8438 14.875C14.6562 15.0625 14.3125 15.0625 14.125 14.875L10 10.7188L5.84375 14.875C5.65625 15.0625 5.3125 15.0625 5.125 14.875C4.9375 14.6875 4.9375 14.3438 5.125 14.1562L9.28125 10L5.125 5.875C4.9375 5.6875 4.9375 5.34375 5.125 5.15625C5.3125 4.96875 5.65625 4.96875 5.84375 5.15625L10 9.3125L14.125 5.15625C14.3125 4.96875 14.6562 4.96875 14.8438 5.15625C15.0312 5.34375 15.0312 5.6875 14.8438 5.875L10.6875 10L14.8438 14.1562C15.0312 14.3438 15.0312 14.6875 14.8438 14.875Z' fill='%2303213F'/%3E%3C/mask%3E%3Cg mask='url(%23mask0_34619_4370)'%3E%3Crect width='20' height='20' fill='white'/%3E%3C/g%3E%3Ccircle cx='10' cy='10' r='9.5' stroke='white'/%3E%3C/svg%3E%0A"
107
- ),
108
- "light": (color: var(--#{$prefix}light-grey),
109
- icon: "data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cmask id='mask0_5702_82508' style='mask-type:alpha' maskUnits='userSpaceOnUse' x='1' y='1' width='18' height='18'%3E%3Cpath d='M10 7.20312C9.48047 7.20312 9.10938 6.83203 9.10938 6.3125C9.10938 5.83008 9.48047 5.42188 10 5.42188C10.4824 5.42188 10.8906 5.83008 10.8906 6.3125C10.8906 6.83203 10.4824 7.20312 10 7.20312ZM15.9375 1.5625C17.2363 1.5625 18.3125 2.63867 18.3125 3.9375V15.8125C18.3125 17.1484 17.2363 18.1875 15.9375 18.1875H4.0625C2.72656 18.1875 1.6875 17.1484 1.6875 15.8125V3.9375C1.6875 2.63867 2.72656 1.5625 4.0625 1.5625H15.9375ZM17.125 15.8125V3.9375C17.125 3.30664 16.5684 2.75 15.9375 2.75H4.0625C3.39453 2.75 2.875 3.30664 2.875 3.9375V15.8125C2.875 16.4805 3.39453 17 4.0625 17H15.9375C16.5684 17 17.125 16.4805 17.125 15.8125ZM11.7812 13.4375C12.0781 13.4375 12.375 13.7344 12.375 14.0312C12.375 14.3652 12.0781 14.625 11.7812 14.625H8.21875C7.88477 14.625 7.625 14.3652 7.625 14.0312C7.625 13.7344 7.88477 13.4375 8.21875 13.4375H9.40625V9.875H8.8125C8.47852 9.875 8.21875 9.61523 8.21875 9.28125C8.21875 8.98438 8.47852 8.6875 8.8125 8.6875H10C10.2969 8.6875 10.5938 8.98438 10.5938 9.28125V13.4375H11.7812Z' fill='%2303213F'/%3E%3C/mask%3E%3Cg mask='url(%23mask0_5702_82508)'%3E%3Crect width='20' height='20' fill='%23595959'/%3E%3C/g%3E%3C/svg%3E%0A"
110
- ),
111
- "dark": (color: var(--#{$prefix}dark-grey),
112
- icon: "data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cmask id='mask0_5702_82508' style='mask-type:alpha' maskUnits='userSpaceOnUse' x='1' y='1' width='18' height='18'%3E%3Cpath d='M10 7.20312C9.48047 7.20312 9.10938 6.83203 9.10938 6.3125C9.10938 5.83008 9.48047 5.42188 10 5.42188C10.4824 5.42188 10.8906 5.83008 10.8906 6.3125C10.8906 6.83203 10.4824 7.20312 10 7.20312ZM15.9375 1.5625C17.2363 1.5625 18.3125 2.63867 18.3125 3.9375V15.8125C18.3125 17.1484 17.2363 18.1875 15.9375 18.1875H4.0625C2.72656 18.1875 1.6875 17.1484 1.6875 15.8125V3.9375C1.6875 2.63867 2.72656 1.5625 4.0625 1.5625H15.9375ZM17.125 15.8125V3.9375C17.125 3.30664 16.5684 2.75 15.9375 2.75H4.0625C3.39453 2.75 2.875 3.30664 2.875 3.9375V15.8125C2.875 16.4805 3.39453 17 4.0625 17H15.9375C16.5684 17 17.125 16.4805 17.125 15.8125ZM11.7812 13.4375C12.0781 13.4375 12.375 13.7344 12.375 14.0312C12.375 14.3652 12.0781 14.625 11.7812 14.625H8.21875C7.88477 14.625 7.625 14.3652 7.625 14.0312C7.625 13.7344 7.88477 13.4375 8.21875 13.4375H9.40625V9.875H8.8125C8.47852 9.875 8.21875 9.61523 8.21875 9.28125C8.21875 8.98438 8.47852 8.6875 8.8125 8.6875H10C10.2969 8.6875 10.5938 8.98438 10.5938 9.28125V13.4375H11.7812Z' fill='%2303213F'/%3E%3C/mask%3E%3Cg mask='url(%23mask0_5702_82508)'%3E%3Crect width='20' height='20' fill='%23FFFFFF'/%3E%3C/g%3E%3C/svg%3E%0A"
113
- )
114
- );
115
-
116
- //Sets colors (border and icon-background) and icons for each alert type
117
- @each $key, $properties in $alert-colors-map {
118
-
35
+ }
36
+
37
+ // Close button for dismissible alerts
38
+ .btn-close {
39
+ position: absolute;
40
+ top: 1rem;
41
+ right: 1rem;
42
+ height: 2rem;
43
+ width: 2rem;
44
+ background: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg style='mix-blend-mode:multiply'%3E%3Ccircle cx='16' cy='16' r='16' fill='%23F5F5F5'/%3E%3C/g%3E%3Cpath d='M17.2871 15.9004L21.3105 11.916L22.1309 11.0957C22.248 10.9785 22.248 10.7832 22.1309 10.627L21.2715 9.76758C21.1152 9.65039 20.9199 9.65039 20.8027 9.76758L15.998 14.6113L11.1543 9.76758C11.0371 9.65039 10.8418 9.65039 10.6855 9.76758L9.82617 10.627C9.70898 10.7832 9.70898 10.9785 9.82617 11.0957L14.6699 15.9004L9.82617 20.7441C9.70898 20.8613 9.70898 21.0566 9.82617 21.2129L10.6855 22.0723C10.8418 22.1895 11.0371 22.1895 11.1543 22.0723L15.998 17.2285L19.9824 21.252L20.8027 22.0723C20.9199 22.1895 21.1152 22.1895 21.2715 22.0723L22.1309 21.2129C22.248 21.0566 22.248 20.8613 22.1309 20.7441L17.2871 15.9004Z' fill='%231D1D1D'/%3E%3C/svg%3E")
45
+ no-repeat center center;
46
+ }
47
+
48
+ //Alert sidebar color and icon
49
+ //Colors and icons defined below
50
+ &:before,
51
+ &:after {
52
+ content: "";
53
+ width: 3rem;
54
+ position: absolute;
55
+ left: 0;
56
+ top: 0;
57
+ bottom: 0;
58
+ }
59
+
60
+ &:after {
61
+ color: #fff;
62
+ background-repeat: no-repeat;
63
+ background-position: center center;
64
+ }
65
+
66
+ //alerts color map
67
+ $alert-colors-map: (
68
+ "success": (
69
+ color: var(--#{$prefix}success),
70
+ icon:
71
+ "data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cmask id='mask0_5702_82645' style='mask-type:alpha' maskUnits='userSpaceOnUse' x='0' y='0' width='20' height='20'%3E%3Cpath d='M9.2207 12.6953C8.99805 12.918 8.58984 12.918 8.36719 12.6953L5.99219 10.3203C5.76953 10.0977 5.76953 9.68945 5.99219 9.4668C6.21484 9.24414 6.62305 9.24414 6.8457 9.4668L8.8125 11.4336L13.1172 7.0918C13.3398 6.86914 13.748 6.86914 13.9707 7.0918C14.1934 7.31445 14.1934 7.72266 13.9707 7.94531L9.2207 12.6953ZM19.5 9.875C19.5 15.1445 15.2324 19.375 10 19.375C4.73047 19.375 0.5 15.1445 0.5 9.875C0.5 4.64258 4.73047 0.375 10 0.375C15.2324 0.375 19.5 4.64258 19.5 9.875ZM10 1.5625C5.39844 1.5625 1.6875 5.31055 1.6875 9.875C1.6875 14.4766 5.39844 18.1875 10 18.1875C14.5645 18.1875 18.3125 14.4766 18.3125 9.875C18.3125 5.31055 14.5645 1.5625 10 1.5625Z' fill='%2303213F'/%3E%3C/mask%3E%3Cg mask='url(%23mask0_5702_82645)'%3E%3Crect width='20' height='20' fill='%23FFFFFF'/%3E%3C/g%3E%3C/svg%3E%0A",
72
+ ),
73
+ "info": (
74
+ color: var(--#{$prefix}info),
75
+ icon:
76
+ "data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cmask id='mask0_5702_82508' style='mask-type:alpha' maskUnits='userSpaceOnUse' x='1' y='1' width='18' height='18'%3E%3Cpath d='M10 7.20312C9.48047 7.20312 9.10938 6.83203 9.10938 6.3125C9.10938 5.83008 9.48047 5.42188 10 5.42188C10.4824 5.42188 10.8906 5.83008 10.8906 6.3125C10.8906 6.83203 10.4824 7.20312 10 7.20312ZM15.9375 1.5625C17.2363 1.5625 18.3125 2.63867 18.3125 3.9375V15.8125C18.3125 17.1484 17.2363 18.1875 15.9375 18.1875H4.0625C2.72656 18.1875 1.6875 17.1484 1.6875 15.8125V3.9375C1.6875 2.63867 2.72656 1.5625 4.0625 1.5625H15.9375ZM17.125 15.8125V3.9375C17.125 3.30664 16.5684 2.75 15.9375 2.75H4.0625C3.39453 2.75 2.875 3.30664 2.875 3.9375V15.8125C2.875 16.4805 3.39453 17 4.0625 17H15.9375C16.5684 17 17.125 16.4805 17.125 15.8125ZM11.7812 13.4375C12.0781 13.4375 12.375 13.7344 12.375 14.0312C12.375 14.3652 12.0781 14.625 11.7812 14.625H8.21875C7.88477 14.625 7.625 14.3652 7.625 14.0312C7.625 13.7344 7.88477 13.4375 8.21875 13.4375H9.40625V9.875H8.8125C8.47852 9.875 8.21875 9.61523 8.21875 9.28125C8.21875 8.98438 8.47852 8.6875 8.8125 8.6875H10C10.2969 8.6875 10.5938 8.98438 10.5938 9.28125V13.4375H11.7812Z' fill='%2303213F'/%3E%3C/mask%3E%3Cg mask='url(%23mask0_5702_82508)'%3E%3Crect width='20' height='20' fill='%23FFFFFF'/%3E%3C/g%3E%3C/svg%3E%0A",
77
+ ),
78
+ "warning": (
79
+ color: var(--#{$prefix}warning),
80
+ icon:
81
+ "data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cmask id='mask0_5702_80802' style='mask-type:alpha' maskUnits='userSpaceOnUse' x='0' y='2' width='20' height='17'%3E%3Cpath d='M10 13.9062C10.457 13.9062 10.8438 14.293 10.8086 14.75C10.8086 15.2422 10.457 15.5938 10 15.5938C9.54297 15.5938 9.15625 15.2422 9.15625 14.75C9.15625 14.293 9.50781 13.9062 10 13.9062ZM10 12.5C9.68359 12.5 9.4375 12.2539 9.4375 11.9375V6.875C9.4375 6.59375 9.71875 6.3125 10 6.3125C10.2461 6.3125 10.5273 6.59375 10.5273 6.875V11.9375C10.5273 12.2539 10.2812 12.5 10 12.5ZM18.7188 15.2422C19.0703 15.8398 19.0703 16.543 18.7188 17.1406C18.3672 17.7734 17.7344 18.125 17.0312 18.125H2.96875C2.23047 18.125 1.59766 17.7734 1.24609 17.1406C0.894531 16.543 0.894531 15.8398 1.24609 15.2422L8.27734 3.35938C8.62891 2.76172 9.26172 2.375 10 2.375C10.7031 2.41016 11.3359 2.76172 11.6875 3.35938L18.7188 15.2422ZM17.7344 16.5781C17.9102 16.332 17.875 16.0508 17.7344 15.8047L10.7031 3.92188C10.5625 3.67578 10.2812 3.53516 10 3.5C9.96484 3.5 10 3.5 10 3.5C9.68359 3.5 9.40234 3.67578 9.26172 3.92188L2.23047 15.8047C2.08984 16.0508 2.05469 16.332 2.23047 16.5781C2.37109 16.8594 2.65234 17 2.96875 17H16.9961C17.3125 17 17.5938 16.8594 17.7344 16.5781Z' fill='%2303213F'/%3E%3C/mask%3E%3Cg mask='url(%23mask0_5702_80802)'%3E%3Crect width='20' height='20' fill='%231D1D1D'/%3E%3C/g%3E%3C/svg%3E%0A",
82
+ ),
83
+ "danger": (
84
+ color: var(--#{$prefix}danger),
85
+ icon:
86
+ "data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cmask id='mask0_34619_4370' style='mask-type:alpha' maskUnits='userSpaceOnUse' x='4' y='4' width='12' height='12'%3E%3Cpath d='M14.8438 14.875C14.6562 15.0625 14.3125 15.0625 14.125 14.875L10 10.7188L5.84375 14.875C5.65625 15.0625 5.3125 15.0625 5.125 14.875C4.9375 14.6875 4.9375 14.3438 5.125 14.1562L9.28125 10L5.125 5.875C4.9375 5.6875 4.9375 5.34375 5.125 5.15625C5.3125 4.96875 5.65625 4.96875 5.84375 5.15625L10 9.3125L14.125 5.15625C14.3125 4.96875 14.6562 4.96875 14.8438 5.15625C15.0312 5.34375 15.0312 5.6875 14.8438 5.875L10.6875 10L14.8438 14.1562C15.0312 14.3438 15.0312 14.6875 14.8438 14.875Z' fill='%2303213F'/%3E%3C/mask%3E%3Cg mask='url(%23mask0_34619_4370)'%3E%3Crect width='20' height='20' fill='white'/%3E%3C/g%3E%3Ccircle cx='10' cy='10' r='9.5' stroke='white'/%3E%3C/svg%3E%0A",
87
+ ),
88
+ //.alert-error can be a clone of .alert-danger
89
+ "error": (
90
+ color: var(--#{$prefix}danger),
91
+ icon:
92
+ "data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cmask id='mask0_34619_4370' style='mask-type:alpha' maskUnits='userSpaceOnUse' x='4' y='4' width='12' height='12'%3E%3Cpath d='M14.8438 14.875C14.6562 15.0625 14.3125 15.0625 14.125 14.875L10 10.7188L5.84375 14.875C5.65625 15.0625 5.3125 15.0625 5.125 14.875C4.9375 14.6875 4.9375 14.3438 5.125 14.1562L9.28125 10L5.125 5.875C4.9375 5.6875 4.9375 5.34375 5.125 5.15625C5.3125 4.96875 5.65625 4.96875 5.84375 5.15625L10 9.3125L14.125 5.15625C14.3125 4.96875 14.6562 4.96875 14.8438 5.15625C15.0312 5.34375 15.0312 5.6875 14.8438 5.875L10.6875 10L14.8438 14.1562C15.0312 14.3438 15.0312 14.6875 14.8438 14.875Z' fill='%2303213F'/%3E%3C/mask%3E%3Cg mask='url(%23mask0_34619_4370)'%3E%3Crect width='20' height='20' fill='white'/%3E%3C/g%3E%3Ccircle cx='10' cy='10' r='9.5' stroke='white'/%3E%3C/svg%3E%0A",
93
+ ),
94
+ "light": (
95
+ color: var(--#{$prefix}light-grey),
96
+ icon:
97
+ "data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cmask id='mask0_5702_82508' style='mask-type:alpha' maskUnits='userSpaceOnUse' x='1' y='1' width='18' height='18'%3E%3Cpath d='M10 7.20312C9.48047 7.20312 9.10938 6.83203 9.10938 6.3125C9.10938 5.83008 9.48047 5.42188 10 5.42188C10.4824 5.42188 10.8906 5.83008 10.8906 6.3125C10.8906 6.83203 10.4824 7.20312 10 7.20312ZM15.9375 1.5625C17.2363 1.5625 18.3125 2.63867 18.3125 3.9375V15.8125C18.3125 17.1484 17.2363 18.1875 15.9375 18.1875H4.0625C2.72656 18.1875 1.6875 17.1484 1.6875 15.8125V3.9375C1.6875 2.63867 2.72656 1.5625 4.0625 1.5625H15.9375ZM17.125 15.8125V3.9375C17.125 3.30664 16.5684 2.75 15.9375 2.75H4.0625C3.39453 2.75 2.875 3.30664 2.875 3.9375V15.8125C2.875 16.4805 3.39453 17 4.0625 17H15.9375C16.5684 17 17.125 16.4805 17.125 15.8125ZM11.7812 13.4375C12.0781 13.4375 12.375 13.7344 12.375 14.0312C12.375 14.3652 12.0781 14.625 11.7812 14.625H8.21875C7.88477 14.625 7.625 14.3652 7.625 14.0312C7.625 13.7344 7.88477 13.4375 8.21875 13.4375H9.40625V9.875H8.8125C8.47852 9.875 8.21875 9.61523 8.21875 9.28125C8.21875 8.98438 8.47852 8.6875 8.8125 8.6875H10C10.2969 8.6875 10.5938 8.98438 10.5938 9.28125V13.4375H11.7812Z' fill='%2303213F'/%3E%3C/mask%3E%3Cg mask='url(%23mask0_5702_82508)'%3E%3Crect width='20' height='20' fill='%23595959'/%3E%3C/g%3E%3C/svg%3E%0A",
98
+ ),
99
+ "dark": (
100
+ color: var(--#{$prefix}dark-grey),
101
+ icon:
102
+ "data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cmask id='mask0_5702_82508' style='mask-type:alpha' maskUnits='userSpaceOnUse' x='1' y='1' width='18' height='18'%3E%3Cpath d='M10 7.20312C9.48047 7.20312 9.10938 6.83203 9.10938 6.3125C9.10938 5.83008 9.48047 5.42188 10 5.42188C10.4824 5.42188 10.8906 5.83008 10.8906 6.3125C10.8906 6.83203 10.4824 7.20312 10 7.20312ZM15.9375 1.5625C17.2363 1.5625 18.3125 2.63867 18.3125 3.9375V15.8125C18.3125 17.1484 17.2363 18.1875 15.9375 18.1875H4.0625C2.72656 18.1875 1.6875 17.1484 1.6875 15.8125V3.9375C1.6875 2.63867 2.72656 1.5625 4.0625 1.5625H15.9375ZM17.125 15.8125V3.9375C17.125 3.30664 16.5684 2.75 15.9375 2.75H4.0625C3.39453 2.75 2.875 3.30664 2.875 3.9375V15.8125C2.875 16.4805 3.39453 17 4.0625 17H15.9375C16.5684 17 17.125 16.4805 17.125 15.8125ZM11.7812 13.4375C12.0781 13.4375 12.375 13.7344 12.375 14.0312C12.375 14.3652 12.0781 14.625 11.7812 14.625H8.21875C7.88477 14.625 7.625 14.3652 7.625 14.0312C7.625 13.7344 7.88477 13.4375 8.21875 13.4375H9.40625V9.875H8.8125C8.47852 9.875 8.21875 9.61523 8.21875 9.28125C8.21875 8.98438 8.47852 8.6875 8.8125 8.6875H10C10.2969 8.6875 10.5938 8.98438 10.5938 9.28125V13.4375H11.7812Z' fill='%2303213F'/%3E%3C/mask%3E%3Cg mask='url(%23mask0_5702_82508)'%3E%3Crect width='20' height='20' fill='%23FFFFFF'/%3E%3C/g%3E%3C/svg%3E%0A",
103
+ ),
104
+ );
105
+
106
+ //Sets colors (border and icon-background) and icons for each alert type
107
+ @each $key, $properties in $alert-colors-map {
119
108
  $color: map-get($properties, color);
120
109
  $icon: map-get($properties, icon);
121
110
 
122
111
  &-#{$key} {
123
- border-color: $color;
124
- border-width: 2px;
125
-
126
- &:before {
127
- background-color: $color;
128
- }
112
+ border-color: $color;
113
+ border-width: 2px;
129
114
 
130
- &:after {
131
- background-image: url($icon);
132
- }
115
+ &:before {
116
+ background-color: $color;
117
+ }
133
118
 
119
+ &:after {
120
+ background-image: url($icon);
121
+ }
134
122
  }
123
+ }
135
124
  }
136
-
137
- }
@@ -3,7 +3,7 @@ import defaultdata from "./inpageAlert.data.json";
3
3
 
4
4
  /**
5
5
  * The Inpage Alert is also known as Page Alert or Alert
6
- *
6
+ *
7
7
  * Inpage alert accepts the following classes: <code>.alert-success</code>, <code>.alert-info</code>, <code>.alert-warning</code>, and <code>.alert-danger</code>
8
8
  */
9
9
 
@@ -32,7 +32,8 @@ export default {
32
32
  render: (args) => {
33
33
  return new InpageAlert({ ...defaultdata, ...args }).html;
34
34
  },
35
-
35
+ globals: { backgrounds: { value: "default" } },
36
+ parameters: { backgrounds: { disable: false } },
36
37
  argTypes: {
37
38
  variantClass: {
38
39
  name: "Classes",
@@ -46,12 +47,7 @@ export default {
46
47
  "alert-error": "Error",
47
48
  },
48
49
  },
49
- options: [
50
- "alert-success",
51
- "alert-info",
52
- "alert-warning",
53
- "alert-error",
54
- ],
50
+ options: ["alert-success", "alert-info", "alert-warning", "alert-error"],
55
51
  },
56
52
  alertType: {
57
53
  name: "Alert Type",
@@ -59,15 +55,14 @@ export default {
59
55
  },
60
56
  headingTag: {
61
57
  name: "Heading Tag",
62
- description: 'Heading tag for the In-page Alert component. Can be h2, h3, h4, h5 or h6.',
58
+ description:
59
+ "Heading tag for the In-page Alert component. Can be h2, h3, h4, h5 or h6.",
63
60
  control: "select",
64
61
  options: ["h2", "h3", "h4", "h5", "h6"],
65
62
  },
66
63
  },
67
-
68
64
  };
69
65
 
70
-
71
66
  /**
72
67
  * Default In-page Alert component.
73
68
  */
@@ -76,23 +71,12 @@ export const Default = {
76
71
  args: defaultdata,
77
72
  };
78
73
 
79
-
80
-
81
-
82
74
  /**
83
75
  * In-page Alert when presented inside a <code>.dark</code> or <code>.dark-alt</code> container.
84
76
  */
85
77
 
86
-
87
78
  export const Dark = {
88
- parameters: {
89
- backgrounds: {
90
- default: 'Dark',
91
- values: [
92
- { name: 'Dark', value: 'var(--qld-dark-background)' },
93
- ],
94
- },
95
- },
79
+ globals: { backgrounds: { value: "dark" } },
96
80
 
97
81
  decorators: [
98
82
  (Story) => {
@@ -1,4 +1,4 @@
1
- import { Canvas, Meta, Story } from "@storybook/blocks";
1
+ import { Canvas, Meta, Story } from "@storybook/addon-docs/blocks";
2
2
  import * as InpagenavStories from "./inpagenav.stories";
3
3
 
4
4
  <Meta of={InpagenavStories} />
@@ -13,7 +13,9 @@ export default {
13
13
  exclude: ["variantClass", "navitems"],
14
14
  },
15
15
  },
16
+ backgrounds: { disable: false },
16
17
  },
18
+ globals: { backgrounds: { value: "default" } },
17
19
  };
18
20
 
19
21
  /**
@@ -21,6 +23,7 @@ export default {
21
23
  */
22
24
  export const Default = {
23
25
  args: defaultdata,
26
+ globals: { backgrounds: { value: "default" } },
24
27
  decorators: [
25
28
  (Story) => {
26
29
  return `
@@ -43,12 +46,7 @@ export const Default = {
43
46
  */
44
47
  export const Dark = {
45
48
  args: defaultdata,
46
- parameters: {
47
- backgrounds: {
48
- default: "Dark",
49
- values: [{ name: "Dark", value: "var(--qld-dark-background)" }],
50
- },
51
- },
49
+ globals: { backgrounds: { value: "dark" } },
52
50
  decorators: [
53
51
  (Story) => {
54
52
  return `
@@ -1,4 +1,4 @@
1
- import { Canvas, Meta, Story } from "@storybook/blocks";
1
+ import { Canvas, Meta, Story } from "@storybook/addon-docs/blocks";
2
2
  import * as linkStories from "./link.stories";
3
3
 
4
4
  <Meta of={linkStories} />
@@ -13,6 +13,7 @@ export default {
13
13
 
14
14
  render: (args) => new Link(args).html,
15
15
  // args: defaultdata,
16
+ globals: { backgrounds: { value: "default" } },
16
17
  argTypes: {
17
18
  url: {
18
19
  description: "The URL that the link points to",
@@ -61,6 +62,7 @@ export default {
61
62
  * @property {string} design.url - URL of the design parameter.
62
63
  */
63
64
  parameters: {
65
+ backgrounds: { disable: false },
64
66
  design: {
65
67
  name: "QGDS Figma Reference",
66
68
  type: "figma",
@@ -78,18 +80,14 @@ export const Default = {
78
80
  args: {
79
81
  ...defaultdata.default,
80
82
  },
83
+ globals: { backgrounds: { value: "default" } },
81
84
  };
82
85
 
83
86
  /**
84
87
  * Link in 'Dark' colour theme.
85
88
  */
86
89
  export const Dark = {
87
- parameters: {
88
- backgrounds: {
89
- default: "Dark",
90
- values: [{ name: "Dark", value: "var(--qld-dark-background)" }],
91
- },
92
- },
90
+ globals: { backgrounds: { value: "dark" } },
93
91
  args: {
94
92
  ...defaultdata.default,
95
93
  class: "dark",
@@ -1,4 +1,4 @@
1
- import { Canvas, Meta, Story, Source } from "@storybook/blocks";
1
+ import { Canvas, Meta, Story, Source } from "@storybook/addon-docs/blocks";
2
2
  import * as linkColumnsStories from "./linkColumns.stories";
3
3
  import defaultdata from "./linkColumns.data.json";
4
4
 
@@ -1,7 +1,9 @@
1
1
  .link-column {
2
- background-color: var(--qld-body-bg);
2
+ --max-column-width: 46rem;
3
+ background-color: var(--#{$prefix}body-bg);
4
+
3
5
  &:has(.col-1) {
4
- max-width: 46rem;
6
+ max-width: var(--max-column-width);
5
7
  }
6
8
  ul {
7
9
  width: 100%;
@@ -13,18 +15,12 @@
13
15
  }
14
16
  .col-2 {
15
17
  grid-template-columns: repeat(2, 1fr);
16
- .all-link {
17
- grid-column: 1/-1;
18
- }
19
18
  @include media-breakpoint-down(md) {
20
19
  grid-template-columns: repeat(1, 1fr);
21
20
  }
22
21
  }
23
22
  .col-3 {
24
23
  grid-template-columns: repeat(3, 1fr);
25
- .all-link {
26
- grid-column: 1/-1;
27
- }
28
24
  @include media-breakpoint-down(lg) {
29
25
  grid-template-columns: repeat(2, 1fr);
30
26
  }
@@ -57,25 +53,27 @@
57
53
  }
58
54
  }
59
55
  .nav-item {
60
- box-shadow: 0 1px 0 var(--qld-border-color);
61
- max-width: 46rem;
56
+ max-width: var(--max-column-width);
62
57
  display: flex;
63
58
  gap: 1rem;
64
59
  align-items: center;
65
60
  align-content: center;
61
+ border-block-end: 1px solid var(--#{$prefix}light-grey);
66
62
  // Required to reset styles from .qld-content-body li
67
63
  margin-block: 0;
68
64
  //Reset the line height too to override styles from .qld-content-body li
69
65
  line-height: 1.5rem;
70
66
  .nav-link {
71
- text-decoration: none;
72
- text-decoration-thickness: 0.5px;
73
- transition: text-decoration-thickness 0.2s ease;
67
+ text-decoration: underline;
68
+ text-decoration-color: transparent;
69
+ text-decoration-thickness: 0;
70
+ transition: text-decoration-thickness 0.2s ease, text-decoration-color 0.2s ease;
74
71
  display: flex;
72
+ align-items: center;
75
73
  flex: 1;
76
74
  padding-block: 1rem;
77
75
  padding-inline: 0;
78
- color: var(--qld-link-color);
76
+ color: var(--#{$prefix}link-color);
79
77
  font-weight: 600;
80
78
  &::after {
81
79
  height: 1.25rem;
@@ -87,21 +85,15 @@
87
85
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='currentColor' d='M443.7 266.8l-165.9 176C274.5 446.3 269.1 448 265.5 448c-3.986 0-7.988-1.375-11.16-4.156c-6.773-5.938-7.275-16.06-1.118-22.59L393.9 272H16.59c-9.171 0-16.59-7.155-16.59-15.1S7.421 240 16.59 240h377.3l-140.7-149.3c-6.157-6.531-5.655-16.66 1.118-22.59c6.789-5.906 17.27-5.469 23.45 1.094l165.9 176C449.4 251.3 449.4 260.7 443.7 266.8z'/%3E%3C/svg%3E");
88
86
  mask-repeat: no-repeat;
89
87
  mask-position: right center;
90
- background-color: var(--qld-action-icon-color);
88
+ background-color: var(--#{$prefix}action-icon-color);
91
89
  transition: margin-inline-end 0.2s ease, width 0.2s ease;
92
-
93
- .ie8 &,
94
- .lt-ie8 & {
95
- content: " → ";
96
- }
97
90
  }
98
91
  &:hover {
99
- text-decoration: underline;
100
- text-decoration-color: var(--qld-link-color);
92
+ text-decoration-color: var(--#{$prefix}link-color);
101
93
  text-decoration-thickness: 2px;
102
- transition: text-decoration-thickness 0.2s ease;
94
+ transition: text-decoration-thickness 0.2s ease, text-decoration-color 0.2s ease;
103
95
  &::after {
104
- background-color: var(--qld-action-icon-hover-color);
96
+ background-color: var(--#{$prefix}action-icon-hover-color);
105
97
  margin-inline-end: 0rem;
106
98
  width: 2.5rem;
107
99
  transition: margin-inline-end 0.2s ease, width 0.2s ease;
@@ -110,8 +102,9 @@
110
102
  }
111
103
  }
112
104
  .all-link{
105
+ grid-column: 1/-1;
113
106
  max-width: 100%;
114
- box-shadow: none;
107
+ border-block-end: none;
115
108
  column-span: all;
116
109
  .qld-cta-link {
117
110
  margin-block-start: 2rem;
@@ -1,4 +1,4 @@
1
- import { Canvas, Meta, Story } from "@storybook/blocks";
1
+ import { Canvas, Meta, Story } from "@storybook/addon-docs/blocks";
2
2
  import * as stories from "./logo.stories";
3
3
 
4
4
  <Meta of={stories} />
@@ -2,6 +2,8 @@
2
2
  {{>logoCOALandscape}}
3
3
  {{else ifCond logo "===" "coa-landscape-2lines"}}
4
4
  {{>logoCOALandscape2Lines}}
5
+ {{else ifCond logo "===" "coa-delivering-for-qld"}}
6
+ {{>logoCOADeliveringForQLD}}
5
7
  {{else}}
6
8
  {{>logoCOALandscape}}
7
9
  {{/ifCond}}