@qld-gov-au/qgds-bootstrap5 1.1.33 → 1.1.35

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 (51) hide show
  1. package/.storybook/preview.js +15 -6
  2. package/README.md +88 -53
  3. package/dist/README.md +88 -53
  4. package/dist/assets/components/bs5/card/card.hbs +10 -1
  5. package/dist/assets/components/bs5/head/head.hbs +1 -1
  6. package/dist/assets/components/bs5/navbar/navbar.hbs +2 -2
  7. package/dist/assets/components/bs5/promotionalPanel/promotionalPanel.hbs +12 -14
  8. package/dist/assets/components/bs5/tabs/tabs.hbs +4 -5
  9. package/dist/assets/components/bs5/video/video.hbs +6 -18
  10. package/dist/assets/css/qld.bootstrap.css +1 -1
  11. package/dist/assets/css/qld.bootstrap.css.map +3 -3
  12. package/dist/assets/js/handlebars.init.min.js +39 -45
  13. package/dist/assets/js/handlebars.init.min.js.map +2 -2
  14. package/dist/assets/js/qld.bootstrap.min.js +5 -5
  15. package/dist/assets/js/qld.bootstrap.min.js.map +3 -3
  16. package/dist/assets/node/handlebars.init.min.js +34 -40
  17. package/dist/assets/node/handlebars.init.min.js.map +2 -2
  18. package/dist/components/bs5/card/card.hbs +10 -1
  19. package/dist/components/bs5/head/head.hbs +1 -1
  20. package/dist/components/bs5/navbar/navbar.hbs +2 -2
  21. package/dist/components/bs5/promotionalPanel/promotionalPanel.hbs +12 -14
  22. package/dist/components/bs5/tabs/tabs.hbs +4 -5
  23. package/dist/components/bs5/video/video.hbs +6 -18
  24. package/dist/package.json +6 -2
  25. package/dist/sample-data/tabs/tabs.data.json +2 -2
  26. package/package.json +6 -2
  27. package/src/components/bs5/accordion/__snapshots__/accordion.test.js.snap +55 -0
  28. package/src/components/bs5/accordion/accordion.scss +16 -3
  29. package/src/components/bs5/accordion/accordion.test.js +118 -0
  30. package/src/components/bs5/card/card--multi-action.stories.js +36 -21
  31. package/src/components/bs5/card/card--no-action.stories.js +33 -18
  32. package/src/components/bs5/card/card--single-action.stories.js +27 -17
  33. package/src/components/bs5/card/card.hbs +10 -1
  34. package/src/components/bs5/card/card.scss +145 -153
  35. package/src/components/bs5/linkColumns/linkColumns.scss +4 -0
  36. package/src/components/bs5/linkColumns/linkColumns.stories.js +2 -0
  37. package/src/components/bs5/navbar/navbar.functions.js +14 -0
  38. package/src/components/bs5/navbar/navbar.hbs +2 -2
  39. package/src/components/bs5/promotionalPanel/promotionalPanel.hbs +12 -14
  40. package/src/components/bs5/promotionalPanel/promotionalPanel.scss +75 -59
  41. package/src/components/bs5/tabs/tabs.data.json +2 -2
  42. package/src/components/bs5/tabs/tabs.hbs +4 -5
  43. package/src/components/bs5/tabs/tabs.scss +50 -29
  44. package/src/components/bs5/tabs/tabs.stories.js +18 -18
  45. package/src/components/bs5/typography/typography.scss +1 -1
  46. package/src/components/bs5/video/video.hbs +6 -18
  47. package/src/components/bs5/video/video.scss +6 -4
  48. package/src/css/mixins/_index.scss +1 -0
  49. package/src/css/mixins/generate-color-vars.scss +9 -0
  50. package/src/css/qld-variables.scss +40 -32
  51. package/src/js/testingutils.js +23 -0
