@qld-gov-au/qgds-bootstrap5 2.1.2 → 2.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/components/bs5/head/head.hbs +1 -1
- package/dist/assets/css/qld.bootstrap.css +2 -2
- package/dist/assets/css/qld.bootstrap.css.map +2 -2
- package/dist/assets/css/qld.bootstrap.legacy.css +2 -2
- package/dist/assets/css/qld.bootstrap.legacy.css.map +2 -2
- package/dist/assets/js/handlebars.helpers.bundle.js +1 -1
- package/dist/assets/js/handlebars.init.min.js +2 -2
- package/dist/assets/js/handlebars.partials.js +2 -2
- package/dist/assets/js/qld.bootstrap.min.js +6 -6
- package/dist/assets/js/qld.bootstrap.min.js.map +3 -3
- package/dist/assets/node/handlebars.init.min.js +1 -1
- package/dist/components/bs5/head/head.hbs +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
- package/src/components/bs5/accordion/mdx/_designResources.mdx +0 -1
- package/src/components/bs5/backToTop/backToTop.mdx +0 -1
- package/src/components/bs5/banner/Banner.mdx +0 -1
- package/src/components/bs5/blockquote/Blockquote.mdx +0 -1
- package/src/components/bs5/breadcrumbs/Breadcrumbs.mdx +0 -1
- package/src/components/bs5/button/Button.mdx +0 -1
- package/src/components/bs5/callToAction/callToAction.mdx +0 -1
- package/src/components/bs5/callout/Callout.mdx +0 -1
- package/src/components/bs5/card/Card.mdx +0 -1
- package/src/components/bs5/directionLinks/DirectionLinks.mdx +0 -1
- package/src/components/bs5/footer/Footer.mdx +0 -1
- package/src/components/bs5/formcheck/stories/checkbox/Checkbox.mdx +1 -3
- package/src/components/bs5/formcheck/stories/radio/Radio.mdx +0 -1
- package/src/components/bs5/globalAlert/GlobalAlert.mdx +0 -1
- package/src/components/bs5/header/header.scss +1 -1
- package/src/components/bs5/image/Image.mdx +0 -1
- package/src/components/bs5/inpageAlert/InpageAlert.mdx +0 -1
- package/src/components/bs5/inpagenav/Inpagenav.mdx +0 -1
- package/src/components/bs5/link/link.mdx +1 -3
- package/src/components/bs5/linkColumns/linkColumns.mdx +0 -1
- package/src/components/bs5/navbar/navbar.scss +75 -13
- package/src/components/bs5/pagination/Pagination.mdx +0 -1
- package/src/components/bs5/pagination/pagination.scss +14 -18
- package/src/components/bs5/promotionalPanel/PromotionalPanel.mdx +0 -1
- package/src/components/bs5/searchInput/SearchInput.mdx +1 -1
- package/src/components/bs5/searchInput/search.functions.js +48 -2
- package/src/components/bs5/table/Table.mdx +0 -1
- package/src/components/bs5/tabs/Tabs.mdx +0 -1
- package/src/components/bs5/tag/Tag.mdx +0 -1
- package/src/components/bs5/video/Video.mdx +0 -1
- package/src/components/bs5/video/video.scss +1 -1
- package/src/css/mixins/focusable.scss +1 -1
|
@@ -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)
|
|
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
|
|
|
@@ -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/)
|
|
@@ -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
|
-
- [
|
|
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
|
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "../../../css/mixins" as m;
|
|
2
|
+
|
|
1
3
|
@mixin repeatedVerticalStyles {
|
|
2
4
|
.nav-header {
|
|
3
5
|
min-height: var(--qld-header-preheader-height, 4rem);
|
|
@@ -18,6 +20,8 @@
|
|
|
18
20
|
border-radius: 0;
|
|
19
21
|
display: block;
|
|
20
22
|
padding-inline: 1.5rem;
|
|
23
|
+
|
|
24
|
+
@include m.focusable($offsetOutline: -3px);
|
|
21
25
|
}
|
|
22
26
|
}
|
|
23
27
|
> .container {
|
|
@@ -82,6 +86,9 @@
|
|
|
82
86
|
box-shadow:
|
|
83
87
|
0px 1px 2px rgba(0, 0, 0, 0.2),
|
|
84
88
|
0px 1px 3px rgba(0, 0, 0, 0.1);
|
|
89
|
+
|
|
90
|
+
@include m.focusable();
|
|
91
|
+
|
|
85
92
|
&:hover {
|
|
86
93
|
box-shadow:
|
|
87
94
|
0px 4px 8px 3px rgba(0, 0, 0, 0.1),
|
|
@@ -100,9 +107,6 @@
|
|
|
100
107
|
transform: rotate(0deg);
|
|
101
108
|
transition: transform var(--animation-time) ease-in;
|
|
102
109
|
}
|
|
103
|
-
&:focus {
|
|
104
|
-
outline: 2px solid var(--qld-focus-color);
|
|
105
|
-
}
|
|
106
110
|
}
|
|
107
111
|
.nav-link {
|
|
108
112
|
border-block-end: 0;
|
|
@@ -140,12 +144,15 @@
|
|
|
140
144
|
border-inline-start-color: var(--dropdown-show-bg);
|
|
141
145
|
gap: 0;
|
|
142
146
|
&::after {
|
|
143
|
-
content: "";
|
|
144
147
|
content: none;
|
|
145
148
|
}
|
|
146
149
|
&:hover {
|
|
147
150
|
transition: none;
|
|
148
151
|
}
|
|
152
|
+
|
|
153
|
+
&:focus {
|
|
154
|
+
outline-offset: -3px;
|
|
155
|
+
}
|
|
149
156
|
}
|
|
150
157
|
p {
|
|
151
158
|
position: absolute;
|
|
@@ -172,7 +179,6 @@
|
|
|
172
179
|
text-decoration-color: inherit;
|
|
173
180
|
padding: 0;
|
|
174
181
|
&:after {
|
|
175
|
-
content: "";
|
|
176
182
|
content: none;
|
|
177
183
|
}
|
|
178
184
|
}
|
|
@@ -214,6 +220,8 @@
|
|
|
214
220
|
border-block-end: 0;
|
|
215
221
|
margin-block-end: 0;
|
|
216
222
|
position: relative;
|
|
223
|
+
outline-offset: -3px;
|
|
224
|
+
|
|
217
225
|
&::before {
|
|
218
226
|
content: "";
|
|
219
227
|
position: absolute;
|
|
@@ -248,8 +256,9 @@
|
|
|
248
256
|
background-color: transparent;
|
|
249
257
|
}
|
|
250
258
|
}
|
|
251
|
-
|
|
252
|
-
|
|
259
|
+
|
|
260
|
+
&:focus::before {
|
|
261
|
+
z-index: -1;
|
|
253
262
|
}
|
|
254
263
|
}
|
|
255
264
|
}
|
|
@@ -336,6 +345,7 @@
|
|
|
336
345
|
--mobile-only-display: block;
|
|
337
346
|
--visibility-display: visible;
|
|
338
347
|
--nav-header-border-color: var(--#{$prefix}dark-border);
|
|
348
|
+
|
|
339
349
|
.qld-header:has(.qld-header-pre-header.dark) ~ & {
|
|
340
350
|
--vert-background-color: var(--#{$prefix}dark-background);
|
|
341
351
|
--background-color: var(--#{$prefix}default-background-shade);
|
|
@@ -355,6 +365,15 @@
|
|
|
355
365
|
--nav-header-icon-color: var(--#{$prefix}brand-accent);
|
|
356
366
|
--navbar-collapse-bg: var(--#{$prefix}dark-background-shade);
|
|
357
367
|
--action-icon-color_active: var(--text-color);
|
|
368
|
+
|
|
369
|
+
> :where(*) {
|
|
370
|
+
--qld-focus-color: var(--qld-light-focus);
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
.nav-header {
|
|
374
|
+
--qld-focus-color: var(--qld-dark-focus);
|
|
375
|
+
}
|
|
376
|
+
|
|
358
377
|
.alt {
|
|
359
378
|
--vert-background-color: var(--#{$prefix}default-background);
|
|
360
379
|
--background-color: var(--#{$prefix}sapphire-blue);
|
|
@@ -369,6 +388,11 @@
|
|
|
369
388
|
--dropdown-bg-color: var(--#{$prefix}dark-background);
|
|
370
389
|
--action-icon-color: var(--#{$prefix}brand-accent);
|
|
371
390
|
--action-icon-color_active: var(--text-color);
|
|
391
|
+
|
|
392
|
+
> :where(*) {
|
|
393
|
+
--qld-focus-color: var(--qld-dark-focus);
|
|
394
|
+
}
|
|
395
|
+
|
|
372
396
|
.nav-link {
|
|
373
397
|
border-inline-start: 0;
|
|
374
398
|
}
|
|
@@ -393,6 +417,14 @@
|
|
|
393
417
|
--navbar-collapse-bg: var(--#{$prefix}default-background-shade);
|
|
394
418
|
--action-icon-color_active: var(--text-color);
|
|
395
419
|
|
|
420
|
+
> :where(*) {
|
|
421
|
+
--qld-focus-color: var(--qld-dark-focus);
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
.nav-header {
|
|
425
|
+
--qld-focus-color: var(--qld-light-focus);
|
|
426
|
+
}
|
|
427
|
+
|
|
396
428
|
.alt {
|
|
397
429
|
--vert-background-color: var(--#{$prefix}dark-background);
|
|
398
430
|
--background-color: var(--#{$prefix}default-background);
|
|
@@ -406,11 +438,13 @@
|
|
|
406
438
|
--header-color: var(--#{$prefix}default-background);
|
|
407
439
|
--action-icon-color: var(--#{$prefix}alt-button-hover);
|
|
408
440
|
--action-icon-color_active: var(--text-color);
|
|
441
|
+
|
|
409
442
|
.nav-link {
|
|
410
443
|
border-inline-start: 0;
|
|
411
444
|
}
|
|
412
445
|
}
|
|
413
446
|
}
|
|
447
|
+
|
|
414
448
|
.qld-header:has(.qld-header-pre-header.dark-alt) ~ & {
|
|
415
449
|
--background-color: var(--#{$prefix}dark-background-shade);
|
|
416
450
|
--background-color-hover: var(--#{$prefix}dark-alt-background);
|
|
@@ -429,6 +463,15 @@
|
|
|
429
463
|
--nav-header-border-color: var(--#{$prefix}dark-border);
|
|
430
464
|
--nav-header-icon-color: var(--#{$prefix}dark-action-secondary);
|
|
431
465
|
--action-icon-color_active: var(--text-color);
|
|
466
|
+
|
|
467
|
+
> :where(*) {
|
|
468
|
+
--qld-focus-color: var(--qld-dark-focus);
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
.nav-header {
|
|
472
|
+
--qld-focus-color: var(--qld-dark-focus);
|
|
473
|
+
}
|
|
474
|
+
|
|
432
475
|
.alt {
|
|
433
476
|
--background-color: var(--#{$prefix}dark-alt-background-shade);
|
|
434
477
|
--background-color-hover: var(--#{$prefix}dark-alt-background-shade);
|
|
@@ -438,6 +481,11 @@
|
|
|
438
481
|
--action-icon-color: var(--#{$prefix}brand-accent);
|
|
439
482
|
--link-border-color-hover: var(--#{$prefix}dark-action-secondary-hover);
|
|
440
483
|
--action-icon-color_active: var(--text-color);
|
|
484
|
+
|
|
485
|
+
> :where(*) {
|
|
486
|
+
--qld-focus-color: var(--qld-dark-focus);
|
|
487
|
+
}
|
|
488
|
+
|
|
441
489
|
.nav-link {
|
|
442
490
|
border-inline-start: 0;
|
|
443
491
|
}
|
|
@@ -500,8 +548,7 @@
|
|
|
500
548
|
background-color: var(--action-icon-color);
|
|
501
549
|
}
|
|
502
550
|
}
|
|
503
|
-
.navbar-nav a.nav-link
|
|
504
|
-
a.dropdown-item {
|
|
551
|
+
.navbar-nav a.nav-link {
|
|
505
552
|
color: var(--text-color);
|
|
506
553
|
padding-block: var(--nav-link-padding-block);
|
|
507
554
|
padding-inline: 0.75rem;
|
|
@@ -515,8 +562,23 @@
|
|
|
515
562
|
text-underline-offset: 0.3rem;
|
|
516
563
|
text-decoration-thickness: 0.125rem;
|
|
517
564
|
}
|
|
518
|
-
|
|
519
|
-
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
a.dropdown-item {
|
|
568
|
+
color: var(--link-color);
|
|
569
|
+
padding-block: var(--nav-link-padding-block);
|
|
570
|
+
padding-inline: 0.75rem;
|
|
571
|
+
display: flex;
|
|
572
|
+
line-height: 2rem;
|
|
573
|
+
gap: 0.5rem;
|
|
574
|
+
align-items: center;
|
|
575
|
+
&:hover {
|
|
576
|
+
color: var(--link-color);
|
|
577
|
+
text-decoration: underline;
|
|
578
|
+
text-underline-offset: 0.3rem;
|
|
579
|
+
text-decoration-thickness: 0.125rem;
|
|
580
|
+
}
|
|
581
|
+
@include m.focusable($offsetOutline: -3px) {
|
|
520
582
|
box-shadow: none;
|
|
521
583
|
}
|
|
522
584
|
}
|
|
@@ -624,8 +686,7 @@
|
|
|
624
686
|
padding-inline-end var(--animation-time) ease-in-out,
|
|
625
687
|
gap var(--animation-time) ease-in-out;
|
|
626
688
|
}
|
|
627
|
-
|
|
628
|
-
outline-offset: 2px;
|
|
689
|
+
@include m.focusable() {
|
|
629
690
|
box-shadow: none;
|
|
630
691
|
}
|
|
631
692
|
}
|
|
@@ -753,6 +814,7 @@
|
|
|
753
814
|
.nav-header .navbar-brand {
|
|
754
815
|
color: var(--nav-header-color);
|
|
755
816
|
}
|
|
817
|
+
|
|
756
818
|
#burgerCloseBtn {
|
|
757
819
|
--qld-btn-close-bg: none;
|
|
758
820
|
--qld-btn-close-opacity: 1;
|
|
@@ -9,7 +9,6 @@ import * as PaginationStories from "./pagination.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-395566&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-321779&mode=design&t=YLfxdziHdqD2Ty0o-0)
|
|
14
13
|
- [Design System website](https://www.designsystem.qld.gov.au/components/pagination)
|
|
15
14
|
- [Bootstrap component](https://getbootstrap.com/docs/5.3/components/pagination/)
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// QGDS QOL Pagination
|
|
2
2
|
// extends https://getbootstrap.com/docs/5.3/components/pagination/#variables
|
|
3
3
|
|
|
4
|
+
@use "../../../css/mixins" as m;
|
|
5
|
+
|
|
4
6
|
//PREV NEXT ARROW on default background
|
|
5
7
|
$pagination-icon-prevnext-color: var(--#{$prefix}light-action-secondary);
|
|
6
8
|
$pagination-icon-prevnext-hover-color: var(
|
|
@@ -45,7 +47,7 @@ $pagination-icon-more-dark-hover-color: var(--#{$prefix}dark-action-secondary);
|
|
|
45
47
|
--#{$prefix}pagination-focus-border-color: var(
|
|
46
48
|
--#{$prefix}dark-action-secondary
|
|
47
49
|
);
|
|
48
|
-
--#{$prefix}
|
|
50
|
+
--#{$prefix}focus-color: var(--#{$prefix}light-focus);
|
|
49
51
|
--#{$prefix}pagination-focus-bg: transparent;
|
|
50
52
|
|
|
51
53
|
//Hover
|
|
@@ -99,7 +101,7 @@ $pagination-icon-more-dark-hover-color: var(--#{$prefix}dark-action-secondary);
|
|
|
99
101
|
--#{$prefix}pagination-focus-border-color: var(
|
|
100
102
|
--#{$prefix}dark-action-secondary
|
|
101
103
|
);
|
|
102
|
-
--#{$prefix}
|
|
104
|
+
--#{$prefix}focus-color: var(--#{$prefix}dark-focus);
|
|
103
105
|
--#{$prefix}pagination-focus-bg: transparent;
|
|
104
106
|
|
|
105
107
|
//Hover
|
|
@@ -171,9 +173,7 @@ $pagination-icon-more-dark-hover-color: var(--#{$prefix}dark-action-secondary);
|
|
|
171
173
|
background-color: var(--#{$prefix}pagination-hover-bg);
|
|
172
174
|
}
|
|
173
175
|
|
|
174
|
-
|
|
175
|
-
outline: 2px solid var(--#{$prefix}pagination-focus-outline-color);
|
|
176
|
-
outline-offset: 2px;
|
|
176
|
+
@include m.focusable($offsetOutline: 2px) {
|
|
177
177
|
border-color: var(--#{$prefix}pagination-hover-border-color);
|
|
178
178
|
box-shadow: inset 0 0 0 1px
|
|
179
179
|
var(--#{$prefix}pagination-hover-border-color);
|
|
@@ -245,9 +245,7 @@ $pagination-icon-more-dark-hover-color: var(--#{$prefix}dark-action-secondary);
|
|
|
245
245
|
box-shadow: none;
|
|
246
246
|
}
|
|
247
247
|
|
|
248
|
-
|
|
249
|
-
outline: 2px solid var(--#{$prefix}pagination-focus-outline-color);
|
|
250
|
-
outline-offset: 2px;
|
|
248
|
+
@include m.focusable($offsetOutline: 2px) {
|
|
251
249
|
border: none;
|
|
252
250
|
box-shadow: none;
|
|
253
251
|
}
|
|
@@ -260,18 +258,16 @@ $pagination-icon-more-dark-hover-color: var(--#{$prefix}dark-action-secondary);
|
|
|
260
258
|
background-color: var(--#{$prefix}pagination-active-bg);
|
|
261
259
|
border-color: var(--#{$prefix}pagination-active-border-color);
|
|
262
260
|
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
background-color: var(--#{$prefix}pagination-active-
|
|
261
|
+
@include m.focusable($offsetOutline: 2px) {
|
|
262
|
+
box-shadow: none;
|
|
263
|
+
border-color: var(--#{$prefix}pagination-active-focus-bg);
|
|
264
|
+
background-color: var(--#{$prefix}pagination-active-focus-bg);
|
|
267
265
|
}
|
|
268
266
|
|
|
269
|
-
&:
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
box-shadow: var(--#{$prefix}pagination-active-dropshadow);
|
|
274
|
-
background-color: var(--#{$prefix}pagination-active-focus-bg);
|
|
267
|
+
&:hover {
|
|
268
|
+
box-shadow: none;
|
|
269
|
+
border-color: var(--#{$prefix}pagination-active-hover-bg);
|
|
270
|
+
background-color: var(--#{$prefix}pagination-active-hover-bg);
|
|
275
271
|
}
|
|
276
272
|
}
|
|
277
273
|
|
|
@@ -10,7 +10,6 @@ import defaultdata from "./promotionalPanel.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=23269-286312&p=f&t=SY0WW7uiwAl3ioEj-0)
|
|
14
13
|
- [Master component file (Figma)](https://www.figma.com/design/qKsxl3ogIlBp7dafgxXuCA/QGDS-UI-kit?node-id=23269-286312&p=f&t=nVLTSHpRu8jvVSar-0)
|
|
15
14
|
- [Design System website](https://www.designsystem.qld.gov.au/components/promotional-panel)
|
|
16
15
|
|
|
@@ -9,4 +9,4 @@ import * as SearchInputStories from "./searchInput.stories";
|
|
|
9
9
|
|
|
10
10
|
## Design resources
|
|
11
11
|
|
|
12
|
-
- [Component
|
|
12
|
+
- [Component file (Figma)](https://www.figma.com/design/qKsxl3ogIlBp7dafgxXuCA/QLD-GOV-DDS?node-id=11017-307599&t=NGmPmPhkUQMN7qQw-0)
|
|
@@ -145,7 +145,30 @@ export async function showSuggestions(value = "", isDefault = false, form) {
|
|
|
145
145
|
let linkItem = event.target.closest("a");
|
|
146
146
|
if (linkItem) {
|
|
147
147
|
event.preventDefault();
|
|
148
|
-
|
|
148
|
+
|
|
149
|
+
// Check if the link has a valid absolute URL
|
|
150
|
+
const href = linkItem.getAttribute("href");
|
|
151
|
+
const isValidUrl =
|
|
152
|
+
href &&
|
|
153
|
+
href !== "#" &&
|
|
154
|
+
(() => {
|
|
155
|
+
try {
|
|
156
|
+
const url = new URL(href, window.location.origin);
|
|
157
|
+
return (
|
|
158
|
+
url.protocol === "http:" || url.protocol === "https:"
|
|
159
|
+
);
|
|
160
|
+
} catch {
|
|
161
|
+
return false;
|
|
162
|
+
}
|
|
163
|
+
})();
|
|
164
|
+
|
|
165
|
+
if (isValidUrl) {
|
|
166
|
+
// Navigate directly to the URL
|
|
167
|
+
window.location.href = href;
|
|
168
|
+
} else {
|
|
169
|
+
// Use the search suggestion flow
|
|
170
|
+
selectDynamicSuggestion(linkItem.textContent, form);
|
|
171
|
+
}
|
|
149
172
|
}
|
|
150
173
|
});
|
|
151
174
|
} else {
|
|
@@ -200,7 +223,30 @@ export async function showSuggestions(value = "", isDefault = false, form) {
|
|
|
200
223
|
let linkItem = event.target.closest("a");
|
|
201
224
|
if (linkItem) {
|
|
202
225
|
event.preventDefault();
|
|
203
|
-
|
|
226
|
+
|
|
227
|
+
// Check if the link has a valid absolute URL
|
|
228
|
+
const href = linkItem.getAttribute("href");
|
|
229
|
+
const isValidUrl =
|
|
230
|
+
href &&
|
|
231
|
+
href !== "#" &&
|
|
232
|
+
(() => {
|
|
233
|
+
try {
|
|
234
|
+
const url = new URL(href, window.location.origin);
|
|
235
|
+
return (
|
|
236
|
+
url.protocol === "http:" || url.protocol === "https:"
|
|
237
|
+
);
|
|
238
|
+
} catch {
|
|
239
|
+
return false;
|
|
240
|
+
}
|
|
241
|
+
})();
|
|
242
|
+
|
|
243
|
+
if (isValidUrl) {
|
|
244
|
+
// Navigate directly to the URL
|
|
245
|
+
window.location.href = href;
|
|
246
|
+
} else {
|
|
247
|
+
// Use the search suggestion flow
|
|
248
|
+
selectDynamicSuggestion(linkItem.textContent, form);
|
|
249
|
+
}
|
|
204
250
|
}
|
|
205
251
|
});
|
|
206
252
|
}
|
|
@@ -9,7 +9,6 @@ import * as TableStories from "./table.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-395552&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-97592&mode=design&t=YLfxdziHdqD2Ty0o-0)
|
|
14
13
|
- [Design System website](https://www.designsystem.qld.gov.au/components/tables)
|
|
15
14
|
- [Bootstrap component](https://getbootstrap.com/docs/5.3/content/tables/)
|
|
@@ -9,7 +9,6 @@ import * as TabsStories from "./tabs.stories";
|
|
|
9
9
|
|
|
10
10
|
## Design resources
|
|
11
11
|
|
|
12
|
-
- [Component library (Figma)](https://www.figma.com/design/qKsxl3ogIlBp7dafgxXuCA/QGDS-UI-kit?node-id=6247-38705&p=f&t=AHTplcCqsKKRWGvc-0)
|
|
13
12
|
- [Master component file (Figma)](https://www.figma.com/design/qKsxl3ogIlBp7dafgxXuCA/QGDS-UI-kit?node-id=25951-236134&p=f&t=GBRfQxrdnGxAh30j-0)
|
|
14
13
|
- [Design System website](https://www.designsystem.qld.gov.au/components/tabs)
|
|
15
14
|
- [Bootstrap component](https://getbootstrap.com/docs/5.3/components/navs-tabs/)
|
|
@@ -9,6 +9,5 @@ import * as TagStories from "./tag.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-395550&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-97596&mode=design&t=YLfxdziHdqD2Ty0o-0)
|
|
14
13
|
- [Design System website](https://www.designsystem.qld.gov.au/components/tags)
|
|
@@ -9,5 +9,4 @@ import * as VideoStories from "./video.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=23203-295341&mode=design&t=eRH1gEfJNDna1ovz-4)
|
|
13
12
|
- [Master component file (Figma)](https://www.figma.com/file/qKsxl3ogIlBp7dafgxXuCA/QLD-GOV-DDS?type=design&node-id=13297-214065&mode=design&t=YLfxdziHdqD2Ty0o-0)
|