@qld-gov-au/qgds-bootstrap5 2.0.1 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/dist/assets/components/bs5/accordion/accordion.hbs +3 -3
  2. package/dist/assets/components/bs5/head/head.hbs +1 -1
  3. package/dist/assets/components/bs5/quickexit/quickexit.hbs +1 -1
  4. package/dist/assets/css/qld.bootstrap.css +1 -1
  5. package/dist/assets/css/qld.bootstrap.css.map +3 -3
  6. package/dist/assets/js/handlebars.init.min.js +5 -5
  7. package/dist/assets/js/handlebars.init.min.js.map +1 -1
  8. package/dist/assets/node/handlebars.init.min.js +31 -3
  9. package/dist/assets/node/handlebars.init.min.js.map +2 -2
  10. package/dist/components/bs5/accordion/accordion.hbs +3 -3
  11. package/dist/components/bs5/head/head.hbs +1 -1
  12. package/dist/components/bs5/quickexit/quickexit.hbs +1 -1
  13. package/dist/package.json +1 -1
  14. package/dist/sample-data/accordion/accordion.data.json +24 -23
  15. package/package.json +1 -1
  16. package/src/components/bs5/accordion/Accordion.mdx +1 -3
  17. package/src/components/bs5/accordion/__snapshots__/accordion.test.js.snap +3 -3
  18. package/src/components/bs5/accordion/accordion.data.json +24 -23
  19. package/src/components/bs5/accordion/accordion.hbs +3 -3
  20. package/src/components/bs5/accordion/accordion.scss +19 -9
  21. package/src/components/bs5/accordion/accordion.stories.js +8 -0
  22. package/src/components/bs5/accordion/accordion.test.js +5 -0
  23. package/src/components/bs5/backToTop/backToTop.mdx +4 -5
  24. package/src/components/bs5/banner/Banner.mdx +1 -3
  25. package/src/components/bs5/blockquote/Blockquote.mdx +4 -5
  26. package/src/components/bs5/breadcrumbs/Breadcrumbs.mdx +1 -3
  27. package/src/components/bs5/button/Button.mdx +4 -5
  28. package/src/components/bs5/button/button.scss +9 -1
  29. package/src/components/bs5/callToAction/callToAction.mdx +1 -3
  30. package/src/components/bs5/callout/Callout.mdx +4 -5
  31. package/src/components/bs5/card/Card.mdx +1 -3
  32. package/src/components/bs5/card/card.scss +1 -25
  33. package/src/components/bs5/directionLinks/DirectionLinks.mdx +4 -5
  34. package/src/components/bs5/footer/Footer.mdx +1 -3
  35. package/src/components/bs5/footer/footer.scss +4 -11
  36. package/src/components/bs5/formcheck/stories/checkbox/Checkbox.mdx +7 -6
  37. package/src/components/bs5/formcheck/stories/radio/Radio.mdx +7 -6
  38. package/src/components/bs5/globalAlert/GlobalAlert.mdx +1 -3
  39. package/src/components/bs5/globalAlert/globalAlert.scss +6 -0
  40. package/src/components/bs5/header/Header.mdx +1 -3
  41. package/src/components/bs5/header/header.scss +6 -2
  42. package/src/components/bs5/icons/Icons.mdx +167 -7
  43. package/src/components/bs5/icons/_icons.sizes.scss +9 -0
  44. package/src/components/bs5/icons/icons.scss +23 -71
  45. package/src/components/bs5/icons/icons.stories.js +34 -57
  46. package/src/components/bs5/icons/mdx/_IconsSizes.mdx +112 -0
  47. package/src/components/bs5/icons/stories/storyFlexContainer.html +18 -0
  48. package/src/components/bs5/icons/stories/storyInlineWithText.html +18 -0
  49. package/src/components/bs5/icons/stories/storySizes.html +89 -0
  50. package/src/components/bs5/image/Image.mdx +1 -4
  51. package/src/components/bs5/inpageAlert/InpageAlert.mdx +1 -3
  52. package/src/components/bs5/inpagenav/Inpagenav.mdx +4 -5
  53. package/src/components/bs5/link/link.mdx +1 -3
  54. package/src/components/bs5/link/link.scss +2 -15
  55. package/src/components/bs5/linkColumns/linkColumns.mdx +1 -3
  56. package/src/components/bs5/logo/Logo.mdx +1 -3
  57. package/src/components/bs5/pageLayout/ThemeShowcase.stories.js +249 -0
  58. package/src/components/bs5/pagination/Pagination.mdx +4 -5
  59. package/src/components/bs5/promotionalPanel/PromotionalPanel.mdx +1 -3
  60. package/src/components/bs5/quickexit/quickexit.hbs +1 -1
  61. package/src/components/bs5/quickexit/quickexit.scss +23 -10
  62. package/src/components/bs5/searchInput/SearchInput.mdx +5 -5
  63. package/src/components/bs5/sidenav/Sidenav.mdx +4 -5
  64. package/src/components/bs5/skiplinks/SkipLinks.mdx +1 -3
  65. package/src/components/bs5/table/Table.mdx +4 -5
  66. package/src/components/bs5/tabs/Tabs.mdx +4 -5
  67. package/src/components/bs5/tabs/tabs.scss +22 -1
  68. package/src/components/bs5/tag/Tag.mdx +4 -5
  69. package/src/components/bs5/typography/Typography.mdx +4 -5
  70. package/src/components/bs5/video/Video.mdx +4 -5
  71. package/src/css/functions/_index.scss +1 -0
  72. package/src/css/functions/in-list.scss +5 -0
  73. package/src/css/main.scss +4 -3
  74. package/src/css/mixins/_index.scss +3 -0
  75. package/src/css/mixins/make-icon.scss +87 -0
  76. package/src/css/qld-theme.scss +73 -31
  77. package/src/css/qld-type.scss +26 -140
  78. package/src/css/qld-utilities.scss +29 -14
  79. package/src/css/qld-variables.scss +4 -4
  80. package/src/css/variables/_index.scss +1 -0
  81. package/src/css/variables/type.scss +58 -0
  82. package/src/components/bs5/icons/story-icon-sizing.html +0 -131
  83. package/src/components/bs5/icons/story-icon-usage.html +0 -89