@@ -84,6 +84,7 @@ const preview = {
84
84
  // Optional configuration for the a11y addon
85
85
  config: {},
86
86
  options: {
87
+ runOnly: ['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa', 'best-practice'],
87
88
  checks: { "color-contrast": { options: { noScroll: true } } },
88
89
  restoreScroll: true,
89
90
  },
@@ -102,13 +103,21 @@ const preview = {
102
103
  },
103
104
  defaultTheme: "None",
104
105
  }),
105
- (Story) => {
106
+ (Story, { parameters }) => {
106
107
  init(Handlebars);
107
- return `
108
-
109
- ${Story()}
110
-
111
- `;
108
+ const { pageLayout, wrapperClasses} = parameters;
109
+ switch (pageLayout) {
110
+ case 'with-wrapper':
111
+ return `
112
+ <div class="${wrapperClasses}">
113
+ ${Story()}
114
+ </div>
115
+ `;
116
+ default:
117
+ return `
118
+ ${Story()}
119
+ `;
120
+ }
112
121
  },
113
122
  ],
114
123
 
package/README.md CHANGED
@@ -1,4 +1,5 @@
1
1
  # Queensland Government Design System - Bootstrap 5 - Edition
2
+
2
3
  A Queensland Online - Design System development space
3
4
 
