@qld-gov-au/qgds-bootstrap5 2.1.22 → 2.2.0
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 +3 -3
- package/dist/assets/css/qld.bootstrap.legacy.css +2 -2
- package/dist/assets/css/qld.bootstrap.legacy.css.map +3 -3
- 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 +4 -4
- 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 +2 -2
- package/package.json +2 -2
- package/src/components/bs5/quickexit/quickexit.functions.js +7 -9
- package/src/components/bs5/quickexit/quickexit.scss +4 -3
- package/src/components/bs5/typography/typography.scss +24 -0
- package/src/components/bs5/typography/typography.stories.js +42 -23
- package/src/css/qld-palettes.scss +6 -0
- package/src/css/qld-variables.scss +1 -0
- package/src/css/variables/type.scss +16 -0
- package/src/js/qld.bootstrap.js +0 -4
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qld-gov-au/qgds-bootstrap5",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"eslint": "10.2.1",
|
|
79
79
|
"eslint-plugin-json": "^4.0.1",
|
|
80
80
|
"eslint-plugin-storybook": "^10.1.10",
|
|
81
|
-
"globals": "17.
|
|
81
|
+
"globals": "17.6.0",
|
|
82
82
|
"handlebars": "4.7.9",
|
|
83
83
|
"http-server": "^14.1.1",
|
|
84
84
|
"husky": "^9.1.7",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qld-gov-au/qgds-bootstrap5",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"eslint": "10.2.1",
|
|
79
79
|
"eslint-plugin-json": "^4.0.1",
|
|
80
80
|
"eslint-plugin-storybook": "^10.1.10",
|
|
81
|
-
"globals": "17.
|
|
81
|
+
"globals": "17.6.0",
|
|
82
82
|
"handlebars": "4.7.9",
|
|
83
83
|
"http-server": "^14.1.1",
|
|
84
84
|
"husky": "^9.1.7",
|
|
@@ -8,7 +8,7 @@ export function initQuickexit() {
|
|
|
8
8
|
quickExitButton != null
|
|
9
9
|
) {
|
|
10
10
|
onbtnClick();
|
|
11
|
-
|
|
11
|
+
document.addEventListener("keydown", handleKeydown);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
@@ -24,15 +24,14 @@ function onbtnClick() {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* handleKeydown -> escape keydown event
|
|
28
28
|
* @return {undefined}
|
|
29
29
|
**/
|
|
30
|
-
function
|
|
30
|
+
function handleKeydown(e) {
|
|
31
31
|
const escapeSite = "https://www.google.com.au/";
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
quickExit(escapeSite);
|
|
32
|
+
|
|
33
|
+
if (e.key === "Escape") {
|
|
34
|
+
quickExit(escapeSite);
|
|
36
35
|
if (e) {
|
|
37
36
|
// stop escape from cancelling redirect
|
|
38
37
|
e.preventDefault();
|
|
@@ -40,8 +39,7 @@ function onKeyDown() {
|
|
|
40
39
|
e.returnValue = false;
|
|
41
40
|
}
|
|
42
41
|
return false;
|
|
43
|
-
|
|
44
|
-
});
|
|
42
|
+
}
|
|
45
43
|
}
|
|
46
44
|
|
|
47
45
|
/**
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
padding-inline: var(--#{$prefix}gutter-x);
|
|
26
26
|
position: fixed;
|
|
27
27
|
width: 100%;
|
|
28
|
-
z-index:
|
|
28
|
+
z-index: 1;
|
|
29
29
|
|
|
30
30
|
&-inner {
|
|
31
31
|
display: flex;
|
|
@@ -121,7 +121,8 @@
|
|
|
121
121
|
font-size: calc(var(--#{$prefix}body-font-size) * 0.875);
|
|
122
122
|
margin-block-end: 0;
|
|
123
123
|
}
|
|
124
|
-
.qld-quick-exit-button
|
|
124
|
+
.qld-quick-exit-button,
|
|
125
|
+
.qld-quick-exit-button:focus {
|
|
125
126
|
border-color: var(--#{$prefix}quick-exit-button-bg-colour);
|
|
126
127
|
background-color: var(--#{$prefix}quick-exit-button-bg-colour);
|
|
127
128
|
color: var(--#{$prefix}quick-exit-button-text-colour);
|
|
@@ -166,7 +167,7 @@
|
|
|
166
167
|
position: -webkit-sticky;
|
|
167
168
|
position: sticky;
|
|
168
169
|
inset-block-start: 0;
|
|
169
|
-
z-index:
|
|
170
|
+
z-index: 1;
|
|
170
171
|
padding-block: 20px;
|
|
171
172
|
padding-inline: 40px;
|
|
172
173
|
.container {
|
|
@@ -82,3 +82,27 @@ h6,
|
|
|
82
82
|
margin-block-start: 1.5rem;
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
|
+
|
|
86
|
+
.abstract,
|
|
87
|
+
p.abstract {
|
|
88
|
+
font-size: $abstract-font-size;
|
|
89
|
+
line-height: $abstract-line-height;
|
|
90
|
+
font-weight: $abstract-font-weight;
|
|
91
|
+
color: var(--qld-abstract-color);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.quote,
|
|
95
|
+
p.quote {
|
|
96
|
+
font-size: $quote-font-size;
|
|
97
|
+
line-height: $quote-line-height;
|
|
98
|
+
font-weight: $quote-font-weight;
|
|
99
|
+
color: var(--qld-quote-color);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.caption,
|
|
103
|
+
p.caption {
|
|
104
|
+
font-size: $caption-font-size;
|
|
105
|
+
line-height: $caption-line-height;
|
|
106
|
+
font-weight: $caption-font-weight;
|
|
107
|
+
color: var(--qld-caption-color);
|
|
108
|
+
}
|
|
@@ -9,31 +9,50 @@ export default {
|
|
|
9
9
|
render: () => {
|
|
10
10
|
return `
|
|
11
11
|
<div class="qld-content-body" id="content">
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
12
|
+
<h1>Heading 1</h1>
|
|
13
|
+
<h2>Heading 2</h2>
|
|
14
|
+
<h3>Heading 3</h3>
|
|
15
|
+
<h4>Heading 4</h4>
|
|
16
|
+
<h5>Heading 5</h5>
|
|
17
|
+
<h6>Heading 6</h6>
|
|
18
|
+
|
|
19
|
+
<hr>
|
|
20
|
+
|
|
21
|
+
<p class="abstract">Abstract text - Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
|
|
22
|
+
<p class="quote">Quote text - Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
|
|
23
|
+
<p>Body text - Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
|
|
24
|
+
<p class="caption">Caption text - Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
|
|
25
|
+
|
|
26
|
+
<hr>
|
|
27
|
+
|
|
28
|
+
<h4>Links </h4>
|
|
29
|
+
<p><a href="#">Internal link</a></p>
|
|
30
|
+
<p><a href="#" rel="external">External link</a></p>
|
|
31
|
+
<p><a class="qld__text-link--no-visited" href="#no-visit">Link without visited state</a></p>
|
|
32
|
+
|
|
33
|
+
<hr>
|
|
34
|
+
|
|
35
|
+
<h4>Unordered list </h4>
|
|
36
|
+
<ul style="margin-block-start: 1rem">
|
|
37
|
+
<li>List item</li>
|
|
38
|
+
<li>List item</li>
|
|
39
|
+
<li>List item</li>
|
|
40
|
+
<li>List item</li>
|
|
41
|
+
<li>List item</li>
|
|
42
|
+
</ul>
|
|
43
|
+
|
|
44
|
+
<hr>
|
|
45
|
+
<h4>Ordered list </h4>
|
|
46
|
+
<ol style="margin-block-start: 1rem">
|
|
47
|
+
<li>List item</li>
|
|
48
|
+
<li>List item</li>
|
|
49
|
+
<li>List item</li>
|
|
50
|
+
<li>List item</li>
|
|
51
|
+
<li>List item</li>
|
|
52
|
+
</ol>
|
|
35
53
|
</div>
|
|
36
54
|
|
|
55
|
+
<hr>
|
|
37
56
|
<dl>
|
|
38
57
|
<dt>Website:</dt>
|
|
39
58
|
<dd><a href="https://www.qld.gov.au" target="_blank">https://www.qld.gov.au</a></dd>
|
|
@@ -11,6 +11,9 @@
|
|
|
11
11
|
--qld-body-font-weight: #{$body-font-weight};
|
|
12
12
|
--qld-border-color: var(--qld-light-border);
|
|
13
13
|
--qld-headings-color: #{$headings-color};
|
|
14
|
+
--qld-abstract-color: #{$color-default-color-light-text-default};
|
|
15
|
+
--qld-quote-color: #{$color-default-color-light-text-default};
|
|
16
|
+
--qld-caption-color: #{$color-default-color-light-text-lighter};
|
|
14
17
|
--qld-link-color: #{$link-color};
|
|
15
18
|
--qld-link-color-rgb: #{to-rgb($link-color)};
|
|
16
19
|
--qld-link-hover-color: var(--qld-link-color);
|
|
@@ -57,6 +60,9 @@
|
|
|
57
60
|
--qld-body-color: #fff;
|
|
58
61
|
--qld-border-color: var(--qld-dark-border);
|
|
59
62
|
--qld-headings-color: #{$color-default-color-dark-text-heading};
|
|
63
|
+
--qld-abstract-color: #{$color-default-color-dark-text-default};
|
|
64
|
+
--qld-quote-color: #{$color-default-color-dark-text-default};
|
|
65
|
+
--qld-caption-color: #{$color-default-color-dark-text-lighter};
|
|
60
66
|
--qld-link-color: #{$color-default-color-dark-link-default};
|
|
61
67
|
--qld-link-color-rgb: 255, 255, 255;
|
|
62
68
|
--qld-link-hover-color: #{$color-default-color-dark-link-default};
|
|
@@ -12,6 +12,7 @@ $qld-dark-green: $core-default-color-brand-secondary-darkgreen;
|
|
|
12
12
|
$qld-golden-yellow: $core-default-color-brand-secondary-golden-yellow;
|
|
13
13
|
$qld-maroon-traditional: $core-default-color-brand-other-gov-maroon;
|
|
14
14
|
$qld-maroon-modern: $core-default-color-brand-other-modern-maroon;
|
|
15
|
+
$qld-light-text: $color-default-color-light-text-default;
|
|
15
16
|
$qld-dark-text: $color-default-color-dark-text-default;
|
|
16
17
|
$qld-dark-border: $color-default-color-dark-border-default;
|
|
17
18
|
$qld-dark-alt-border: $color-default-color-dark-border-alt;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use "../../css/functions" as f;
|
|
1
2
|
//Typography
|
|
2
3
|
$font-family-sans-serif:
|
|
3
4
|
"Noto Sans",
|
|
@@ -56,3 +57,18 @@ $qld-heading-color: $core-default-color-brand-primary-light-green;
|
|
|
56
57
|
$link-color: $qld-brand-primary;
|
|
57
58
|
$link-hover-color: $qld-brand-primary;
|
|
58
59
|
$link-visited-color: $qld-link-visited;
|
|
60
|
+
|
|
61
|
+
// Abstract text styles
|
|
62
|
+
$abstract-font-size: $font-size-base * 1.5;
|
|
63
|
+
$abstract-line-height: f.snap-line-height(1.33);
|
|
64
|
+
$abstract-font-weight: 400;
|
|
65
|
+
|
|
66
|
+
// Quote text styles
|
|
67
|
+
$quote-font-size: $font-size-base * 1.25;
|
|
68
|
+
$quote-line-height: f.snap-line-height(1.4);
|
|
69
|
+
$quote-font-weight: 600;
|
|
70
|
+
|
|
71
|
+
// Caption text styles
|
|
72
|
+
$caption-font-size: $font-size-base * 0.875;
|
|
73
|
+
$caption-line-height: f.snap-line-height(1.43);
|
|
74
|
+
$caption-font-weight: 400;
|
package/src/js/qld.bootstrap.js
CHANGED
|
@@ -23,8 +23,6 @@ import { initGlobalAlerts } from "./../components/bs5/globalAlert/globalAlert.fu
|
|
|
23
23
|
import { validateSkipLinks } from "./../components/bs5/skiplinks/skipLinks.functions";
|
|
24
24
|
import { printPage } from "./utils";
|
|
25
25
|
|
|
26
|
-
window.addEventListener("click", initQuickexit, true);
|
|
27
|
-
window.addEventListener("keydown", initQuickexit, true);
|
|
28
26
|
window.addEventListener("DOMContentLoaded", () => {
|
|
29
27
|
backToTop();
|
|
30
28
|
|
|
@@ -94,8 +92,6 @@ window.addEventListener("DOMContentLoaded", () => {
|
|
|
94
92
|
initBreadcrumb();
|
|
95
93
|
|
|
96
94
|
// Quick exit
|
|
97
|
-
window.addEventListener("click", initQuickexit, true);
|
|
98
|
-
window.addEventListener("keydown", initQuickexit, true);
|
|
99
95
|
initQuickexit();
|
|
100
96
|
|
|
101
97
|
// Accordion
|