@@ -0,0 +1,18 @@
1
+ <div class="d-flex align-items-center">
2
+ <span class="qld-icon qld-icon-xxl qld-icon-alert-information"></span>Icon XXL
3
+ </div>
4
+ <div class="d-flex align-items-center">
5
+ <span class="qld-icon qld-icon-xl qld-icon-alert-information"></span>Icon XL
6
+ </div>
7
+ <div class="d-flex align-items-center">
8
+ <span class="qld-icon qld-icon-lg qld-icon-alert-information"></span>Icon LG
9
+ </div>
10
+ <div class="d-flex align-items-center">
11
+ <span class="qld-icon qld-icon-md qld-icon-alert-information"></span>Icon XXL
12
+ </div>
13
+ <div class="d-flex align-items-center">
14
+ <span class="qld-icon qld-icon-sm qld-icon-alert-information"></span>Icon XXL
15
+ </div>
16
+ <div class="d-flex align-items-center">
17
+ <span class="qld-icon qld-icon-xs qld-icon-alert-information"></span>Icon XXL
18
+ </div>
@@ -0,0 +1,18 @@
1
+ <p>
2
+ <span
3
+ class="qld-icon is-inline qld-icon-xxl qld-icon-alert-information"
4
+ ></span
5
+ >Lorem ipsum dolor sit amet,
6
+ <span class="qld-icon is-inline qld-icon-xl qld-icon-alert-information"></span
7
+ >consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et
8
+ dolore magna aliqua.
9
+ <span class="qld-icon is-inline qld-icon-lg qld-icon-alert-information"></span
10
+ >Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut
11
+ aliquip ex ea commodo consequat.
12
+ <span class="qld-icon is-inline qld-icon-md qld-icon-alert-information"></span
13
+ >Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore
14
+ eu fugiat nulla pariatur.
15
+ <span class="qld-icon is-inline qld-icon-xs qld-icon-alert-information"></span
16
+ >Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia
17
+ deserunt mollit anim id est laborum.
18
+ </p>
@@ -0,0 +1,89 @@
1
+ <div class="row align-items-end text-start">
2
+ <div class="col d-flex flex-column flex-grow-0 align-items-start">
3
+ <span
4
+ class="qld-icon qld-icon-xxl qld-icon-design"
5
+ aria-hidden="true"
6
+ ></span>
7
+ <pre><strong class="mt-2">XXL:</strong> 64x64</pre>
8
+ </div>
9
+ <div class="col d-flex flex-column flex-grow-0 align-items-start">
10
+ <span
11
+ class="qld-icon qld-icon-xl qld-icon-design"
12
+ aria-hidden="true"
13
+ ></span>
14
+ <pre class="mt-2"><strong>XL:</strong> 48x48</pre>
15
+ </div>
16
+ <div class="col d-flex flex-column flex-grow-0 align-items-start">
17
+ <span
18
+ class="qld-icon qld-icon-lg qld-icon-design"
19
+ aria-hidden="true"
20
+ ></span>
21
+ <pre class="mt-2"><strong>LG:</strong> 32x32</pre>
22
+ </div>
23
+ <div class="col d-flex flex-column flex-grow-0 align-items-start">
24
+ <span
25
+ class="qld-icon qld-icon-md qld-icon-design"
26
+ aria-hidden="true"
27
+ ></span>
28
+ <pre class="mt-2"><strong>MD:</strong> 24x24</pre>
29
+ </div>
30
+ <div class="col d-flex flex-column flex-grow-0 align-items-start">
31
+ <span
32
+ class="qld-icon qld-icon-sm qld-icon-design"
33
+ aria-hidden="true"
34
+ ></span>
35
+ <pre class="mt-2"><strong>SM:</strong> 20x20</pre>
36
+ </div>
37
+ <div class="col d-flex flex-column flex-grow-0 align-items-start">
38
+ <span
39
+ class="qld-icon qld-icon-xs qld-icon-design"
40
+ aria-hidden="true"
41
+ ></span>
42
+ <pre class="mt-2"><strong>XS:</strong> 16x16</pre>
43
+ </div>
44
+ </div>
45
+
46
+ <div class="row align-items-end text-start">
47
+ <div class="col d-flex flex-column flex-grow-0 align-items-start">
48
+ <span
49
+ class="qld-icon qld-icon-xxl qld-icon-alert-cancel"
50
+ aria-hidden="true"
51
+ ></span>
52
+ <pre class="mt-2"><strong>XXL:</strong> 64x64</pre>
53
+ </div>
54
+ <div class="col d-flex flex-column flex-grow-0 align-items-start">
55
+ <span
56
+ class="qld-icon qld-icon-xl qld-icon-alert-cancel"
57
+ aria-hidden="true"
58
+ ></span>
59
+ <pre class="mt-2"><strong>XL:</strong> 48x48</pre>
60
+ </div>
61
+ <div class="col d-flex flex-column flex-grow-0 align-items-start">
62
+ <span
63
+ class="qld-icon qld-icon-lg qld-icon-alert-cancel"
64
+ aria-hidden="true"
65
+ ></span>
66
+ <pre class="mt-2"><strong>LG:</strong> 32x32</pre>
67
+ </div>
68
+ <div class="col d-flex flex-column flex-grow-0 align-items-start">
69
+ <span
70
+ class="qld-icon qld-icon-md qld-icon-alert-cancel"
71
+ aria-hidden="true"
72
+ ></span>
73
+ <pre class="mt-2"><strong>MD:</strong> 24x24</pre>
74
+ </div>
75
+ <div class="col d-flex flex-column flex-grow-0 align-items-start">
76
+ <span
77
+ class="qld-icon qld-icon-sm qld-icon-alert-cancel"
78
+ aria-hidden="true"
79
+ ></span>
80
+ <pre class="mt-2"><strong>SM:</strong> 20x20</pre>
81
+ </div>
82
+ <div class="col d-flex flex-column flex-grow-0 align-items-start">
83
+ <span
84
+ class="qld-icon qld-icon-xs qld-icon-alert-cancel"
85
+ aria-hidden="true"
86
+ ></span>
87
+ <pre class="mt-2"><strong>XS:</strong> 16x16</pre>
88
+ </div>
89
+ </div>
@@ -5,10 +5,7 @@ import * as ImageStories from "./image.stories";
5
5
 
