@qhealth-design-system/core 1.18.3 → 1.19.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/.storybook/assets/accordion-js.js +344 -0
- package/.storybook/assets/animate-js.js +247 -0
- package/.storybook/assets/index.js +15 -0
- package/.storybook/globals.js +39 -41
- package/.storybook/main.js +4 -3
- package/.storybook/preview.js +11 -13
- package/CHANGELOG.md +4 -0
- package/README.md +1 -1
- package/package.json +10 -15
- package/src/component-loader.js +23 -0
- package/src/components/_global/css/body/component.scss +3 -3
- package/src/components/_global/css/btn/component.scss +1 -1
- package/src/components/_global/css/cta_links/component.scss +2 -2
- package/src/components/_global/css/example/component.scss +11 -19
- package/src/components/_global/css/forms/control_inputs/component.scss +2 -2
- package/src/components/_global/css/forms/general/component.scss +5 -5
- package/src/components/_global/css/headings/component.scss +42 -44
- package/src/components/_global/css/img/images.scss +20 -36
- package/src/components/_global/css/link_columns/component.scss +2 -2
- package/src/components/_global/css/modal/component.scss +20 -26
- package/src/components/_global/css/table/component.scss +14 -21
- package/src/components/_global/css/tabs/component.scss +2 -2
- package/src/components/_global/css/tags/component.scss +1 -1
- package/src/components/_global/css/toggle_and_tool_tip/component.scss +3 -3
- package/src/components/_global/js/global.js +1 -1
- package/src/components/_global/js/select_boxes/global.js +26 -35
- package/src/components/accordion/css/component.scss +289 -326
- package/src/components/banner/css/component.scss +77 -173
- package/src/components/banner/html/component.hbs +2 -4
- package/src/components/banner_advanced/html/component.hbs +2 -2
- package/src/components/banner_advanced/js/manifest.json +1422 -1386
- package/src/components/basic_search/css/component.scss +13 -14
- package/src/components/basic_search/html/component.hbs +11 -20
- package/src/components/breadcrumbs/js/global.js +6 -1
- package/src/components/callout/css/component.scss +37 -40
- package/src/components/card_feature/css/component.scss +28 -167
- package/src/components/card_multi_action/css/component.scss +46 -58
- package/src/components/code/css/component.scss +3 -3
- package/src/components/code/html/component.hbs +12 -12
- package/src/components/code/js/global.js +6 -1
- package/src/components/file_upload/css/component.scss +5 -5
- package/src/components/file_upload/js/global.js +46 -43
- package/src/components/footer/css/component.scss +3 -3
- package/src/components/global_alert/css/component.scss +8 -14
- package/src/components/global_alert/html/component.hbs +3 -3
- package/src/components/header/css/component.scss +16 -4
- package/src/components/header/html/component.hbs +3 -2
- package/src/components/header/js/global.js +8 -1
- package/src/components/in_page_navigation/css/component.scss +14 -16
- package/src/components/in_page_navigation/js/global.js +48 -58
- package/src/components/internal_navigation/css/component.scss +3 -3
- package/src/components/internal_navigation/js/global.js +27 -35
- package/src/components/left_hand_navigation/css/component.scss +8 -2
- package/src/components/main_navigation/css/component.scss +16 -7
- package/src/components/main_navigation/html/component.hbs +1 -0
- package/src/components/mega_main_navigation/css/component.scss +5 -5
- package/src/components/mega_main_navigation/html/component.hbs +1 -0
- package/src/components/pagination/css/component.scss +32 -28
- package/src/components/pagination/html/component.hbs +37 -40
- package/src/components/promo_panel/css/component.scss +1 -4
- package/src/components/promo_panel/html/component.hbs +11 -5
- package/src/components/promo_panel/js/global.js +24 -39
- package/src/components/promo_panel/js/manifest.json +8 -0
- package/src/components/tab/css/component.scss +3 -3
- package/src/components/toggle_tip/css/component.scss +1 -1
- package/src/components/tool_tip/css/component.scss +1 -1
- package/src/components/video_player/js/global.js +16 -13
- package/src/data/current.json +33 -1
- package/src/helpers/global-helpers.js +56 -0
- package/src/html/component-in_page_navigation.html +2 -2
- package/src/index.js +4 -8
- package/src/stories/BackToTop/BackToTop.mdx +3 -21
- package/src/stories/CTALink/CTALink.mdx +1 -4
- package/src/stories/Checkboxes/Checkboxes.mdx +1 -4
- package/src/stories/DirectionLinks/DirectionLinks.mdx +1 -4
- package/src/stories/InPageAlert/InPageAlert.mdx +1 -4
- package/src/stories/Introduction.mdx +9 -5
- package/src/stories/LinkColumns/LinkColumns.mdx +1 -4
- package/src/stories/Pagination/Pagination.mdx +26 -0
- package/src/stories/Pagination/Pagination.stories.js +257 -0
- package/src/stories/PromoPanel/PromoPanel.mdx +26 -0
- package/src/stories/PromoPanel/PromoPanel.stories.js +219 -0
- package/src/stories/RadioButtons/RadioButtons.mdx +1 -4
- package/src/stories/SelectBox/SelectBox.mdx +1 -4
- package/src/stories/Tags/Tags.js +3 -3
- package/src/stories/Tags/Tags.mdx +1 -4
- package/src/stories/VideoPlayer/VideoPlayer.mdx +3 -28
- package/src/stories/VideoPlayer/VideoPlayer.stories.js +19 -46
- package/src/styles/imports/utilities.scss +3 -3
- package/src/styles/imports/variables.scss +5 -0
- package/src/stories/VideoPlayer/VideoPlayer.js +0 -0
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
2
1
|
.qld__body,
|
|
3
2
|
.qld__banner,
|
|
4
3
|
.qld__footer {
|
|
5
|
-
|
|
6
4
|
figure.qld__right-aligned-img {
|
|
7
5
|
height: auto;
|
|
8
6
|
max-width: 100%;
|
|
@@ -11,20 +9,20 @@
|
|
|
11
9
|
@include QLD-space(margin-left, 0unit);
|
|
12
10
|
@include QLD-space(margin-bottom, 1.5unit);
|
|
13
11
|
overflow: clip;
|
|
14
|
-
|
|
15
|
-
@include QLD-media(md)
|
|
12
|
+
|
|
13
|
+
@include QLD-media(md) {
|
|
16
14
|
height: auto;
|
|
17
15
|
max-width: 40%;
|
|
18
16
|
float: right;
|
|
19
17
|
@include QLD-space(margin-left, 1.5unit);
|
|
20
18
|
}
|
|
21
|
-
|
|
19
|
+
|
|
22
20
|
img {
|
|
23
21
|
aspect-ratio: 4 / 3;
|
|
24
22
|
object-fit: cover;
|
|
25
23
|
}
|
|
26
24
|
}
|
|
27
|
-
|
|
25
|
+
|
|
28
26
|
img + figcaption {
|
|
29
27
|
display: block;
|
|
30
28
|
background-color: $QLD-color-neutral--lightest;
|
|
@@ -32,66 +30,52 @@
|
|
|
32
30
|
@include QLD-space(margin-top, -0.5unit);
|
|
33
31
|
font-size: var(--QLD-default-mobile-xs); //Find out the better practice/ @mixin QLD-fontgrid use this before pushin up
|
|
34
32
|
@include QLD-space(margin-left, 0unit);
|
|
35
|
-
font-weight:
|
|
33
|
+
font-weight: $QLD-font-weight-regular;
|
|
36
34
|
color: var(--QLD-color-light__text--lighter);
|
|
37
35
|
}
|
|
38
36
|
|
|
39
|
-
|
|
40
37
|
@include QLD-media(md) {
|
|
41
|
-
|
|
42
38
|
img + figcaption {
|
|
43
|
-
|
|
44
|
-
font-size: var(--QLD-default-desktop-xs);
|
|
45
|
-
|
|
39
|
+
font-size: var(--QLD-default-desktop-xs);
|
|
46
40
|
}
|
|
47
|
-
|
|
48
41
|
}
|
|
49
|
-
|
|
42
|
+
|
|
50
43
|
.qld__responsive-media-img {
|
|
51
44
|
max-width: 100%;
|
|
52
45
|
height: auto;
|
|
53
46
|
}
|
|
54
47
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
48
|
+
&.qld__body--light,
|
|
49
|
+
&.qld__banner--light,
|
|
50
|
+
&.qld__footer--light {
|
|
59
51
|
img + figcaption {
|
|
60
52
|
background-color: var(--QLD-color-light__background--shade);
|
|
61
53
|
}
|
|
62
|
-
|
|
63
54
|
}
|
|
64
55
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
56
|
+
&.qld__body--alt,
|
|
57
|
+
&.qld__banner--alt,
|
|
58
|
+
&.qld__footer--alt {
|
|
69
59
|
img + figcaption {
|
|
70
60
|
background-color: var(--QLD-color-light__background--alt-shade);
|
|
71
61
|
}
|
|
72
|
-
|
|
73
62
|
}
|
|
74
63
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
64
|
+
&.qld__body--dark,
|
|
65
|
+
&.qld__banner--dark,
|
|
66
|
+
&.qld__footer--dark {
|
|
79
67
|
img + figcaption {
|
|
80
68
|
background-color: var(--QLD-color-dark__background--shade);
|
|
81
69
|
color: var(--QLD-color-dark__text--lighter);
|
|
82
70
|
}
|
|
83
|
-
|
|
84
71
|
}
|
|
85
72
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
73
|
+
&.qld__body--dark-alt,
|
|
74
|
+
&.qld__banner--dark-alt,
|
|
75
|
+
&.qld__footer--dark-alt {
|
|
90
76
|
img + figcaption {
|
|
91
77
|
background-color: var(--QLD-color-dark__background--alt-shade);
|
|
92
78
|
color: var(--QLD-color-dark__text--lighter);
|
|
93
79
|
}
|
|
94
|
-
|
|
95
80
|
}
|
|
96
|
-
|
|
97
|
-
}
|
|
81
|
+
}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
list-style-type: none;
|
|
9
9
|
padding: 0;
|
|
10
10
|
@include QLD-fontgrid(sm);
|
|
11
|
-
font-weight:
|
|
11
|
+
font-weight: $QLD-font-weight-semibold;
|
|
12
12
|
overflow: hidden;
|
|
13
13
|
|
|
14
14
|
* + & {
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
&.qld__link-columns__all-link {
|
|
107
107
|
@include QLD-fontgrid(sm);
|
|
108
108
|
@include QLD-space(font-size, 1unit);
|
|
109
|
-
font-weight:
|
|
109
|
+
font-weight: $QLD-font-weight-semibold;
|
|
110
110
|
justify-content: flex-end;
|
|
111
111
|
box-shadow: inset 0 0 - $QLD-border-width-thin 0 transparent;
|
|
112
112
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
position: relative;
|
|
7
7
|
display: none;
|
|
8
8
|
|
|
9
|
-
&--content-centre{
|
|
9
|
+
&--content-centre {
|
|
10
10
|
text-align: center;
|
|
11
11
|
}
|
|
12
12
|
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
z-index: 1;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
&__inner{
|
|
27
|
+
&__inner {
|
|
28
28
|
min-width: 17.5rem;
|
|
29
29
|
max-width: 17.5rem;
|
|
30
30
|
position: fixed;
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
.qld__modal__header{
|
|
53
|
+
.qld__modal__header {
|
|
54
54
|
display: flex;
|
|
55
55
|
align-items: center;
|
|
56
56
|
flex-direction: row;
|
|
@@ -58,23 +58,23 @@
|
|
|
58
58
|
gap: 1rem;
|
|
59
59
|
line-height: 1.5rem;
|
|
60
60
|
|
|
61
|
-
.qld__modal__header-heading{
|
|
62
|
-
font-weight:
|
|
61
|
+
.qld__modal__header-heading {
|
|
62
|
+
font-weight: $QLD-font-weight-semibold;
|
|
63
63
|
margin-top: 0;
|
|
64
64
|
color: var(--QLD-color-light__heading);
|
|
65
65
|
word-break: break-all;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
& &-icon{
|
|
68
|
+
& &-icon {
|
|
69
69
|
flex: 1 0 auto;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
.qld__btn.qld__btn--close{
|
|
72
|
+
.qld__btn.qld__btn--close {
|
|
73
73
|
flex: 1 0 auto;
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
&__close-btn{
|
|
77
|
+
&__close-btn {
|
|
78
78
|
min-width: auto;
|
|
79
79
|
padding: 0;
|
|
80
80
|
position: absolute;
|
|
@@ -86,26 +86,24 @@
|
|
|
86
86
|
background-color: $QLD-color-neutral--lightest;
|
|
87
87
|
border-color: $QLD-color-neutral--lightest;
|
|
88
88
|
|
|
89
|
-
&:hover{
|
|
89
|
+
&:hover {
|
|
90
90
|
background: var(--QLD-color-light__background--alt-shade);
|
|
91
91
|
border-color: var(--QLD-color-light__background--alt-shade);
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
i{
|
|
94
|
+
i {
|
|
95
95
|
color: $QLD-color-neutral--black;
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
&__content{
|
|
99
|
+
&__content {
|
|
100
100
|
margin-top: 1.5rem;
|
|
101
101
|
word-break: break-all;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
104
|
//TO be removed once service finder is updated START
|
|
108
|
-
&.qld__services-modal__set-location,
|
|
105
|
+
&.qld__services-modal__set-location,
|
|
106
|
+
&.qld__services-modal__update-location {
|
|
109
107
|
.qld__modal__body {
|
|
110
108
|
min-width: pxToRem(360);
|
|
111
109
|
|
|
@@ -115,9 +113,9 @@
|
|
|
115
113
|
}
|
|
116
114
|
}
|
|
117
115
|
|
|
118
|
-
&__body__content{
|
|
119
|
-
@include QLD-space(padding, 1.5unit
|
|
120
|
-
|
|
116
|
+
&__body__content {
|
|
117
|
+
@include QLD-space(padding, 1.5unit 0);
|
|
118
|
+
|
|
121
119
|
ul li a {
|
|
122
120
|
text-decoration: none;
|
|
123
121
|
color: var(--QLD-color-light__link--on-action);
|
|
@@ -126,10 +124,9 @@
|
|
|
126
124
|
background-color: var(--QLD-color-light__action--primary-hover);
|
|
127
125
|
}
|
|
128
126
|
}
|
|
129
|
-
|
|
130
127
|
}
|
|
131
|
-
|
|
132
|
-
|
|
128
|
+
|
|
129
|
+
.qld__modal__body {
|
|
133
130
|
min-width: pxToRem(360);
|
|
134
131
|
max-width: pxToRem(654);
|
|
135
132
|
position: fixed;
|
|
@@ -150,7 +147,6 @@
|
|
|
150
147
|
.qld__modal__body__header {
|
|
151
148
|
display: flex;
|
|
152
149
|
justify-content: space-between;
|
|
153
|
-
|
|
154
150
|
}
|
|
155
151
|
.qld__modal__close {
|
|
156
152
|
position: absolute;
|
|
@@ -168,7 +164,7 @@
|
|
|
168
164
|
color: var(--QLD-color-light__text);
|
|
169
165
|
font-size: 1.5rem;
|
|
170
166
|
}
|
|
171
|
-
&:hover{
|
|
167
|
+
&:hover {
|
|
172
168
|
// background-color: var(--QLD-color-light__action--primary-hover);
|
|
173
169
|
svg,
|
|
174
170
|
i {
|
|
@@ -176,7 +172,6 @@
|
|
|
176
172
|
}
|
|
177
173
|
}
|
|
178
174
|
}
|
|
179
|
-
|
|
180
175
|
}
|
|
181
176
|
|
|
182
177
|
&.qld__modal--small {
|
|
@@ -194,5 +189,4 @@
|
|
|
194
189
|
}
|
|
195
190
|
}
|
|
196
191
|
//TO be removed once service finder is updated FINISH
|
|
197
|
-
|
|
198
|
-
}
|
|
192
|
+
}
|
|
@@ -7,14 +7,13 @@
|
|
|
7
7
|
// - globals
|
|
8
8
|
//--------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
9
9
|
|
|
10
|
-
|
|
11
10
|
.qld__caption {
|
|
12
11
|
font-style: normal;
|
|
13
12
|
color: var(--QLD-color-light__text--lighter);
|
|
14
13
|
font-size: 14px;
|
|
15
14
|
font-size: 0.87rem;
|
|
16
15
|
line-height: 1.6;
|
|
17
|
-
font-weight:
|
|
16
|
+
font-weight: $QLD-font-weight-regular;
|
|
18
17
|
|
|
19
18
|
.qld__body--dark &,
|
|
20
19
|
.qld__body--dark-alt & {
|
|
@@ -32,7 +31,7 @@ table {
|
|
|
32
31
|
caption {
|
|
33
32
|
@include QLD-fontgrid(md, heading);
|
|
34
33
|
line-height: 1.6;
|
|
35
|
-
font-weight:
|
|
34
|
+
font-weight: $QLD-font-weight-semibold;
|
|
36
35
|
text-align: left;
|
|
37
36
|
display: table-caption;
|
|
38
37
|
@include QLD-space(padding, 0.75unit);
|
|
@@ -63,7 +62,7 @@ table {
|
|
|
63
62
|
padding: 1.25rem 0.75rem 1.25rem 0.75rem;
|
|
64
63
|
box-shadow: inset 0 0 -$QLD-border-width-default 0 var(--QLD-color-light__design-accent);
|
|
65
64
|
color: var(--QLD-color-light__heading);
|
|
66
|
-
font-weight:
|
|
65
|
+
font-weight: $QLD-font-weight-semibold;
|
|
67
66
|
@include QLD-fontgrid(sm, heading);
|
|
68
67
|
line-height: 1.5;
|
|
69
68
|
&.qld__table__cell--numeric {
|
|
@@ -111,7 +110,6 @@ table {
|
|
|
111
110
|
@for $i from 1 through 10 {
|
|
112
111
|
&.qld__table__col-#{$i}-num {
|
|
113
112
|
tr {
|
|
114
|
-
|
|
115
113
|
td:nth-child(#{$i}),
|
|
116
114
|
th:nth-child(#{$i}):not([colspan]) {
|
|
117
115
|
text-align: right;
|
|
@@ -147,7 +145,7 @@ table {
|
|
|
147
145
|
|
|
148
146
|
td {
|
|
149
147
|
box-shadow: none;
|
|
150
|
-
font-weight:
|
|
148
|
+
font-weight: $QLD-font-weight-semibold;
|
|
151
149
|
&:first-of-type {
|
|
152
150
|
border-radius: 0 0 $QLD-border-radius-sm 0;
|
|
153
151
|
}
|
|
@@ -190,7 +188,6 @@ table {
|
|
|
190
188
|
|
|
191
189
|
.qld__body--dark &,
|
|
192
190
|
.qld__body--dark-alt & {
|
|
193
|
-
|
|
194
191
|
.qld__table__head,
|
|
195
192
|
thead {
|
|
196
193
|
tr {
|
|
@@ -276,10 +273,8 @@ table {
|
|
|
276
273
|
}
|
|
277
274
|
|
|
278
275
|
&.qld__table--striped {
|
|
279
|
-
|
|
280
276
|
.qld__table__body,
|
|
281
277
|
tbody {
|
|
282
|
-
|
|
283
278
|
.qld__table__row:nth-last-child(odd),
|
|
284
279
|
tr:nth-last-child(odd) {
|
|
285
280
|
background-color: $QLD-color-neutral--lightest;
|
|
@@ -288,10 +283,8 @@ table {
|
|
|
288
283
|
|
|
289
284
|
.qld__body--dark &,
|
|
290
285
|
.qld__body--dark-alt & {
|
|
291
|
-
|
|
292
286
|
.qld__table__body,
|
|
293
287
|
tbody {
|
|
294
|
-
|
|
295
288
|
.qld__table__row:nth-last-child(odd),
|
|
296
289
|
tr:nth-last-child(odd) {
|
|
297
290
|
background-color: var(--QLD-color-dark__background--shade);
|
|
@@ -301,9 +294,11 @@ table {
|
|
|
301
294
|
}
|
|
302
295
|
}
|
|
303
296
|
|
|
304
|
-
.qld__table,
|
|
297
|
+
.qld__table,
|
|
298
|
+
.qld__table--scroll,
|
|
299
|
+
.qld__table--contained {
|
|
305
300
|
&:not(:first-child) {
|
|
306
|
-
|
|
301
|
+
@include QLD-space(margin-top, 1.5unit);
|
|
307
302
|
}
|
|
308
303
|
}
|
|
309
304
|
|
|
@@ -337,7 +332,7 @@ table {
|
|
|
337
332
|
min-height: 78px;
|
|
338
333
|
/* 78px height so it can cater for additional information detailing table order under the caption text */
|
|
339
334
|
|
|
340
|
-
|
|
335
|
+
& + thead {
|
|
341
336
|
top: 78px;
|
|
342
337
|
}
|
|
343
338
|
}
|
|
@@ -359,7 +354,6 @@ table {
|
|
|
359
354
|
}
|
|
360
355
|
}
|
|
361
356
|
|
|
362
|
-
|
|
363
357
|
.qld__body--dark &,
|
|
364
358
|
.qld__body--dark-alt & {
|
|
365
359
|
border: 1px solid var(--QLD-color-dark__border);
|
|
@@ -373,14 +367,15 @@ table {
|
|
|
373
367
|
}
|
|
374
368
|
}
|
|
375
369
|
|
|
376
|
-
.qld__table__wrapper {
|
|
370
|
+
.qld__table__wrapper {
|
|
371
|
+
//applies to the container above the table.
|
|
377
372
|
overflow-x: auto;
|
|
378
373
|
}
|
|
379
374
|
|
|
380
375
|
@media print {
|
|
381
376
|
.qld__table--scroll {
|
|
382
377
|
max-height: none;
|
|
383
|
-
}
|
|
378
|
+
}
|
|
384
379
|
}
|
|
385
380
|
|
|
386
381
|
// .qld__table {
|
|
@@ -433,7 +428,6 @@ table {
|
|
|
433
428
|
// }
|
|
434
429
|
// }
|
|
435
430
|
|
|
436
|
-
|
|
437
431
|
// .qld__table__cell {
|
|
438
432
|
// @include QLD-space( padding, 0.75unit);
|
|
439
433
|
// text-align: left;
|
|
@@ -468,7 +462,7 @@ table {
|
|
|
468
462
|
// .qld__body--dark &{
|
|
469
463
|
// .qld__table__head{
|
|
470
464
|
// @include QLD-space( 'border-bottom', 0.25unit solid var(--QLD-color-dark__design-accent));
|
|
471
|
-
// }
|
|
465
|
+
// }
|
|
472
466
|
|
|
473
467
|
// .qld__table__header,
|
|
474
468
|
// .qld__table__cell{
|
|
@@ -485,7 +479,7 @@ table {
|
|
|
485
479
|
// .qld__body--dark-alt &{
|
|
486
480
|
// .qld__table__head{
|
|
487
481
|
// @include QLD-space( 'border-bottom', 0.25unit solid var(--QLD-color-dark__design-accent));
|
|
488
|
-
// }
|
|
482
|
+
// }
|
|
489
483
|
|
|
490
484
|
// .qld__table__header,
|
|
491
485
|
// .qld__table__cell{
|
|
@@ -499,4 +493,3 @@ table {
|
|
|
499
493
|
// }
|
|
500
494
|
// }
|
|
501
495
|
// }
|
|
502
|
-
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
|
|
29
29
|
&[aria-selected="true"] {
|
|
30
30
|
background-color: transparent !important;
|
|
31
|
-
font-weight:
|
|
31
|
+
font-weight: $QLD-font-weight-semibold;
|
|
32
32
|
border-bottom: 8px solid var(--QLD-color-dark__action--secondary);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
&:hover {
|
|
36
|
-
font-weight:
|
|
36
|
+
font-weight: $QLD-font-weight-semibold;
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
}
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
border-radius: $QLD-border-radius-xs;
|
|
102
102
|
font-size: #{map-get($QLD-fontsize-map, xs)}px;
|
|
103
103
|
line-height: 1.25rem;
|
|
104
|
-
font-weight:
|
|
104
|
+
font-weight: $QLD-font-weight-regular;
|
|
105
105
|
background-color: $QLD-color-neutral--darkest;
|
|
106
106
|
color: var(--QLD-color-dark__text);
|
|
107
107
|
box-shadow: $QLD-box-shaddow-level-two;
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
&-heading {
|
|
110
110
|
margin-bottom: 1rem;
|
|
111
111
|
color: var(--QLD-color-dark__heading);
|
|
112
|
-
font-weight:
|
|
112
|
+
font-weight: $QLD-font-weight-semibold;
|
|
113
113
|
line-height: 1rem;
|
|
114
114
|
}
|
|
115
115
|
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
z-index: 8;
|
|
145
145
|
top: 0;
|
|
146
146
|
left: 0;
|
|
147
|
-
border:
|
|
147
|
+
border: 0.25rem solid transparent;
|
|
148
148
|
border-bottom-color: $QLD-color-neutral--darkest;
|
|
149
149
|
}
|
|
150
150
|
}
|
|
@@ -284,7 +284,7 @@
|
|
|
284
284
|
* @param {*} name
|
|
285
285
|
*/
|
|
286
286
|
getParamaterByName: function (name) {
|
|
287
|
-
name = name.replace(/[\[]
|
|
287
|
+
name = name.replace(/[\[]/g, "\\[").replace(/[\]]/g, "\\]");
|
|
288
288
|
var regexS = "[\\?&]" + name + "=([^&#]*)";
|
|
289
289
|
var regex = new RegExp(regexS);
|
|
290
290
|
var results = regex.exec(window.location.href);
|
|
@@ -1,36 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
wrapper.appendChild(select);
|
|
27
|
-
});
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
// Make forms available to public
|
|
31
|
-
QLD.selectBoxes = selectBoxes;
|
|
32
|
-
|
|
33
|
-
document.addEventListener("DOMContentLoaded", function () {
|
|
34
|
-
QLD.selectBoxes.init();
|
|
1
|
+
/**
|
|
2
|
+
* @module selectBoxes
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
export default function initSelectBoxes(document = document) {
|
|
6
|
+
document.querySelectorAll("select").forEach((select) => {
|
|
7
|
+
// First check that the select is not already wrapped
|
|
8
|
+
if (select.closest(".qld__select")) {
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
// Create wrapper div
|
|
13
|
+
const wrapper = document.createElement("div");
|
|
14
|
+
wrapper.classList.add("qld__select");
|
|
15
|
+
|
|
16
|
+
// Matrix specific - add error class to wrapper if the field has an error
|
|
17
|
+
if (select.closest(".sq-form-question-error")) {
|
|
18
|
+
wrapper.classList.add("qld__select-error");
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// Insert wrapper BEFORE the select
|
|
22
|
+
select.parentNode.insertBefore(wrapper, select);
|
|
23
|
+
|
|
24
|
+
// Move the select into the wrapper
|
|
25
|
+
wrapper.appendChild(select);
|
|
35
26
|
});
|
|
36
|
-
}
|
|
27
|
+
}
|