@qld-gov-au/qgds-bootstrap5 2.0.1 → 2.0.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/.storybook/preview.js +4 -1
- package/dist/assets/components/bs5/accordion/accordion.hbs +3 -6
- package/dist/assets/components/bs5/directionLinks/directionLinks.hbs +2 -1
- package/dist/assets/components/bs5/head/head.hbs +1 -1
- package/dist/assets/components/bs5/header/header.hbs +6 -9
- package/dist/assets/components/bs5/navbar/navbar.hbs +21 -14
- package/dist/assets/components/bs5/pageLayout/templates/contentPageWithForm.hbs +1 -1
- package/dist/assets/components/bs5/pageLayout/templates/contentPageWithSideNavigation.hbs +140 -108
- package/dist/assets/components/bs5/pageLayout/templates/homePage.hbs +1 -1
- package/dist/assets/components/bs5/quickexit/quickexit.hbs +1 -1
- package/dist/assets/components/bs5/sidenav/sidenav.hbs +56 -37
- package/dist/assets/css/qld.bootstrap.css +1 -6
- package/dist/assets/css/qld.bootstrap.css.map +3 -3
- package/dist/assets/js/handlebars.init.min.js +232 -179
- package/dist/assets/js/handlebars.init.min.js.map +2 -2
- package/dist/assets/js/qld.bootstrap.min.js +5 -5
- package/dist/assets/js/qld.bootstrap.min.js.map +4 -4
- package/dist/assets/node/handlebars.init.min.js +55 -23
- package/dist/assets/node/handlebars.init.min.js.map +2 -2
- package/dist/components/bs5/accordion/accordion.hbs +3 -6
- package/dist/components/bs5/directionLinks/directionLinks.hbs +2 -1
- package/dist/components/bs5/head/head.hbs +1 -1
- package/dist/components/bs5/header/header.hbs +6 -9
- package/dist/components/bs5/navbar/navbar.hbs +21 -14
- package/dist/components/bs5/pageLayout/templates/contentPageWithForm.hbs +1 -1
- package/dist/components/bs5/pageLayout/templates/contentPageWithSideNavigation.hbs +140 -108
- package/dist/components/bs5/pageLayout/templates/homePage.hbs +1 -1
- package/dist/components/bs5/quickexit/quickexit.hbs +1 -1
- package/dist/components/bs5/sidenav/sidenav.hbs +56 -37
- package/dist/package.json +2 -4
- package/dist/sample-data/accordion/accordion.data.json +24 -23
- package/dist/sample-data/navbar/navbar.data.json +91 -25
- package/dist/sample-data/pagination/pagination.data.json +19 -19
- package/dist/sample-data/sidenav/sidenav.data.json +81 -80
- package/package.json +2 -4
- package/src/components/bs5/accordion/Accordion.mdx +34 -12
- package/src/components/bs5/accordion/__snapshots__/accordion.test.js.snap +3 -6
- package/src/components/bs5/accordion/accordion.data.json +24 -23
- package/src/components/bs5/accordion/accordion.hbs +3 -6
- package/src/components/bs5/accordion/accordion.scss +19 -9
- package/src/components/bs5/accordion/accordion.stories.js +8 -0
- package/src/components/bs5/accordion/accordion.test.js +5 -0
- package/src/components/bs5/accordion/mdx/_designResources.mdx +6 -0
- package/src/components/bs5/accordion/mdx/_usageInstructions.mdx +10 -0
- package/src/components/bs5/backToTop/backToTop.mdx +4 -5
- package/src/components/bs5/banner/Banner.mdx +1 -3
- package/src/components/bs5/blockquote/Blockquote.mdx +4 -5
- package/src/components/bs5/blockquote/blockquote.scss +47 -7
- package/src/components/bs5/breadcrumbs/Breadcrumbs.mdx +1 -3
- package/src/components/bs5/button/Button.mdx +4 -5
- package/src/components/bs5/button/button.scss +13 -1
- package/src/components/bs5/callToAction/callToAction.mdx +1 -3
- package/src/components/bs5/callout/Callout.mdx +4 -5
- package/src/components/bs5/card/Card.mdx +1 -3
- package/src/components/bs5/card/card.scss +1 -25
- package/src/components/bs5/directionLinks/DirectionLinks.mdx +4 -5
- package/src/components/bs5/directionLinks/directionLinks.hbs +2 -1
- package/src/components/bs5/directionLinks/directionLinks.scss +27 -80
- package/src/components/bs5/directionLinks/directionLinks.stories.js +7 -14
- package/src/components/bs5/footer/Footer.mdx +1 -3
- package/src/components/bs5/footer/footer.scss +4 -11
- package/src/components/bs5/formcheck/stories/checkbox/Checkbox.mdx +7 -6
- package/src/components/bs5/formcheck/stories/radio/Radio.mdx +7 -6
- package/src/components/bs5/globalAlert/GlobalAlert.mdx +1 -3
- package/src/components/bs5/globalAlert/globalAlert.scss +6 -0
- package/src/components/bs5/header/Header.mdx +1 -3
- package/src/components/bs5/header/header.hbs +6 -9
- package/src/components/bs5/header/header.scss +6 -2
- package/src/components/bs5/icons/Icons.mdx +167 -7
- package/src/components/bs5/icons/_icons.sizes.scss +9 -0
- package/src/components/bs5/icons/icons.scss +23 -71
- package/src/components/bs5/icons/icons.stories.js +34 -57
- package/src/components/bs5/icons/mdx/_IconsSizes.mdx +112 -0
- package/src/components/bs5/icons/stories/storyFlexContainer.html +18 -0
- package/src/components/bs5/icons/stories/storyInlineWithText.html +18 -0
- package/src/components/bs5/icons/stories/storySizes.html +89 -0
- package/src/components/bs5/image/Image.mdx +1 -4
- package/src/components/bs5/inpageAlert/InpageAlert.mdx +1 -3
- package/src/components/bs5/inpagenav/Inpagenav.mdx +4 -5
- package/src/components/bs5/inpagenav/inpagenav.scss +7 -3
- package/src/components/bs5/link/link.mdx +1 -3
- package/src/components/bs5/link/link.scss +2 -15
- package/src/components/bs5/linkColumns/linkColumns.mdx +1 -3
- package/src/components/bs5/logo/Logo.mdx +1 -3
- package/src/components/bs5/navbar/navbar.data.json +91 -25
- package/src/components/bs5/navbar/navbar.functions.js +4 -0
- package/src/components/bs5/navbar/navbar.hbs +21 -14
- package/src/components/bs5/navbar/navbar.scss +219 -166
- package/src/components/bs5/navbar/navbar.stories.js +31 -2
- package/src/components/bs5/pageLayout/ThemeShowcase.stories.js +249 -0
- package/src/components/bs5/pageLayout/pageLayout.stories.js +3 -1
- package/src/components/bs5/pageLayout/templates/contentPageWithForm.hbs +1 -1
- package/src/components/bs5/pageLayout/templates/contentPageWithSideNavigation.hbs +140 -108
- package/src/components/bs5/pageLayout/templates/homePage.hbs +1 -1
- package/src/components/bs5/pagination/Pagination.mdx +4 -5
- package/src/components/bs5/pagination/pagination.data.json +19 -19
- package/src/components/bs5/pagination/pagination.scss +37 -63
- package/src/components/bs5/promotionalPanel/PromotionalPanel.mdx +1 -3
- package/src/components/bs5/promotionalPanel/promotionalPanel.scss +23 -22
- package/src/components/bs5/quickexit/quickexit.functions.js +24 -37
- package/src/components/bs5/quickexit/quickexit.hbs +1 -1
- package/src/components/bs5/quickexit/quickexit.scss +27 -10
- package/src/components/bs5/searchInput/SearchInput.mdx +5 -5
- package/src/components/bs5/sidenav/Sidenav.mdx +4 -5
- package/src/components/bs5/sidenav/sidenav.data.json +81 -80
- package/src/components/bs5/sidenav/sidenav.hbs +56 -37
- package/src/components/bs5/sidenav/sidenav.scss +236 -151
- package/src/components/bs5/skiplinks/SkipLinks.mdx +1 -3
- package/src/components/bs5/skiplinks/skipLinks.functions.js +0 -9
- package/src/components/bs5/skiplinks/skipLinks.test.js +0 -1
- package/src/components/bs5/table/Table.mdx +4 -5
- package/src/components/bs5/tabs/Tabs.mdx +4 -5
- package/src/components/bs5/tabs/tabs.scss +22 -1
- package/src/components/bs5/tag/Tag.mdx +4 -5
- package/src/components/bs5/typography/Typography.mdx +4 -5
- package/src/components/bs5/video/Video.mdx +4 -5
- package/src/components/common/layout/container.scss +5 -0
- package/src/components/common/layout/content.scss +16 -8
- package/src/css/functions/_index.scss +1 -0
- package/src/css/functions/in-list.scss +5 -0
- package/src/css/main.scss +4 -10
- package/src/css/mixins/_index.scss +3 -0
- package/src/css/mixins/make-icon.scss +87 -0
- package/src/css/qld-theme.scss +74 -31
- package/src/css/qld-type.scss +26 -140
- package/src/css/qld-utilities.scss +29 -14
- package/src/css/qld-variables.scss +4 -4
- package/src/css/utilities/_index.scss +1 -0
- package/src/css/utilities/sr-only.scss +5 -0
- package/src/css/variables/_index.scss +1 -0
- package/src/css/variables/type.scss +58 -0
- package/src/js/qld.bootstrap.js +1 -9
- package/src/stories/documentation/_storybookDocsTabs.jsx +63 -0
- package/src/stories/documentation/storybook-documentation.scss +51 -0
- package/src/components/bs5/icons/story-icon-sizing.html +0 -131
- package/src/components/bs5/icons/story-icon-usage.html +0 -89
- package/src/components/bs5/pagination/health-icon-sprite.svg +0 -156
|
@@ -12,70 +12,87 @@
|
|
|
12
12
|
"alternativeColor": false,
|
|
13
13
|
"mobileOnly": false,
|
|
14
14
|
"hideLabel": true,
|
|
15
|
+
"currentPage": true,
|
|
15
16
|
"target": ""
|
|
16
17
|
},
|
|
17
18
|
{
|
|
18
19
|
"text": "Simple list",
|
|
19
20
|
"iconName": "",
|
|
20
|
-
"url": "
|
|
21
|
-
"alternativeColor":
|
|
21
|
+
"url": "https://www.wired.html",
|
|
22
|
+
"alternativeColor": false,
|
|
22
23
|
"mobileOnly": false,
|
|
24
|
+
"currentPage": false,
|
|
23
25
|
"hideLabel": false,
|
|
24
26
|
"target": "_blank",
|
|
25
27
|
"dropdownOptions": {
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
28
|
+
"hasNoLink": false,
|
|
29
|
+
"alternativeText": "",
|
|
30
|
+
"description": "",
|
|
31
|
+
"viewAllHref": ""
|
|
29
32
|
},
|
|
30
33
|
"navigationItems": [
|
|
31
34
|
{
|
|
32
35
|
"text": "Find your reason",
|
|
33
36
|
"description": "",
|
|
34
37
|
"url": "index.html",
|
|
35
|
-
"mobileOnly":
|
|
36
|
-
"target": ""
|
|
38
|
+
"mobileOnly": false,
|
|
39
|
+
"target": "",
|
|
40
|
+
"isHTML": false,
|
|
41
|
+
"htmlContent": ""
|
|
37
42
|
},
|
|
38
43
|
{
|
|
39
44
|
"text": "Quit stories",
|
|
40
45
|
"description": "",
|
|
41
46
|
"url": "index.html",
|
|
42
47
|
"mobileOnly": false,
|
|
43
|
-
"target": ""
|
|
48
|
+
"target": "",
|
|
49
|
+
"isHTML": false,
|
|
50
|
+
"htmlContent": ""
|
|
44
51
|
},
|
|
45
52
|
{
|
|
46
53
|
"text": "Vaping (e-cigarettes)",
|
|
47
54
|
"description": "",
|
|
48
55
|
"url": "index.html",
|
|
49
56
|
"mobileOnly": false,
|
|
50
|
-
"target": ""
|
|
57
|
+
"target": "",
|
|
58
|
+
"isHTML": false,
|
|
59
|
+
"htmlContent": ""
|
|
51
60
|
},
|
|
52
61
|
{
|
|
53
62
|
"text": "Choose your method",
|
|
54
63
|
"description": "",
|
|
55
64
|
"url": "index.html",
|
|
56
65
|
"mobileOnly": false,
|
|
57
|
-
"target": ""
|
|
66
|
+
"target": "",
|
|
67
|
+
"isHTML": false,
|
|
68
|
+
"htmlContent": ""
|
|
58
69
|
},
|
|
59
70
|
{
|
|
60
71
|
"text": "Pregnancy and smoking",
|
|
61
72
|
"description": "",
|
|
62
73
|
"url": "index.html",
|
|
63
74
|
"mobileOnly": false,
|
|
64
|
-
"target": ""
|
|
75
|
+
"target": "",
|
|
76
|
+
"isHTML": false,
|
|
77
|
+
"htmlContent": ""
|
|
65
78
|
},
|
|
66
79
|
{
|
|
67
80
|
"text": "Sign up for our support program",
|
|
68
81
|
"description": "",
|
|
69
82
|
"url": "index.html",
|
|
70
83
|
"mobileOnly": false,
|
|
71
|
-
"target": ""
|
|
84
|
+
"target": "",
|
|
85
|
+
"isHTML": false,
|
|
86
|
+
"htmlContent": ""
|
|
72
87
|
},
|
|
73
88
|
{
|
|
74
89
|
"text": "Plan your journey",
|
|
75
90
|
"description": "",
|
|
76
91
|
"url": "index.html",
|
|
77
92
|
"mobileOnly": false,
|
|
78
|
-
"target": ""
|
|
93
|
+
"target": "",
|
|
94
|
+
"isHTML": false,
|
|
95
|
+
"htmlContent": ""
|
|
79
96
|
}
|
|
80
97
|
]
|
|
81
98
|
},
|
|
@@ -83,11 +100,13 @@
|
|
|
83
100
|
"text": "Mega menu",
|
|
84
101
|
"iconName": "qld-icon-calendar",
|
|
85
102
|
"url": "https://example.com",
|
|
86
|
-
"alternativeColor":
|
|
103
|
+
"alternativeColor": false,
|
|
87
104
|
"mobileOnly": false,
|
|
105
|
+
"currentPage": false,
|
|
88
106
|
"hideLabel": false,
|
|
89
107
|
"target": "",
|
|
90
108
|
"dropdownOptions": {
|
|
109
|
+
"hasNoLink": true,
|
|
91
110
|
"alternativeText": "Mega menu alt title",
|
|
92
111
|
"description": "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa.",
|
|
93
112
|
"viewAllHref": "index.html"
|
|
@@ -98,56 +117,72 @@
|
|
|
98
117
|
"description": "One of the best motivations for quitting is having a clear reason in mind so you know exactly why you’re doing it in the first place.",
|
|
99
118
|
"url": "index.html",
|
|
100
119
|
"mobileOnly": false,
|
|
101
|
-
"target": ""
|
|
120
|
+
"target": "",
|
|
121
|
+
"isHTML": false,
|
|
122
|
+
"htmlContent": ""
|
|
102
123
|
},
|
|
103
124
|
{
|
|
104
125
|
"text": "Aboriginal and Torres Strait Islander support",
|
|
105
126
|
"description": "Be encouraged and motivated by listening to stories of others who've quit smoking for life.",
|
|
106
127
|
"url": "index.html",
|
|
107
128
|
"mobileOnly": false,
|
|
108
|
-
"target": ""
|
|
129
|
+
"target": "",
|
|
130
|
+
"isHTML": false,
|
|
131
|
+
"htmlContent": ""
|
|
109
132
|
},
|
|
110
133
|
{
|
|
111
134
|
"text": "Your healthcare rights and responsibilities",
|
|
112
135
|
"description": "Vaping products are also known as e-cigarettes, e-cigars, vape pens or personal vapourisers. Vapes are harmful. The safest option is to not vape at all.",
|
|
113
136
|
"url": "index.html",
|
|
114
137
|
"mobileOnly": false,
|
|
115
|
-
"target": ""
|
|
138
|
+
"target": "",
|
|
139
|
+
"isHTML": false,
|
|
140
|
+
"htmlContent": ""
|
|
116
141
|
},
|
|
117
142
|
{
|
|
118
143
|
"text": "Going to hospital",
|
|
119
144
|
"description": "There are plenty of ways to quit smoking cigarettes and vapes. Find one that suits you best and commit to it.",
|
|
120
145
|
"url": "index.html",
|
|
121
146
|
"mobileOnly": false,
|
|
122
|
-
"target": ""
|
|
147
|
+
"target": "",
|
|
148
|
+
"isHTML": false,
|
|
149
|
+
"htmlContent": ""
|
|
123
150
|
},
|
|
124
151
|
{
|
|
125
152
|
"text": "Interpreter services",
|
|
126
153
|
"description": "Whether you’re thinking about getting pregnant, you're pregnant or have recently given birth, quitting smoking or vaping is the best thing you can do for the health of you and your baby.",
|
|
127
154
|
"url": "index.html",
|
|
128
155
|
"mobileOnly": false,
|
|
129
|
-
"target": ""
|
|
156
|
+
"target": "",
|
|
157
|
+
"isHTML": false,
|
|
158
|
+
"htmlContent": ""
|
|
130
159
|
},
|
|
131
160
|
{
|
|
132
161
|
"text": "Health costs, insurance and financial support",
|
|
133
162
|
"description": "Sign up for My Quit Journey to support you to stop smoking.",
|
|
134
163
|
"url": "index.html",
|
|
135
164
|
"mobileOnly": false,
|
|
136
|
-
"target": ""
|
|
165
|
+
"target": "",
|
|
166
|
+
"isHTML": false,
|
|
167
|
+
"htmlContent": ""
|
|
137
168
|
},
|
|
138
169
|
{
|
|
139
170
|
"text": "Leaving hospital",
|
|
140
171
|
"description": "Congratulations on taking the first step in your journey and deciding to make one of the best choices of your life.",
|
|
141
172
|
"url": "index.html",
|
|
142
173
|
"mobileOnly": false,
|
|
143
|
-
"target": ""
|
|
174
|
+
"target": "",
|
|
175
|
+
"isHTML": false,
|
|
176
|
+
"htmlContent": ""
|
|
144
177
|
},
|
|
145
178
|
{
|
|
146
179
|
"text": "Your health record",
|
|
147
180
|
"description": "Congratulations on taking the first step in your journey and deciding to make one of the best choices of your life.",
|
|
148
181
|
"url": "index.html",
|
|
149
182
|
"mobileOnly": false,
|
|
150
|
-
"target": ""
|
|
183
|
+
"target": "",
|
|
184
|
+
"isHTML": false,
|
|
185
|
+
"htmlContent": ""
|
|
151
186
|
}
|
|
152
187
|
]
|
|
153
188
|
},
|
|
@@ -157,6 +192,7 @@
|
|
|
157
192
|
"url": "/iframe.html?viewMode=story&id=3-components-navbar--default",
|
|
158
193
|
"alternativeColor": false,
|
|
159
194
|
"mobileOnly": false,
|
|
195
|
+
"currentPage": false,
|
|
160
196
|
"hideLabel": false,
|
|
161
197
|
"target": ""
|
|
162
198
|
},
|
|
@@ -166,24 +202,54 @@
|
|
|
166
202
|
"url": "/?path=/docs/3-components-navbar--overview",
|
|
167
203
|
"alternativeColor": false,
|
|
168
204
|
"mobileOnly": false,
|
|
205
|
+
"currentPage": false,
|
|
169
206
|
"hideLabel": false,
|
|
170
207
|
"target": ""
|
|
171
208
|
},
|
|
172
209
|
{
|
|
173
|
-
"text": "
|
|
210
|
+
"text": "Full screen view 2",
|
|
174
211
|
"iconName": "",
|
|
175
212
|
"url": "index.html",
|
|
176
|
-
"alternativeColor":
|
|
213
|
+
"alternativeColor": true,
|
|
177
214
|
"mobileOnly": true,
|
|
215
|
+
"currentPage": false,
|
|
178
216
|
"hideLabel": false,
|
|
179
217
|
"target": ""
|
|
180
218
|
},
|
|
219
|
+
{
|
|
220
|
+
"text": "Login",
|
|
221
|
+
"iconName": "qld-icon-login",
|
|
222
|
+
"url": "",
|
|
223
|
+
"alternativeColor": true,
|
|
224
|
+
"mobileOnly": true,
|
|
225
|
+
"currentPage": false,
|
|
226
|
+
"hideLabel": false,
|
|
227
|
+
"target": "",
|
|
228
|
+
"dropdownOptions": {
|
|
229
|
+
"hasNoLink": true,
|
|
230
|
+
"alternativeText": "",
|
|
231
|
+
"description": "",
|
|
232
|
+
"viewAllHref": ""
|
|
233
|
+
},
|
|
234
|
+
"navigationItems": [
|
|
235
|
+
{
|
|
236
|
+
"text": "",
|
|
237
|
+
"description": "",
|
|
238
|
+
"url": "",
|
|
239
|
+
"mobileOnly": true,
|
|
240
|
+
"target": "",
|
|
241
|
+
"isHTML": true,
|
|
242
|
+
"htmlContent": "<div class='someClass'><h4 class='mt-2 mb-3'>Log in to For government</h4><p>Most employees can log in using single sign on (SSO).</p><div class='someClass'><a class='btn btn-secondary justify-content-center' href='/someLink'>Log in with single sign-on</a><div class='group'><a class='mt-2 qld__header__cta-group-list' href='/somelink'>If your agency doesn't use SSO.</a></div></div><hr><h4 class='mt-2 mb-3'>Select your agency</h4><p>See information relevant to your agency.</p></div>"
|
|
243
|
+
}
|
|
244
|
+
]
|
|
245
|
+
},
|
|
181
246
|
{
|
|
182
247
|
"text": "Mobile only with icon",
|
|
183
248
|
"iconName": "qld-icon-chart",
|
|
184
249
|
"url": "index.html",
|
|
185
|
-
"alternativeColor":
|
|
250
|
+
"alternativeColor": true,
|
|
186
251
|
"mobileOnly": true,
|
|
252
|
+
"currentPage": false,
|
|
187
253
|
"hideLabel": false,
|
|
188
254
|
"target": ""
|
|
189
255
|
}
|
|
@@ -26,6 +26,10 @@ export function initializeNavbar() {
|
|
|
26
26
|
// Toggle dropdown functionality based on screen size
|
|
27
27
|
dropdownToggles.forEach((toggle) => {
|
|
28
28
|
if (isMobile) {
|
|
29
|
+
// Skip toggle items with hasNoLink class
|
|
30
|
+
if (toggle.classList.contains("hasNoLink")) {
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
29
33
|
toggle.classList.replace("dropdown-toggle", "no-dropdown-toggle");
|
|
30
34
|
toggle.removeAttribute("data-bs-toggle");
|
|
31
35
|
} else {
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
<ul class="navbar-nav">
|
|
13
13
|
{{#each navigation}}
|
|
14
14
|
{{#if navigationItems}}
|
|
15
|
-
<li class="nav-item dropdown{{#if
|
|
16
|
-
<a class="nav-link{{#unless ../metadata.verticalOrientation}} dropdown-toggle{{/unless}}" aria-current="page" href="{{url}}"{{#if target}} target="{{target}}"{{/if}}{{#ifCond target '==' '_blank'}} rel="noopener noreferrer"{{/ifCond}} role="button" data-bs-toggle="dropdown"
|
|
15
|
+
<li class="nav-item dropdown{{#if alternativeColor}} alt{{/if}}{{#if mobileOnly}} mobile-only{{/if}}">
|
|
16
|
+
<a class="nav-link{{#unless ../metadata.verticalOrientation}} dropdown-toggle{{/unless}}{{#if currentPage}} active{{/if}}{{#if dropdownOptions.hasNoLink}} hasNoLink{{/if}}" {{#if currentPage}}aria-current="page"{{/if}}{{#if dropdownOptions.hasNoLink}} href="#"{{else}} href="{{url}}"{{/if}}{{#if target}} target="{{target}}"{{/if}}{{#ifCond target '==' '_blank'}} rel="noopener noreferrer"{{/ifCond}} role="button" data-bs-toggle="dropdown"
|
|
17
17
|
aria-expanded="false">
|
|
18
18
|
{{#if iconName}}
|
|
19
19
|
<span class="qld-icon qld-icon-md {{iconName}}" aria-hidden="true"></span>
|
|
@@ -26,22 +26,29 @@
|
|
|
26
26
|
{{text}}
|
|
27
27
|
{{/if}}
|
|
28
28
|
</a>
|
|
29
|
-
<button class="nav-link dropdown-toggle" aria-current="page"
|
|
29
|
+
<button class="nav-link dropdown-toggle"{{#if currentPage}} aria-current="page"{{/if}} data-bs-toggle="dropdown" aria-expanded="false" aria-selected="false" aria-label="Toggle navigation">
|
|
30
30
|
<span class="visually-hidden">Expand</span>
|
|
31
31
|
</button>
|
|
32
32
|
<ul class="dropdown-menu">
|
|
33
|
-
|
|
34
|
-
<
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
33
|
+
{{#unless dropdownOptions.hasNoLink}}
|
|
34
|
+
<li>
|
|
35
|
+
<a class="dropdown-item parent-link" role="button"{{#if currentPage}} aria-current="page"{{/if}}{{#if target}} target="{{target}}"{{/if}}{{#ifCond target '==' '_blank'}} rel="noopener noreferrer"{{/ifCond}}>{{#if dropdownOptions.alternativeText}}{{dropdownOptions.alternativeText}}{{else}}{{text}}{{/if}}</a>
|
|
36
|
+
{{#if dropdownOptions.description}}
|
|
37
|
+
<p>{{dropdownOptions.description}}</p>
|
|
38
|
+
{{/if}}
|
|
39
|
+
</li>
|
|
40
|
+
{{/unless}}
|
|
39
41
|
{{#each navigationItems}}
|
|
40
42
|
<li{{#if mobileOnly}} class="mobile-only"{{/if}}>
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
<p>{{description}}</p>
|
|
43
|
+
{{#if isHTML}}
|
|
44
|
+
{{{htmlContent}}}
|
|
44
45
|
{{/if}}
|
|
46
|
+
{{#unless isHTML}}
|
|
47
|
+
<a class="dropdown-item" href="{{url}}"{{#if target}} target="{{target}}"{{/if}}{{#ifCond target '==' '_blank'}} rel="noopener noreferrer"{{/ifCond}}>{{text}}</a>
|
|
48
|
+
{{#if description}}
|
|
49
|
+
<p>{{description}}</p>
|
|
50
|
+
{{/if}}
|
|
51
|
+
{{/unless}}
|
|
45
52
|
</li>
|
|
46
53
|
{{/each}}
|
|
47
54
|
{{#if dropdownOptions.viewAllHref}}
|
|
@@ -52,8 +59,8 @@
|
|
|
52
59
|
</ul>
|
|
53
60
|
</li>
|
|
54
61
|
{{else}}
|
|
55
|
-
<li class="nav-item{{#if
|
|
56
|
-
<a class="nav-link" aria-current="page" href="{{url}}"{{#if target}} target="{{target}}"{{/if}}{{#ifCond target '==' '_blank'}} rel="noopener noreferrer"{{/ifCond}}>
|
|
62
|
+
<li class="nav-item{{#if alternativeColor}} alt{{/if}}{{#if mobileOnly}} mobile-only{{/if}}">
|
|
63
|
+
<a class="nav-link{{#if currentPage}} active{{/if}}"{{#if currentPage}} aria-current="page"{{/if}} href="{{url}}"{{#if target}} target="{{target}}"{{/if}}{{#ifCond target '==' '_blank'}} rel="noopener noreferrer"{{/ifCond}}>
|
|
57
64
|
{{#if iconName}}
|
|
58
65
|
<span class="qld-icon qld-icon-md {{iconName}}" aria-hidden="true"></span>
|
|
59
66
|
{{#if hideLabel}}
|