6
6
  # Image
7
7
 
8
- <Canvas>
9
- {/* Explicitly reference a specific story to avoid ambiguity */}
10
- <Story of={ImageStories.FixedRatio} />
11
- </Canvas>
8
+ <Canvas of={ImageStories.DefaultImage} />
12
9
 
13
10
  ## Design resources
14
11
 
@@ -6,9 +6,7 @@ import defaultdata from "./inpageAlert.data.json";
6
6
 
7
7
  # In-page alert
8
8
 
9
- <Canvas>
10
- <Story of={AlertStories.Success} />
11
- </Canvas>
9
+ <Canvas of={AlertStories.Default} />
12
10
 
13
11
  ## Design resources
14
12
 
@@ -1,12 +1,11 @@
1
- import { Canvas, Meta, Story } from "@storybook/blocks"
2
- import * as InpagenavStories from "./inpagenav.stories"
1
+ import { Canvas, Meta, Story } from "@storybook/blocks";
2
+ import * as InpagenavStories from "./inpagenav.stories";
3
3
 
4
4
  <Meta of={InpagenavStories} />
5
5
 
6
6
  # Pagination
7
- <Canvas>
8
- <Story of={InpagenavStories.Default} />
9
- </Canvas>
7
+
8
+ <Canvas of={InpagenavStories.Default} />
10
9
 