4
5
  Please see [For Gov - Queensland Government Design System](https://www.forgov.qld.gov.au/information-and-communication-technology/communication-and-publishing/website-and-digital-publishing/website-standards-guidelines-and-templates/queensland-government-design-system) for more details.
@@ -7,13 +8,13 @@ This is a BS5 flavour based on [QGDS Figma Design](https://www.figma.com/design/
7
8
  Qld Health edition can be found at [design-system.health.qld.gov.au](https://www.design-system.health.qld.gov.au/).
8
9
 
9
10
  This includes:
11
+
10
12
  - Public NPM Release packages:
11
13
  - https://www.npmjs.com/package/@qld-gov-au/qgds-bootstrap5
12
14
  - https://github.com/qld-gov-au/qgds-bootstrap5/pkgs/npm/qgds-bootstrap5
13
15
  - Squiz Git bridge dist/binary repo: https://github.com/qld-gov-au/qgds-bootstrap5-release
14
16
  - Git CDN repo: https://github.com/qld-gov-au/qgds-bootstrap5-cdn
15
17
 
16
-
17
18
  ## Technical overview
18
19
 
19
20
  - ES6 Javascript
@@ -24,36 +25,38 @@ This includes:
24
25
  - CSS/SCSS, extending Bootstrap 5.3 core components with custom CSS properties
25
26
  - NPM for package management
26
27
 
27
-
28
28
  ## Documentation
29
29
 
30
30
  - Storybook examples available at [https://qld-gov-au.github.io/qgds-bootstrap5/](https://qld-gov-au.github.io/qgds-bootstrap5/)
31
31
 
32
-
33
32
  ## Development Getting started
34
33
 
35
34
  ### Personal Development
36
- This repo is designed to allow easy forking. <br/>
37
- Do enable GitHub Actions post forking and GitHub pages via GitHub actions <br/>
35
+
36
+ This repo is designed to allow easy forking. <br/>
37
+ Do enable GitHub Actions post forking and GitHub pages via GitHub actions <br/>
38
38
  Also do configure your own personal chromatic to ease development in providing delta change diff-ing.
39
39
 
40
40
  We welcome external contributors, so don't be afraid to raise PR's back to this repo for inclusion into core deployment + cdn repo.
41
41
 
42
42
  ### GitHub Actions
43
+
43
44
  This repo includes many workflows to reduce developer overheads. This includes but not limited to:
44
- * CICD on all commit's and PR's
45
- * GitHub io static document deployment based on develop/main
46
- * Dependabot auto patching + storybook upgrade feature
47
- * One click npm versioning publish (patch, minor, major) **
48
- * Auto generate release notes based on PR's created (On version Tag)
49
- * Npm js package publish (On version Tag) ***
50
- * GitHub package Publish (On version Tag) ****
51
-
52
- ** Must configure GitHub service account ssh private key loaded into GitHub actions secret ``DEPLOY_KEY``<br/>
53
- *** Must have npm js token loaded into GitHub actions secrets ``NPM_TOKEN`` to allow publishing.<br/>
54
- **** Switch's @qld-gov-au with forked username (lowercase) and publish to your account see .github/workflows/githubPackage.yml step ``Update package scope, export package name``.
45
+
46
+ - CICD on all commit's and PR's
47
+ - GitHub io static document deployment based on develop/main
48
+ - Dependabot auto patching + storybook upgrade feature
49
+ - One click npm versioning publish (patch, minor, major) **
50
+ - Auto generate release notes based on PR's created (On version Tag)
51
+ - Npm js package publish (On version Tag) ***
52
+ - GitHub package Publish (On version Tag) ****
53
+
54
+ ** Must configure GitHub service account ssh private key loaded into GitHub actions secret `DEPLOY_KEY` <br>
55
+ *** Must have npm js token loaded into GitHub actions secrets `NPM_TOKEN` to allow publishing. <br>
56
+ **** Switch's @qld-gov-au with forked username (lowercase) and publish to your account see .github/workflows/githubPackage.yml step `Update package scope, export package name`.
55
57
 
56
58
  ### Quick build
59
+
57
60
  If you hava java and maven installed. This will pull in a local node/npm version and run through the full lifecycle build.
58
61
 
59
62
  ```bash
@@ -63,59 +66,80 @@ mvn install
63
66
  ```
64
67
 
65
68
  ### Standard build
69
+
66
70
  1. Download
67
-
68
- ```bash
69
- git clone https://github.com/qld-gov-au/qgds-bootstrap5
70
- ```
71
+
72
+ ```bash
73
+ git clone https://github.com/qld-gov-au/qgds-bootstrap5
74
+ ```
71
75
 
72
76
  2. Setup
73
77
 
74
78
  Prerequisites
79
+
75
80
  - Node 18.17.1+
76
81
  - NPM 10.2.5+
77
82
 
78
83
  3. Install dependencies
79
-
80
- ```bash
81
- npm install
82
- ```
84
+
85
+ ```bash
86
+ npm install
87
+ ```
83
88
 
84
89
  4. Build the Design System CSS, Components and templates
85
-
86
- ```bash
87
- npm run build
88
- ```
89
-
90
- 6. Start Watch and Storybook for component development
91
-
92
- ```bash
93
- npm run dev-storybook
94
- ```
95
- Alt:
96
- ```bash
97
- npm run watch
98
- npm run storybook
99
- ```
100
-
101
- 7. Lint
90
+
91
+ ```bash
92
+ npm run build
93
+ ```
94
+
95
+ 5. Start Watch and Storybook for component development
96
+
97
+ ```bash
98
+ npm run dev-storybook
99
+ ```
100
+
101
+ Alt:
102
+
103
+ ```bash
104
+ npm run watch
105
+ npm run storybook
106
+ ```
107
+
108
+ 6. Lint
102
109
  ```bash
103
110
  npm run lint
104
111
  ```
105
112
 
106
- * Static view, start a local server from /dist folder
107
-
108
- ```bash
109
- npm run serve
110
- ```
113
+ - Static view, start a local server from /dist folder
114
+
115
+ ```bash
116
+ npm run serve
117
+ ```
118
+
119
+ - Next steps
120
+
121
+ - HTML templating using drop in components
122
+
123
+ If you wish to use the includes handle bars, please ensure
124
+ "handlebars": "4.7.8" + is loaded prior to running handlebars.helpers.bundle.js
111
125
 
112
- * Next steps
126
+ - Dev build and testing branching
113
127
 
114
- - HTML templating using drop in components
115
-
116
- If you wish to use the includes handle bars, please ensure
117
- "handlebars": "4.7.8" + is loaded prior to running handlebars.helpers.bundle.js
118
- - Dev build and testing branching
128
+ ### Unit Tests
129
+
130
+ In addition to manual testing via storybook, unit tests may be created and run via `vitest`.
131
+
132
+ ```
133
+ npm run test
134
+ ```
135
+
136
+ or use the browser based ui
137
+
138
+ ```
139
+ npm run test:ui
140
+ ```
141
+
142
+ See `src/components/bs5/accordion/accordion.test.js` for example unit test including snapshot and interaction tests with JSDOM.
119
143
 
120
144
  ### IDE Development suggestions
121
145
 
@@ -125,4 +149,15 @@ We recommend using VSCode as the IDE for development with the following plugins:
125
149
  - ESLint
126
150
  - Mustache JS or Handlebars JS template support
127
151
 
128
- Webstorm also works.
152
+ Webstorm also works.
153
+
154
+
155
+ ### Accessibility
156
+
157
+ We are committed to making this project accessible and inclusive for all users.
158
+
159
+ This project is tested against the Web Content Accessibility Guidelines (WCAG) 2.1 at Level AA to ensure it meets a high standard of accessibility.
160
+
161
+ We follow the Queensland Government’s digital accessibility requirements to provide equal access to information, services, and opportunities for everyone.
162
+
163
+ If you encounter any accessibility issues or have suggestions for improvement, please feel free to raise an issue or contact the project team.
package/dist/README.md CHANGED
@@ -1,4 +1,5 @@
1
1
  # Queensland Government Design System - Bootstrap 5 - Edition
2
+
2
3
  A Queensland Online - Design System development space
3
4
 
4
5
  Please see [For Gov - Queensland Government Design System](https://www.forgov.qld.gov.au/information-and-communication-technology/communication-and-publishing/website-and-digital-publishing/website-standards-guidelines-and-templates/queensland-government-design-system) for more details.
@@ -7,13 +8,13 @@ This is a BS5 flavour based on [QGDS Figma Design](https://www.figma.com/design/
7
8
  Qld Health edition can be found at [design-system.health.qld.gov.au](https://www.design-system.health.qld.gov.au/).
8
9
 
9
10
  This includes:
11
+
10
12
  - Public NPM Release packages:
11
13
  - https://www.npmjs.com/package/@qld-gov-au/qgds-bootstrap5
12
14
  - https://github.com/qld-gov-au/qgds-bootstrap5/pkgs/npm/qgds-bootstrap5
13
15
  - Squiz Git bridge dist/binary repo: https://github.com/qld-gov-au/qgds-bootstrap5-release
14
16
  - Git CDN repo: https://github.com/qld-gov-au/qgds-bootstrap5-cdn
15
17
 
16
-
17
18
  ## Technical overview
18
19
 
19
20
  - ES6 Javascript
@@ -24,36 +25,38 @@ This includes:
24
25
  - CSS/SCSS, extending Bootstrap 5.3 core components with custom CSS properties
25
26
  - NPM for package management
26
27
 
27
-
28
28
  ## Documentation
29
29
 
30
30
  - Storybook examples available at [https://qld-gov-au.github.io/qgds-bootstrap5/](https://qld-gov-au.github.io/qgds-bootstrap5/)
31
31
 
32
-
33
32
  ## Development Getting started
34
33
 
35
34
  ### Personal Development
36
- This repo is designed to allow easy forking. <br/>
37
- Do enable GitHub Actions post forking and GitHub pages via GitHub actions <br/>
35
+
36
+ This repo is designed to allow easy forking. <br/>
37
+ Do enable GitHub Actions post forking and GitHub pages via GitHub actions <br/>
38
38
  Also do configure your own personal chromatic to ease development in providing delta change diff-ing.
39
39
 
40
40
  We welcome external contributors, so don't be afraid to raise PR's back to this repo for inclusion into core deployment + cdn repo.
41
41
 
42
42
  ### GitHub Actions
43
+
43
44
  This repo includes many workflows to reduce developer overheads. This includes but not limited to:
44
- * CICD on all commit's and PR's
45
- * GitHub io static document deployment based on develop/main
46
- * Dependabot auto patching + storybook upgrade feature
47
- * One click npm versioning publish (patch, minor, major) **
48
- * Auto generate release notes based on PR's created (On version Tag)
49
- * Npm js package publish (On version Tag) ***
50
- * GitHub package Publish (On version Tag) ****
51
-
52
- ** Must configure GitHub service account ssh private key loaded into GitHub actions secret ``DEPLOY_KEY``<br/>
53
- *** Must have npm js token loaded into GitHub actions secrets ``NPM_TOKEN`` to allow publishing.<br/>
54
- **** Switch's @qld-gov-au with forked username (lowercase) and publish to your account see .github/workflows/githubPackage.yml step ``Update package scope, export package name``.
45
+
46
+ - CICD on all commit's and PR's
47
+ - GitHub io static document deployment based on develop/main
48
+ - Dependabot auto patching + storybook upgrade feature
49
+ - One click npm versioning publish (patch, minor, major) **
50
+ - Auto generate release notes based on PR's created (On version Tag)
51
+ - Npm js package publish (On version Tag) ***
52
+ - GitHub package Publish (On version Tag) ****
53
+
54
+ ** Must configure GitHub service account ssh private key loaded into GitHub actions secret `DEPLOY_KEY` <br>
55
+ *** Must have npm js token loaded into GitHub actions secrets `NPM_TOKEN` to allow publishing. <br>
56
+ **** Switch's @qld-gov-au with forked username (lowercase) and publish to your account see .github/workflows/githubPackage.yml step `Update package scope, export package name`.
55
57
 
56
58
  ### Quick build
59
+
57
60
  If you hava java and maven installed. This will pull in a local node/npm version and run through the full lifecycle build.
58
61
 
59
62
  ```bash
@@ -63,59 +66,80 @@ mvn install
63
66
  ```
64
67
 
65
68
  ### Standard build
69
+
66
70
  1. Download
67
-
68
- ```bash
69
- git clone https://github.com/qld-gov-au/qgds-bootstrap5
70
- ```
71
+
72
+ ```bash
73
+ git clone https://github.com/qld-gov-au/qgds-bootstrap5
74
+ ```
71
75
 
72
76
  2. Setup
73
77
 
74
78
  Prerequisites
79
+
75
80
  - Node 18.17.1+
76
81
  - NPM 10.2.5+
77
82
 
78
83
  3. Install dependencies
79
-
80
- ```bash
81
- npm install
82
- ```
84
+
85
+ ```bash
86
+ npm install
87
+ ```
83
88
 
84
89
  4. Build the Design System CSS, Components and templates
85
-
86
- ```bash
87
- npm run build
88
- ```
89
-
90
- 6. Start Watch and Storybook for component development
91
-
92
- ```bash
93
- npm run dev-storybook
94
- ```
95
- Alt:
96
- ```bash
97
- npm run watch
98
- npm run storybook
99
- ```
100
-
101
- 7. Lint
90
+
91
+ ```bash
92
+ npm run build
93
+ ```
94
+
95
+ 5. Start Watch and Storybook for component development
96
+
97
+ ```bash
98
+ npm run dev-storybook
99
+ ```
100
+
101
+ Alt:
102
+
103
+ ```bash
104
+ npm run watch
105
+ npm run storybook
106
+ ```
107
+
108
+ 6. Lint
102
109
  ```bash
103
110
  npm run lint
104
111
  ```
105
112
 
106
- * Static view, start a local server from /dist folder
107
-
108
- ```bash
109
- npm run serve
110
- ```
113
+ - Static view, start a local server from /dist folder
114
+
115
+ ```bash
116
+ npm run serve
117
+ ```
118
+
119
+ - Next steps
120
+
121
+ - HTML templating using drop in components
122
+
123
+ If you wish to use the includes handle bars, please ensure
124
+ "handlebars": "4.7.8" + is loaded prior to running handlebars.helpers.bundle.js
111
125
 
112
- * Next steps
126
+ - Dev build and testing branching
113
127
 
114
- - HTML templating using drop in components
115
-
116
- If you wish to use the includes handle bars, please ensure
117
- "handlebars": "4.7.8" + is loaded prior to running handlebars.helpers.bundle.js
118
- - Dev build and testing branching
128
+ ### Unit Tests
129
+
130
+ In addition to manual testing via storybook, unit tests may be created and run via `vitest`.
131
+
132
+ ```
133
+ npm run test
134
+ ```
135
+
136
+ or use the browser based ui
137
+
138
+ ```
139
+ npm run test:ui
140
+ ```
141
+
142
+ See `src/components/bs5/accordion/accordion.test.js` for example unit test including snapshot and interaction tests with JSDOM.
119
143
 
120
144
  ### IDE Development suggestions
121
145
 
@@ -125,4 +149,15 @@ We recommend using VSCode as the IDE for development with the following plugins:
125
149
  - ESLint
126
150
  - Mustache JS or Handlebars JS template support
127
151
 
128
- Webstorm also works.
152
+ Webstorm also works.
153
+
154
+
155
+ ### Accessibility
156
+
157
+ We are committed to making this project accessible and inclusive for all users.
158
+
159
+ This project is tested against the Web Content Accessibility Guidelines (WCAG) 2.1 at Level AA to ensure it meets a high standard of accessibility.
160
+
161
+ We follow the Queensland Government’s digital accessibility requirements to provide equal access to information, services, and opportunities for everyone.
162
+
163
+ If you encounter any accessibility issues or have suggestions for improvement, please feel free to raise an issue or contact the project team.
@@ -24,7 +24,16 @@
24
24
  {{/if}}
25
25
 
26
26
  {{#if iconClasses}}
27
- <div class="card-icon {{iconPosition}} {{iconClasses}}"></div>
27
+ {{#ifCond iconPosition '==' 'icon-top'}}
28
+ <div class="card-icon-background">
29
+ <span class="qld-icon qld-icon-xxl {{iconClasses}} {{iconPosition}}" aria-hidden="true"></span>
30
+ </div>
31
+ {{/ifCond}}
32
+ {{#ifCond iconPosition '==' 'icon-left'}}
33
+ <div class="card-icon-background">
34
+ <span class="qld-icon qld-icon-lg {{iconClasses}} {{iconPosition}}" aria-hidden="true"></span>
35
+ </div>
36
+ {{/ifCond}}
28
37
  {{/if}}
29
38
 
30
39
  {{#if feature}}<div class="card-inner">{{/if}}
@@ -1,5 +1,5 @@
1
1
 
2
- <!-- VERSION_DETAILS={"project_id":"@qld-gov-au/qgds-bootstrap5","version":"1.1.33","branch":"HEAD","tag":"v1.1.33","commit":"a5d739031a594cdffc9efc59b76409facb158d1e","majorVersion":"v1"} -->
2
+ <!-- VERSION_DETAILS={"project_id":"@qld-gov-au/qgds-bootstrap5","version":"1.1.35","branch":"HEAD","tag":"v1.1.35","commit":"7da4102f39c5b2c4bbf5f64d5a57774a0f80d2dc","majorVersion":"v1"} -->
3
3
 
4
4
  {{! Select environment, used verbatium if not using predefind key
5
5
  cdn := PROD|STAGING|BETA|TEST|DEV|???
@@ -7,7 +7,7 @@
7
7
 
8
8
  {{!-- Header for mobile navigation --}}
9
9
  <div class="navbar__header">
10
- <h6 class="navbar__heading">Menu</h6>
10
+ <h3 class="navbar__heading">Menu</h3>
11
11
  <button aria-controls="main-nav" class="navbar__toggle navbar__toggle--close" data-bs-toggle="collapse"
12
12
  data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent"
13
13
  aria-expanded="false" aria-label="Close menu">
@@ -22,7 +22,7 @@
22
22
  <ul class="navbar-nav me-auto mb-2 mb-lg-0">
23
23
  <li class="nav-item nav-item-home">
24
24
  <a class="nav-link {{#if metadata.options.home-active}}nav-link-home-active{{/if}}"
25
- href="{{metadata.target_url}}">
25
+ href="{{metadata.target_url}}" {{#if metadata.options.home-active}}aria-label="Home"{{/if}}>
26
26
  <svg aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg" class="qld__icon">
27
27
  <use
28
28
  href="{{#if metadata.options.icon-root}}{{metadata.options.icon-root}}#qld__icon__home{{/if}}">
@@ -4,11 +4,11 @@
4
4
  style="background-image: url({{promoImage}});"
5
5
  {{/ifCond}}>
6
6
  <div class="image-panel">
7
- <div class="promo-panel-image"
8
- {{#ifCond type '!=' 'promo'}}
9
- style="background-image: url({{promoImage}})"
10
- {{/ifCond}}>
11
- </div>
7
+ {{#ifCond type '!=' 'promo'}}
8
+ <img class="promo-panel-image" src="{{promoImage}}" alt="Promotional Image">
9
+ {{else}}
10
+ <div class="promo-panel-image"></div>
11
+ {{/ifCond}}
12
12
  </div>
13
13
  <div class="content-panel {{variantClass}}">
14
14
  {{#if icon}}
@@ -32,20 +32,18 @@
32
32
  {{/if}}
33
33
  </div>
34
34
  {{#if cta.items}}
35
- <ul class="cta-container">
36
- {{#each cta.items}}
37
- <li>
38
- {{> callToAction label=value href=url target=target class=class arialabel=value id=id}}
39
- </li>
35
+ <div class="cta-container">
36
+ {{#each cta.items}}
37
+ {{> callToAction label=value href=url target=target class=class arialabel=value id=id}}
40
38
  {{/each}}
41
- </ul>
39
+ </div>
42
40
  {{/if}}
43
41
  {{#if btn.items}}
44
- <ul class="btn-container">
42
+ <div class="btn-container">
45
43
  {{#each btn.items}}
46
- <li>{{> button islink=islink variantClass=variantClass label=label href=href target=target dataatts="data-type='class'"}}</li>
44
+ {{> button islink=islink variantClass=variantClass label=label href=href target=target dataatts="data-type='class'"}}
47
45
  {{/each}}
48
- </ul>
46
+ </div>
49
47
  {{/if}}
50
48
  </div>
51
49
  </div>
@@ -1,5 +1,5 @@
1
1
 
2
- {{#ifCond type_variant '==' 'tab-section'}}
2
+ {{#ifCond type_variant '==' 'section-tabs'}}
3
3
  <section class="container tab-content pb-5 pt-5 mb-0 {{~#if tab_variant}} {{tab_variant}} {{else}} default{{/if~}}">
4
4
  <div class="row" style="padding-inline: 2.5rem;">
5
5
  <h2>{{sibiling_section_title}}</h2>
@@ -11,15 +11,14 @@
11
11
  <!-- QGDS Tabs -->
12
12
  <section class="qld-tabs {{~#if type_variant}} {{type_variant}}{{/if~}} {{~#if variant}} {{variant}}{{else}} default{{/if~}}">
13
13
  <div class="tabs-area container">
14
- <ul class="nav nav-tabs {{#ifCond type_variant '==' 'tab-section'}}{{~#if tab_variant}} {{tab_variant}} {{else}} default{{/if~}}{{/ifCond}}" role="tablist">
14
+ <ul class="nav nav-tabs {{#ifCond type_variant '==' 'section-tabs'}}{{~#if tab_variant}} {{tab_variant}} {{else}} default{{/if~}}{{/ifCond}}" role="tablist">
15
15
  {{#each data.items }}
16
16
  <li class="nav-item" role="presentation">
17
17
  <button class="nav-link {{#if @first}}active{{/if}}" id="{{toCamelCase this.tab_text}}-tab" data-bs-toggle="tab" data-bs-target="#{{toCamelCase this.tab_text}}-{{../unique_id}}-tab-pane" type="button" role="tab" aria-controls="#{{this.tab_text}}-tab-pane" aria-selected="{{#if @first}}true{{else}}false{{/if}}" {{#if this.disabled}}disabled{{/if}}>
18
18
  <span>
19
19
  {{#if this.icon}}
20
20
  <i class="{{this.icon}}"></i>
21
- {{/if}}
22
- {{this.tab_text}}
21
+ {{/if}}{{~this.tab_text~}}
23
22
  </span>
24
23
  </button>
25
24
  </li>
@@ -35,7 +34,7 @@
35
34
  <div class="tab-content container">
36
35
  {{#each data.items }}
37
36
  <section class="tab-pane fade {{#if @first}}show active{{/if}}" id="{{toCamelCase this.tab_text}}-{{../unique_id}}-tab-pane" role="tabpanel" aria-labelledby="{{this.tab_text}}-tab" tabindex="0">
38
- {{#ifCond ../type_variant '==' 'tab-section'}}
37
+ {{#ifCond ../type_variant '==' 'section-tabs'}}
39
38
  <h2>{{this.title}}</h2>
40
39
  {{else}}
41
40
  <h3>{{this.title}}</h3>
@@ -8,18 +8,20 @@
8
8
  {{! By default, 'not-ready' class is added and will be removed by javascript event handler.
9
9
  When thumbnail attribute is empty / does not exist, 'empty-thumbnail' css class is added. }}
10
10
  <section class="video not-ready {{#unless thumbnail}}empty-thumbnail{{/unless}} {{videoSize}}">
11
+ <div class="video-description">
12
+ {{{ description }}}
13
+ </div>
14
+ {{#if transcriptContent}}
15
+ {{{ transcriptAccordion }}}
16
+ {{/if}}
11
17
  <div class="video-player ratio ratio-{{aspectRatio}}">
12
-
13
18
  <a href="#" class="video-thumbnail video-controls" title="Play Video"
14
19
  aria-label="Watch video {{#if duration}}- duration {{formatDuration duration "long"}}{{/if}}">
15
-
16
20
  <div class="video-thumbnail-image" style="--thumbnail:url({{thumbnail}})"></div>
17
-
18
21
  <div class="video-nav">
19
22
  <div class="video-watch">
20
23
  <span class="icon"></span><span>Watch</span>
21
24
  </div>
22
-
23
25
  {{#if duration}}
24
26
  <div title="Video duration" class="video-duration">
25
27
  <span class="icon"></span><span>{{formatDuration duration}}</span>
@@ -27,32 +29,18 @@
27
29
  {{/if}}
28
30
  </div>
29
31
  </a>
30
-
31
32
  <div class="video-embed ratio ratio-{{aspectRatio}}">
32
33
  {{#ifCond source '===' 'vimeo'}}
33
34
  <iframe title="Vimeo video" class="embed-responsive-item video-vimeo" allow="autoplay; fullscreen" allowfullscreen muted="muted" src="https://player.vimeo.com/video/{{videoId}}?rel=0&autoplay={{urlParams.autoplay}}&background={{urlParams.background}}&controls={{urlParams.controls}}"></iframe>
34
-
35
35
  {{else ifCond source '===' 'youtube'}}
36
36
  <iframe title="YouTube video" class="embed-responsive-item video-youtube" allow="autoplay; fullscreen" allowfullscreen src="https://www.youtube.com/embed/{{videoId}}?rel=0&autoplay={{urlParams.autoplay}}&controls={{urlParams.controls}}"></iframe>
37
-
38
37
  {{else ifCond source '===' 'custom'}}
39
38
  <iframe title="Custom video" class="embed-responsive-item video-custom" allow="autoplay; fullscreen" allowfullscreen
40
39
  src="{{videoId}}"></iframe>
41
-
42
40
  {{else}}
43
41
  <p class="text-center position-absolute top-50">A video has not been provided.</p>
44
-
45
42
  {{/ifCond}}
46
43
  </div>
47
44
  </div>
48
-
49
- <div class="video-description">
50
- {{{ description }}}
51
- </div>
52
-
53
45
  {{! Render the transcript content in an accordion template }}
54
- {{#if transcriptContent}}
55
- {{{ transcriptAccordion }}}
56
- {{/if}}
57
-
58
46
  </section>