11
10
  ## Design resources
12
11
 
@@ -5,9 +5,7 @@ import * as linkStories from "./link.stories";
5
5
 
6
6
  # Icon Link
7
7
 
8
- <Canvas>
9
- <Story of={linkStories.Default} />
10
- </Canvas>
8
+ <Canvas of={linkStories.Default} />
11
9
 
12
10
  ## Design resources
13
11
 
@@ -2,20 +2,12 @@
2
2
  text-underline-offset: var(--qld-link-underline-offset);
3
3
  text-decoration-thickness: var(--qld-link-underline-thickness);
4
4
 
5
- --#{$prefix}icon-background-color: var(--#{$prefix}light-action-secondary);
6
- --#{$prefix}icon-background-color-hover: var(
7
- --#{$prefix}light-action-secondary-hover
8
- );
9
5
  --#{$prefix}link-color: var(--#{$prefix}light-link);
10
6
  --#{$prefix}link-text-decoration-color: var(--#{$prefix}light-link);
11
7
  --#{$prefix}link-gap: 0.5rem;
12
8
 
13
9
  .dark &,
14
10
  .dark-alt & {
15
- --#{$prefix}icon-background-color: var(--#{$prefix}dark-action-secondary);
16
- --#{$prefix}icon-background-color-hover: var(
17
- --#{$prefix}dark-action-secondary-hover
18
- );
19
11
  --#{$prefix}link-color: var(--#{$prefix}dark-link);
20
12
  --#{$prefix}link-text-decoration-color: var(--#{$prefix}dark-link);
21
13
  &:visited {
@@ -38,13 +30,12 @@
38
30
  width: fit-content;
39
31
 
40
32
  &:hover {
33
+ --#{$prefix}icon-color: var(--#{$prefix}action-icon-hover-color);
34
+
41
35
  text-decoration-thickness: var(--qld-link-underline-thickness-hover);
42
36
  text-decoration-color: var(
43
37
  --#{$prefix}color-default-color-light-underline-default
44
38
  );
45
- .qld-icon {
46
- background-color: var(--#{$prefix}icon-background-color-hover);
47
- }
48
39
  }
49
40
 
50
41
  &:visited {
@@ -61,10 +52,6 @@
61
52
  outline-offset: 2px;
62
53
  border-radius: 4px;
63
54
  }
64
-
65
- .qld-icon {
66
- background-color: var(--#{$prefix}icon-background-color);
67
- }
68
55
  }
69
56
 
70
57
  .link-list {
@@ -6,9 +6,7 @@ import defaultdata from "./linkColumns.data.json";
6
6
 
7
7
  # LinkColumns
8
8
 
9
- <Canvas>
10
- <Story of={linkColumnsStories.Default} />
11
- </Canvas>
9
+ <Canvas of={linkColumnsStories.Default} />
12
10
 
13
11
  ## Design resources
14
12
 
@@ -5,6 +5,4 @@ import stories from "./logo.stories";
5
5
 
6
6
  # Logo
7
7
 
8
- <Canvas>
9
- <Story of={stories.Default} />
10
- </Canvas>
8
+ <Canvas of={stories.Default} />
@@ -0,0 +1,249 @@
1
+ export default {
2
+ title: "5. Templates/Theme Showcase",
3
+ render: (args) => {
4
+ return args.content;
5
+ },
6
+ argTypes: {
7
+ themeClass: {
8
+ control: { type: 'select' },
9
+ options: ['', 'default', 'light', 'alt', 'dark', 'dark-alt'],
10
+ description: 'Theme class to apply to the content area',
11
+ },
12
+ },
13
+ parameters: {
14
+ layout: "padded",
15
+ docs: {
16
+ description: {
17
+ story: 'This showcase demonstrates the theme palette classes (.default, .light, .alt, .dark, .dark-alt) that automatically apply color and background-color styling.',
18
+ },
19
+ },
20
+ },
21
+ };
22
+
23
+ /**
24
+ * Default Theme
25
+ * The default theme uses the base color scheme without additional background styling
26
+ */
27
+ export const DefaultTheme = {
28
+ args: {
29
+ content: `
30
+ <div class="default p-4 mb-4 border">
31
+ <h2>Default Theme</h2>
32
+ <p>This demonstrates the default theme palette. It provides a clean, neutral appearance suitable for most content.</p>
33
+ <a href="#" class="btn btn-primary me-2">Primary Button</a>
34
+ <a href="#" class="btn btn-secondary">Secondary Button</a>
35
+
36
+ <h3 class="mt-4">Background Utilities</h3>
37
+ <div class="row g-3">
38
+ <div class="col-md-4">
39
+ <div class="bg-default p-3 rounded">
40
+ <strong>.bg-default</strong><br>
41
+ Background using default theme color
42
+ </div>
43
+ </div>
44
+ <div class="col-md-4">
45
+ <div class="bg-light p-3 rounded">
46
+ <strong>.bg-light</strong><br>
47
+ Background using light theme color
48
+ </div>
49
+ </div>
50
+ <div class="col-md-4">
51
+ <div class="bg-light-alt p-3 rounded">
52
+ <strong>.bg-light-alt</strong><br>
53
+ Background using light alt color
54
+ </div>
55
+ </div>
56
+ </div>
57
+ </div>
58
+ `,
59
+ },
60
+ };
61
+
62
+ /**
63
+ * Light Theme
64
+ * The light theme provides a bright, clean appearance
65
+ */
66
+ export const LightTheme = {
67
+ args: {
68
+ content: `
69
+ <div class="light p-4 mb-4 border">
70
+ <h2>Light Theme</h2>
71
+ <p>This demonstrates the light theme palette. It provides enhanced readability with a light background.</p>
72
+ <a href="#" class="btn btn-primary me-2">Primary Button</a>
73
+ <a href="#" class="btn btn-secondary">Secondary Button</a>
74
+
75
+ <h3 class="mt-4">Theme Features</h3>
76
+ <ul>
77
+ <li>Automatic color and background-color application</li>
78
+ <li>Optimized contrast ratios</li>
79
+ <li>Consistent styling across components</li>
80
+ </ul>
81
+ </div>
82
+ `,
83
+ },
84
+ };
85
+
86
+ /**
87
+ * Alt Theme
88
+ * The alt theme provides an alternative light styling
89
+ */
90
+ export const AltTheme = {
91
+ args: {
92
+ content: `
93
+ <div class="alt p-4 mb-4 border">
94
+ <h2>Alt Theme</h2>
95
+ <p>This demonstrates the alt theme palette. It provides a subtle alternative to the standard light theme.</p>
96
+ <a href="#" class="btn btn-primary me-2">Primary Button</a>
97
+ <a href="#" class="btn btn-secondary">Secondary Button</a>
98
+
99
+ <blockquote class="blockquote mt-4">
100
+ <p>"The alt theme provides visual variety while maintaining accessibility standards."</p>
101
+ <footer class="blockquote-footer">QLD Design System</footer>
102
+ </blockquote>
103
+ </div>
104
+ `,
105
+ },
106
+ };
107
+
108
+ /**
109
+ * Dark Theme
110
+ * The dark theme provides a bold, high-contrast appearance
111
+ */
112
+ export const DarkTheme = {
113
+ args: {
114
+ content: `
115
+ <div class="dark p-4 mb-4 border">
116
+ <h2>Dark Theme</h2>
117
+ <p>This demonstrates the dark theme palette. It provides excellent contrast and a modern appearance.</p>
118
+ <a href="#" class="btn btn-primary me-2">Primary Button</a>
119
+ <a href="#" class="btn btn-secondary">Secondary Button</a>
120
+
121
+ <div class="alert alert-info mt-4">
122
+ <h4 class="alert-heading">Dark Theme Benefits</h4>
123
+ <p class="mb-0">Reduces eye strain in low-light conditions and provides a sophisticated appearance.</p>
124
+ </div>
125
+ </div>
126
+ `,
127
+ },
128
+ };
129
+
130
+ /**
131
+ * Dark Alt Theme
132
+ * The dark alt theme provides an alternative dark styling
133
+ */
134
+ export const DarkAltTheme = {
135
+ args: {
136
+ content: `
137
+ <div class="dark-alt p-4 mb-4 border">
138
+ <h2>Dark Alt Theme</h2>
139
+ <p>This demonstrates the dark alt theme palette. It provides a variation of the dark theme with different background styling.</p>
140
+ <a href="#" class="btn btn-primary me-2">Primary Button</a>
141
+ <a href="#" class="btn btn-secondary">Secondary Button</a>
142
+
143
+ <h3 class="mt-4">Dark Utility Examples</h3>
144
+ <div class="row g-3">
145
+ <div class="col-md-6">
146
+ <div class="bg-dark p-3 rounded text-white">
147
+ <strong>.bg-dark</strong><br>
148
+ Dark background utility
149
+ </div>
150
+ </div>
151
+ <div class="col-md-6">
152
+ <div class="bg-dark-alt p-3 rounded text-white">
153
+ <strong>.bg-dark-alt</strong><br>
154
+ Dark alt background utility
155
+ </div>
156
+ </div>
157
+ </div>
158
+ </div>
159
+ `,
160
+ },
161
+ };
162
+
163
+ /**
164
+ * Theme Comparison
165
+ * Shows all themes in a single view for comparison
166
+ */
167
+ export const ThemeComparison = {
168
+ args: {
169
+ content: `
170
+ <div class="mb-4">
171
+ <h2>Theme Palette Comparison</h2>
172
+ <p>Compare all available theme classes side by side. Each theme automatically applies appropriate color and background-color styling.</p>
173
+ </div>
174
+
175
+ <div class="row g-4">
176
+ <div class="col-lg-6">
177
+ <div class="default p-3 border">
178
+ <h3>Default Theme</h3>
179
+ <p>Base theme with neutral styling.</p>
180
+ <a href="#" class="btn btn-sm btn-primary">Button</a>
181
+ </div>
182
+ </div>
183
+
184
+ <div class="col-lg-6">
185
+ <div class="light p-3 border">
186
+ <h3>Light Theme</h3>
187
+ <p>Clean, bright appearance.</p>
188
+ <a href="#" class="btn btn-sm btn-primary">Button</a>
189
+ </div>
190
+ </div>
191
+
192
+ <div class="col-lg-6">
193
+ <div class="alt p-3 border">
194
+ <h3>Alt Theme</h3>
195
+ <p>Alternative light styling.</p>
196
+ <a href="#" class="btn btn-sm btn-primary">Button</a>
197
+ </div>
198
+ </div>
199
+
200
+ <div class="col-lg-6">
201
+ <div class="dark p-3 border">
202
+ <h3>Dark Theme</h3>
203
+ <p>High contrast, modern look.</p>
204
+ <a href="#" class="btn btn-sm btn-primary">Button</a>
205
+ </div>
206
+ </div>
207
+
208
+ <div class="col-12">
209
+ <div class="dark-alt p-3 border">
210
+ <h3>Dark Alt Theme</h3>
211
+ <p>Alternative dark styling with different background treatment.</p>
212
+ <a href="#" class="btn btn-sm btn-primary">Button</a>
213
+ </div>
214
+ </div>
215
+ </div>
216
+
217
+ <div class="mt-5">
218
+ <h3>Background Utility Classes</h3>
219
+ <p>These utilities can be used independently of theme classes for specific background styling:</p>
220
+ <div class="row g-3">
221
+ <div class="col-md-3">
222
+ <div class="bg-default p-2 text-center rounded">.bg-default</div>
223
+ </div>
224
+ <div class="col-md-3">
225
+ <div class="bg-light p-2 text-center rounded">.bg-light</div>
226
+ </div>
227
+ <div class="col-md-3">
228
+ <div class="bg-light-alt p-2 text-center rounded">.bg-light-alt</div>
229
+ </div>
230
+ <div class="col-md-3">
231
+ <div class="bg-dark p-2 text-center rounded text-white">.bg-dark</div>
232
+ </div>
233
+ <div class="col-md-3">
234
+ <div class="bg-dark-alt p-2 text-center rounded text-white">.bg-dark-alt</div>
235
+ </div>
236
+ <div class="col-md-3">
237
+ <div class="bg-default-shade p-2 text-center rounded">.bg-default-shade</div>
238
+ </div>
239
+ <div class="col-md-3">
240
+ <div class="bg-light-shade p-2 text-center rounded">.bg-light-shade</div>
241
+ </div>
242
+ <div class="col-md-3">
243
+ <div class="bg-light-alt-shade p-2 text-center rounded">.bg-light-alt-shade</div>
244
+ </div>
245
+ </div>
246
+ </div>
247
+ `,
248
+ },
249
+ };
@@ -1,12 +1,11 @@
1
- import { Canvas, Meta, Story } from "@storybook/blocks"
2
- import * as PaginationStories from "./pagination.stories"
1
+ import { Canvas, Meta, Story } from "@storybook/blocks";
2
+ import * as PaginationStories from "./pagination.stories";
3
3
 
4
4
  <Meta of={PaginationStories} />
5
5
 
6
6
  # Pagination
7
- <Canvas>
8
- <Story of={PaginationStories.Default} />
9
- </Canvas>
7
+
8
+ <Canvas of={PaginationStories.Default} />
10
9
 
11
10
  ## Design resources
12
11
 
@@ -6,9 +6,7 @@ import defaultdata from "./promotionalPanel.data.json";
6
6
 
7
7
  # Promotional Panel
8
8
 
9
- <Canvas>
10
- <Story of={promotionalPanelStories.Default} />
11
- </Canvas>
9
+ <Canvas of={promotionalPanelStories.Default} />
12
10
 
13
11
  ## Design resources
14
12
 
@@ -5,7 +5,7 @@
5
5
  <div class="qld-quick-exit-inner container-fluid {{#if hasIconInfo}} has-icon-info{{/if}}{{#if hasTooltip}} has-tooltip{{/if}}">
6
6
  <div class="qg-quick-exit__tips">
7
7
  {{#if hasIconInfo}}
8
- <span class="qld-icon icon-info"></span>
8
+ <span class="icon-info"></span>
9
9
  {{/if}}
10
10
  <p class="qld-quick-exit-tip-title">{{{exitMessage}}}</p>
11
11
  <a href="{{browseSafelyOnlineURL}}" class="qld-quick-exit-tip-link">
@@ -1,3 +1,4 @@
1
+ @use "../../../css/mixins" as m;
1
2
  // ----------------------------------------------------------------------------------------------------------------------
2
3
  // Header - palettes and second hand variables:
3
4
  @import "./colours";
@@ -58,8 +59,10 @@
58
59
  position: absolute;
59
60
  }
60
61
  .qld-tooltip-wrapper:after {
61
- border-block-end: var(--#{$prefix}tooltip-arrow) solid var(--#{$prefix}quick-exit-tooltip-bg);
62
- border-inline-start: var(--#{$prefix}tooltip-arrow) solid var(--#{$prefix}quick-exit-tooltip-bg);
62
+ border-block-end: var(--#{$prefix}tooltip-arrow) solid
63
+ var(--#{$prefix}quick-exit-tooltip-bg);
64
+ border-inline-start: var(--#{$prefix}tooltip-arrow) solid
65
+ var(--#{$prefix}quick-exit-tooltip-bg);
63
66
  border-inline-end: var(--#{$prefix}tooltip-arrow) solid transparent;
64
67
  border-block-start: var(--#{$prefix}tooltip-arrow) solid transparent;
65
68
  inset-block-end: calc(var(--#{$prefix}tooltip-arrow) * -1);
@@ -75,7 +78,8 @@
75
78
  &:focus-within {
76
79
  outline-offset: var(--#{$prefix}quick-exit-text-outline-offset);
77
80
  box-shadow: none;
78
- outline: var(--#{$prefix}quick-exit-text-outline) solid var(--#{$prefix}quick-exit-tooltip-btn-focus);
81
+ outline: var(--#{$prefix}quick-exit-text-outline) solid
82
+ var(--#{$prefix}quick-exit-tooltip-btn-focus);
79
83
  border-radius: 0;
80
84
  }
81
85
  }
@@ -84,9 +88,13 @@
84
88
  font-weight: 500;
85
89
  text-decoration-line: underline;
86
90
  text-decoration-style: solid;
87
- text-underline-offset: calc(var(--#{$prefix}quick-exit-text-outline-offset) * 2);
91
+ text-underline-offset: calc(
92
+ var(--#{$prefix}quick-exit-text-outline-offset) * 2
93
+ );
88
94
  &:hover {
89
- text-decoration-thickness: var(--#{$prefix}link-underline-thickness-hover);
95
+ text-decoration-thickness: var(
96
+ --#{$prefix}link-underline-thickness-hover
97
+ );
90
98
  }
91
99
  }
92
100
  .qld-tooltip-prompt {
@@ -117,6 +125,7 @@
117
125
  border-color: var(--#{$prefix}quick-exit-button-bg-colour);
118
126
  background-color: var(--#{$prefix}quick-exit-button-bg-colour);
119
127
  color: var(--#{$prefix}quick-exit-button-text-colour);
128
+ display: inline-block;
120
129
  &:hover {
121
130
  border-color: var(--#{$prefix}quick-exit-button-bg-colour-hover);
122
131
  background-color: var(--#{$prefix}quick-exit-button-bg-colour-hover);
@@ -129,7 +138,9 @@
129
138
  }
130
139
  &:hover,
131
140
  &:focus {
132
- text-decoration-thickness: var(--#{$prefix}link-underline-thickness-hover);
141
+ text-decoration-thickness: var(
142
+ --#{$prefix}link-underline-thickness-hover
143
+ );
133
144
  }
134
145
  }
135
146
  .qg-quick-exit__tips {
@@ -143,9 +154,9 @@
143
154
  .icon-info {
144
155
  position: absolute;
145
156
  inset-inline-start: 0;
146
- background-repeat: no-repeat;
147
157
  margin-block-start: 4px;
148
- background-image: url("data:image/svg+xml,<svg width='18' height='19' viewBox='0 0 18 19' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M9 0.25C4.00781 0.25 0 4.29297 0 9.25C0 14.2422 4.00781 18.25 9 18.25C13.957 18.25 18 14.2422 18 9.25C18 4.29297 13.957 0.25 9 0.25ZM9 17.125C4.64062 17.125 1.125 13.6094 1.125 9.25C1.125 4.92578 4.64062 1.375 9 1.375C13.3242 1.375 16.875 4.92578 16.875 9.25C16.875 13.6094 13.3242 17.125 9 17.125ZM9 6.71875C9.45703 6.71875 9.84375 6.36719 9.84375 5.875C9.84375 5.41797 9.45703 5.03125 9 5.03125C8.50781 5.03125 8.15625 5.41797 8.15625 5.875C8.15625 6.36719 8.50781 6.71875 9 6.71875ZM10.6875 12.625H9.5625V8.6875C9.5625 8.40625 9.28125 8.125 9 8.125H7.875C7.55859 8.125 7.3125 8.40625 7.3125 8.6875C7.3125 9.00391 7.55859 9.25 7.875 9.25H8.4375V12.625H7.3125C6.99609 12.625 6.75 12.9062 6.75 13.1875C6.75 13.5039 6.99609 13.75 7.3125 13.75H10.6875C10.9688 13.75 11.25 13.5039 11.25 13.1875C11.25 12.9062 10.9688 12.625 10.6875 12.625Z' fill='white'/></svg>");
158
+ @include m.make-icon("alert-information");
159
+ --#{$prefix}icon-color: #{$qld-dark-action-secondary};
149
160
  }
150
161
  @include media-breakpoint-up(lg) {
151
162
  -webkit-box-pack: justify;
@@ -188,8 +199,10 @@
188
199
  .qld-tooltip-wrapper:after {
189
200
  border-block-end: var(--#{$prefix}tooltip-arrow) solid transparent;
190
201
  border-inline-start: var(--#{$prefix}tooltip-arrow) solid transparent;
191
- border-inline-end: var(--#{$prefix}tooltip-arrow) solid var(--#{$prefix}quick-exit-tooltip-bg);
192
- border-block-start: var(--#{$prefix}tooltip-arrow) solid var(--#{$prefix}quick-exit-tooltip-bg);
202
+ border-inline-end: var(--#{$prefix}tooltip-arrow) solid
203
+ var(--#{$prefix}quick-exit-tooltip-bg);
204
+ border-block-start: var(--#{$prefix}tooltip-arrow) solid
205
+ var(--#{$prefix}quick-exit-tooltip-bg);
193
206
  inset-block-end: auto;
194
207
  inset-inline-start: 25px;
195
208
  inset-block-start: calc(var(--#{$prefix}tooltip-arrow) * -1);
@@ -1,12 +1,12 @@
1
- import { Canvas, Meta, Story } from "@storybook/blocks"
2
- import * as SearchInputStories from "./searchInput.stories"
1
+ import { Canvas, Meta, Story } from "@storybook/blocks";
2
+ import * as SearchInputStories from "./searchInput.stories";
3
3
 
4
4
  <Meta of={SearchInputStories} />
5
5
 
6
6
  # Search Input
7
- <Canvas>
8
- <Story of={SearchInputStories.Default} />
9
- </Canvas>
7
+
8
+ <Canvas of={SearchInputStories.Default} />
10
9
 
11
10
  ## Design resources
11
+
12
12
  - [Component library (Figma)]https://www.figma.com/design/qKsxl3ogIlBp7dafgxXuCA/QLD-GOV-DDS?node-id=11017-307599&t=NGmPmPhkUQMN7qQw-0)./searchInput.stories
@@ -1,12 +1,11 @@
1
- import { Canvas, Meta, Story } from "@storybook/blocks"
2
- import * as SidenavStories from "./sidenav.stories"
1
+ import { Canvas, Meta, Story } from "@storybook/blocks";
2
+ import * as SidenavStories from "./sidenav.stories";
3
3
 
4
4
  <Meta of={SidenavStories} />
5
5
 
6
6
  # Side navigation
7
- <Canvas>
8
- <Story of={SidenavStories.Default} />
9
- </Canvas>
7
+
8
+ <Canvas of={SidenavStories.Default} />
10
9
 
11
10
  ## Design resources
12
11