@ongov/ontario-design-system-component-library 5.0.0-alpha.3 → 5.0.0-alpha.5
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/cjs/ontario-accordion_44.cjs.entry.js +36 -6
- package/dist/cjs/ontario-accordion_44.cjs.entry.js.map +1 -1
- package/dist/collection/components/ontario-card/ontario-card.css +8 -3
- package/dist/collection/components/ontario-card-collection/ontario-card-collection.css +8 -20
- package/dist/collection/components/ontario-footer/components/simple-footer.js +21 -1
- package/dist/collection/components/ontario-footer/components/simple-footer.js.map +1 -1
- package/dist/collection/components/ontario-footer/ontario-footer-interface.js.map +1 -1
- package/dist/collection/components/ontario-footer/ontario-footer.js +10 -4
- package/dist/collection/components/ontario-footer/ontario-footer.js.map +1 -1
- package/dist/collection/components/ontario-footer/test/ontario-footer.spec.js +4 -4
- package/dist/collection/components/ontario-footer/test/ontario-footer.spec.js.map +1 -1
- package/dist/collection/i18n/global.i18n.json +10 -0
- package/dist/components/global.i18n.js +11 -0
- package/dist/components/global.i18n.js.map +1 -1
- package/dist/components/ontario-card-collection.js +1 -1
- package/dist/components/ontario-card-collection.js.map +1 -1
- package/dist/components/ontario-card.js +1 -1
- package/dist/components/ontario-card.js.map +1 -1
- package/dist/components/ontario-footer.js +23 -4
- package/dist/components/ontario-footer.js.map +1 -1
- package/dist/components/ontario-header.js.map +1 -1
- package/dist/esm/ontario-accordion_44.entry.js +36 -6
- package/dist/esm/ontario-accordion_44.entry.js.map +1 -1
- package/dist/ontario-design-system-components/i18n/global.i18n.json +10 -0
- package/dist/ontario-design-system-components/ontario-design-system-components.esm.js +1 -1
- package/dist/ontario-design-system-components/{p-ac4e76b2.entry.js → p-150ea034.entry.js} +583 -557
- package/dist/ontario-design-system-components/p-150ea034.entry.js.map +1 -0
- package/dist/types/components/ontario-footer/ontario-footer-interface.d.ts +10 -8
- package/dist/types/components/ontario-footer/ontario-footer.d.ts +1 -1
- package/dist/types/components.d.ts +2 -2
- package/package.json +2 -2
- package/src/components/ontario-card/ontario-card.scss +8 -3
- package/src/components/ontario-card-collection/ontario-card-collection.scss +8 -24
- package/src/components/ontario-footer/components/simple-footer.tsx +8 -0
- package/src/components/ontario-footer/ontario-footer-interface.tsx +10 -8
- package/src/components/ontario-footer/ontario-footer.tsx +10 -3
- package/src/components/ontario-footer/readme.md +12 -7
- package/src/components/ontario-footer/test/ontario-footer.spec.tsx +4 -4
- package/src/components/ontario-header/ontario-header.scss +4 -4
- package/src/components.d.ts +2 -2
- package/src/index.html +6 -2
- package/src/translations/global.i18n.json +10 -0
- package/www/build/ontario-design-system-components.esm.js +1 -1
- package/www/build/{p-ac4e76b2.entry.js → p-150ea034.entry.js} +583 -557
- package/www/build/p-150ea034.entry.js.map +1 -0
- package/www/build/{p-c9a9b857.js → p-4140c6bb.js} +1 -1
- package/www/i18n/global.i18n.json +10 -0
- package/www/index.html +8 -4
- package/dist/ontario-design-system-components/p-ac4e76b2.entry.js.map +0 -1
- package/www/build/p-ac4e76b2.entry.js.map +0 -1
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
export type OntarioFooterType = 'default' | 'twoColumn' | 'threeColumn';
|
|
2
2
|
export interface FooterLink {
|
|
3
|
-
text
|
|
3
|
+
text: string;
|
|
4
4
|
href: string;
|
|
5
5
|
}
|
|
6
6
|
export interface FooterLinks {
|
|
7
|
-
accessibilityLink?:
|
|
8
|
-
privacyLink?:
|
|
7
|
+
accessibilityLink?: FooterLink;
|
|
8
|
+
privacyLink?: FooterLink;
|
|
9
9
|
contactLink?: FooterLink;
|
|
10
|
-
printerLink?:
|
|
10
|
+
printerLink?: FooterLink;
|
|
11
|
+
termsOfUseLink?: FooterLink;
|
|
11
12
|
}
|
|
12
13
|
export interface SimpleFooterLinks {
|
|
13
|
-
accessibilityLink:
|
|
14
|
-
privacyLink:
|
|
15
|
-
printerLink:
|
|
16
|
-
contactLink?:
|
|
14
|
+
accessibilityLink: FooterLink;
|
|
15
|
+
privacyLink: FooterLink;
|
|
16
|
+
printerLink: FooterLink;
|
|
17
|
+
contactLink?: FooterLink;
|
|
18
|
+
termsOfUseLink?: FooterLink;
|
|
17
19
|
}
|
|
18
20
|
export type FooterContentType = 'text' | 'list' | 'html';
|
|
19
21
|
export type HeadingLevelType = 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
@@ -13,7 +13,7 @@ export declare class OntarioFooter {
|
|
|
13
13
|
type: OntarioFooterType;
|
|
14
14
|
/**
|
|
15
15
|
* A prop that stores the required links for all footers.
|
|
16
|
-
* Available options are 'accessibilityLink', 'privacyLink', 'contactLink' and 'printerLink'
|
|
16
|
+
* Available options are 'accessibilityLink', 'privacyLink', 'contactLink','termsOfUseLink' and 'printerLink'
|
|
17
17
|
*/
|
|
18
18
|
footerLinks: FooterLinks | string;
|
|
19
19
|
/**
|
|
@@ -459,7 +459,7 @@ export namespace Components {
|
|
|
459
459
|
*/
|
|
460
460
|
assetBasePath: string;
|
|
461
461
|
/**
|
|
462
|
-
* A prop that stores the required links for all footers. Available options are 'accessibilityLink', 'privacyLink', 'contactLink' and 'printerLink'
|
|
462
|
+
* A prop that stores the required links for all footers. Available options are 'accessibilityLink', 'privacyLink', 'contactLink','termsOfUseLink' and 'printerLink'
|
|
463
463
|
*/
|
|
464
464
|
footerLinks: FooterLinks | string;
|
|
465
465
|
/**
|
|
@@ -3753,7 +3753,7 @@ declare namespace LocalJSX {
|
|
|
3753
3753
|
*/
|
|
3754
3754
|
assetBasePath?: string;
|
|
3755
3755
|
/**
|
|
3756
|
-
* A prop that stores the required links for all footers. Available options are 'accessibilityLink', 'privacyLink', 'contactLink' and 'printerLink'
|
|
3756
|
+
* A prop that stores the required links for all footers. Available options are 'accessibilityLink', 'privacyLink', 'contactLink','termsOfUseLink' and 'printerLink'
|
|
3757
3757
|
*/
|
|
3758
3758
|
footerLinks?: FooterLinks | string;
|
|
3759
3759
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ongov/ontario-design-system-component-library",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Ontario Design System Component Library",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -102,5 +102,5 @@
|
|
|
102
102
|
"collection:main": "dist/collection/index.js",
|
|
103
103
|
"es2015": "dist/esm/index.mjs",
|
|
104
104
|
"es2017": "dist/esm/index.mjs",
|
|
105
|
-
"gitHead": "
|
|
105
|
+
"gitHead": "f769c5fb19eb7fd246aeb837df1fe8766547efab"
|
|
106
106
|
}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
.ontario-card {
|
|
14
14
|
box-shadow: 0rem 0.1875rem 0.5rem 0.0625rem rgba(0, 0, 0, 0.4);
|
|
15
15
|
border-radius: globalVariables.$global-radius;
|
|
16
|
-
margin: spacing.$spacing-
|
|
16
|
+
margin-bottom: spacing.$spacing-7;
|
|
17
17
|
padding: spacing.$spacing-0;
|
|
18
18
|
/*
|
|
19
19
|
* Required for cards to stay the same height regardless of content size.
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
transition: all 0.3s ease-in-out;
|
|
25
25
|
position: relative;
|
|
26
26
|
cursor: pointer;
|
|
27
|
+
background: colours.$ontario-colour-white;
|
|
27
28
|
|
|
28
29
|
&:hover {
|
|
29
30
|
box-shadow: 0rem 0.375rem 0.75rem 0.125rem rgba(0, 0, 0, 0.35);
|
|
@@ -108,7 +109,11 @@
|
|
|
108
109
|
|
|
109
110
|
.ontario-card--image-true & {
|
|
110
111
|
border-radius: 0;
|
|
111
|
-
@at-root .ontario-
|
|
112
|
+
@at-root .ontario-card__image-right & {
|
|
113
|
+
border-radius: globalVariables.$global-radius 0 0 0;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
@at-root .ontario-card__image-left & {
|
|
112
117
|
border-radius: 0 globalVariables.$global-radius 0 0;
|
|
113
118
|
}
|
|
114
119
|
}
|
|
@@ -186,7 +191,7 @@ $ontario-card-heading-colours: (
|
|
|
186
191
|
|
|
187
192
|
.ontario-card__text-container {
|
|
188
193
|
.ontario-card__card-type--horizontal & {
|
|
189
|
-
width:
|
|
194
|
+
width: math.percentage(math.div(2, 3));
|
|
190
195
|
}
|
|
191
196
|
|
|
192
197
|
.ontario-card__image-size-one-fourth & {
|
|
@@ -5,51 +5,35 @@
|
|
|
5
5
|
.ontario-card-collection__container {
|
|
6
6
|
display: flex;
|
|
7
7
|
flex-wrap: wrap;
|
|
8
|
-
|
|
8
|
+
gap: spacing.$spacing-6;
|
|
9
9
|
margin: spacing.$spacing-0;
|
|
10
10
|
padding: spacing.$spacing-0;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
.ontario-card-collecton--cards-per-row-4 ::slotted(ontario-card) {
|
|
14
|
-
width: calc(25% -
|
|
15
|
-
|
|
16
|
-
&:nth-child(4n) {
|
|
17
|
-
margin-right: spacing.$spacing-0;
|
|
18
|
-
}
|
|
14
|
+
width: calc(25% - 1.5rem);
|
|
19
15
|
|
|
20
16
|
@media screen and (max-width: breakpoints.$medium-breakpoint) {
|
|
21
|
-
width: calc(50% -
|
|
22
|
-
|
|
23
|
-
&:nth-child(2n) {
|
|
24
|
-
margin-right: spacing.$spacing-0;
|
|
25
|
-
}
|
|
17
|
+
width: calc(50% - 1rem);
|
|
26
18
|
}
|
|
27
19
|
|
|
28
20
|
@media screen and (max-width: breakpoints.$small-breakpoint) {
|
|
29
|
-
width:
|
|
21
|
+
width: 100%;
|
|
30
22
|
}
|
|
31
23
|
}
|
|
32
24
|
|
|
33
25
|
.ontario-card-collecton--cards-per-row-3 ::slotted(ontario-card) {
|
|
34
|
-
width: calc(33.3% - 1.
|
|
35
|
-
|
|
36
|
-
&:nth-child(3n) {
|
|
37
|
-
margin-right: spacing.$spacing-0;
|
|
38
|
-
}
|
|
26
|
+
width: calc(33.3% - 1.33rem);
|
|
39
27
|
|
|
40
28
|
@media screen and (max-width: breakpoints.$small-breakpoint) {
|
|
41
|
-
width:
|
|
29
|
+
width: 100%;
|
|
42
30
|
}
|
|
43
31
|
}
|
|
44
32
|
|
|
45
33
|
.ontario-card-collecton--cards-per-row-2 ::slotted(ontario-card) {
|
|
46
|
-
width: calc(50% -
|
|
47
|
-
|
|
48
|
-
&:nth-child(2n) {
|
|
49
|
-
margin-right: spacing.$spacing-0;
|
|
50
|
-
}
|
|
34
|
+
width: calc(50% - 1rem);
|
|
51
35
|
|
|
52
36
|
@media screen and (max-width: breakpoints.$small-breakpoint) {
|
|
53
|
-
width:
|
|
37
|
+
width: 100%;
|
|
54
38
|
}
|
|
55
39
|
}
|
|
@@ -13,6 +13,7 @@ export const SimpleFooter: FunctionalComponent<SimpleFooterProps> = ({
|
|
|
13
13
|
contactLink,
|
|
14
14
|
printerLink,
|
|
15
15
|
className,
|
|
16
|
+
termsOfUseLink,
|
|
16
17
|
}) => {
|
|
17
18
|
return (
|
|
18
19
|
<div class={`ontario-row ${className ?? ''}`}>
|
|
@@ -35,6 +36,13 @@ export const SimpleFooter: FunctionalComponent<SimpleFooterProps> = ({
|
|
|
35
36
|
</a>
|
|
36
37
|
</li>
|
|
37
38
|
)}
|
|
39
|
+
{termsOfUseLink && (
|
|
40
|
+
<li>
|
|
41
|
+
<a class="ontario-footer__link" href={termsOfUseLink?.href}>
|
|
42
|
+
{termsOfUseLink?.text}
|
|
43
|
+
</a>
|
|
44
|
+
</li>
|
|
45
|
+
)}
|
|
38
46
|
</ul>
|
|
39
47
|
<div class="ontario-footer__copyright">
|
|
40
48
|
<a class="ontario-footer__link" href={printerLink?.href}>
|
|
@@ -1,24 +1,26 @@
|
|
|
1
1
|
export type OntarioFooterType = 'default' | 'twoColumn' | 'threeColumn';
|
|
2
2
|
|
|
3
3
|
export interface FooterLink {
|
|
4
|
-
text
|
|
4
|
+
text: string;
|
|
5
5
|
href: string;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
// External interface to be passed to the Footer component
|
|
9
9
|
export interface FooterLinks {
|
|
10
|
-
accessibilityLink?:
|
|
11
|
-
privacyLink?:
|
|
10
|
+
accessibilityLink?: FooterLink;
|
|
11
|
+
privacyLink?: FooterLink;
|
|
12
12
|
contactLink?: FooterLink;
|
|
13
|
-
printerLink?:
|
|
13
|
+
printerLink?: FooterLink;
|
|
14
|
+
termsOfUseLink?: FooterLink;
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
// Internal interface for SimpleFooter Component
|
|
17
18
|
export interface SimpleFooterLinks {
|
|
18
|
-
accessibilityLink:
|
|
19
|
-
privacyLink:
|
|
20
|
-
printerLink:
|
|
21
|
-
contactLink?:
|
|
19
|
+
accessibilityLink: FooterLink;
|
|
20
|
+
privacyLink: FooterLink;
|
|
21
|
+
printerLink: FooterLink;
|
|
22
|
+
contactLink?: FooterLink;
|
|
23
|
+
termsOfUseLink?: FooterLink;
|
|
22
24
|
}
|
|
23
25
|
|
|
24
26
|
export type FooterContentType = 'text' | 'list' | 'html';
|
|
@@ -36,7 +36,7 @@ export class OntarioFooter {
|
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
38
|
* A prop that stores the required links for all footers.
|
|
39
|
-
* Available options are 'accessibilityLink', 'privacyLink', 'contactLink' and 'printerLink'
|
|
39
|
+
* Available options are 'accessibilityLink', 'privacyLink', 'contactLink','termsOfUseLink' and 'printerLink'
|
|
40
40
|
*/
|
|
41
41
|
@Prop() footerLinks: FooterLinks | string;
|
|
42
42
|
|
|
@@ -210,7 +210,7 @@ export class OntarioFooter {
|
|
|
210
210
|
|
|
211
211
|
private getFooterLinks(): SimpleFooterLinks {
|
|
212
212
|
const { language, translations, footerLinksState } = this;
|
|
213
|
-
const { accessibilityLink, privacyLink, contactLink, printerLink } = footerLinksState ?? {};
|
|
213
|
+
const { accessibilityLink, privacyLink, contactLink, termsOfUseLink, printerLink } = footerLinksState ?? {};
|
|
214
214
|
|
|
215
215
|
const links: SimpleFooterLinks = {
|
|
216
216
|
accessibilityLink: {
|
|
@@ -228,12 +228,19 @@ export class OntarioFooter {
|
|
|
228
228
|
};
|
|
229
229
|
|
|
230
230
|
if (contactLink) {
|
|
231
|
-
links
|
|
231
|
+
links.contactLink = {
|
|
232
232
|
href: contactLink.href,
|
|
233
233
|
text: contactLink.text ?? translations.contactUs[language],
|
|
234
234
|
};
|
|
235
235
|
}
|
|
236
236
|
|
|
237
|
+
if (termsOfUseLink) {
|
|
238
|
+
links.termsOfUseLink = {
|
|
239
|
+
href: termsOfUseLink.href,
|
|
240
|
+
text: termsOfUseLink.text ?? translations.termsOfUse[language],
|
|
241
|
+
};
|
|
242
|
+
}
|
|
243
|
+
|
|
237
244
|
return links;
|
|
238
245
|
}
|
|
239
246
|
|
|
@@ -437,18 +437,23 @@ footer-links='{
|
|
|
437
437
|
"text": "Contact",
|
|
438
438
|
"href": "https://www.ontario.ca/feedback/contact-us"
|
|
439
439
|
},
|
|
440
|
+
"termsOfUseLink": {
|
|
441
|
+
"text": "Terms of use",
|
|
442
|
+
"href": "https://www.ontario.ca/page/terms-use"
|
|
443
|
+
},
|
|
440
444
|
"printerLink": {
|
|
441
445
|
"href": "https://www.ontario.ca/page/copyright-information"
|
|
442
446
|
}
|
|
443
447
|
}'
|
|
444
448
|
```
|
|
445
449
|
|
|
446
|
-
| **Property name** | **Type**
|
|
447
|
-
| ------------------- |
|
|
448
|
-
| `accessibilityLink` | `
|
|
449
|
-
| `privacyLink` | `
|
|
450
|
-
| `contactLink` | `
|
|
451
|
-
| `
|
|
450
|
+
| **Property name** | **Type** | **Description** | Required |
|
|
451
|
+
| ------------------- | ----------------------------------- | ------------------------------------------------------------------------ | -------- |
|
|
452
|
+
| `accessibilityLink` | [`FooterLinkType`](#footerlinktype) | The URL and text for the accessibility footer link | NO |
|
|
453
|
+
| `privacyLink` | [`FooterLinkType`](#footerlinktype) | The URL and text for the privacy footer link | NO |
|
|
454
|
+
| `contactLink` | [`FooterLinkType`](#footerlinktype) | The URL and text for the contact us footer link | NO |
|
|
455
|
+
| `termsOfUseLink` | [`FooterLinkType`](#footerlinktype) | The URL and text for the terms of use footer link | NO |
|
|
456
|
+
| `printerLink` | [`FooterLinkType`](#footerlinktype) | The URL and text for the printer footer link. This property is optional. | NO |
|
|
452
457
|
|
|
453
458
|
### FooterLinkType
|
|
454
459
|
|
|
@@ -589,7 +594,7 @@ two-column-options='{
|
|
|
589
594
|
| Property | Attribute | Description | Type | Default |
|
|
590
595
|
| -------------------- | ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
|
|
591
596
|
| `assetBasePath` | `asset-base-path` | The base path to an assets folder containing the Design System assets | `string` | `undefined` |
|
|
592
|
-
| `footerLinks` | `footer-links` | A prop that stores the required links for all footers. Available options are 'accessibilityLink', 'privacyLink', 'contactLink' and 'printerLink'
|
|
597
|
+
| `footerLinks` | `footer-links` | A prop that stores the required links for all footers. Available options are 'accessibilityLink', 'privacyLink', 'contactLink','termsOfUseLink' and 'printerLink' | `FooterLinks \| string` | `undefined` |
|
|
593
598
|
| `language` | `language` | The language of the component. This is used for translations, and is by default set through event listeners checking for a language property from the header. If no language is passed, it will default to English. | `"en" \| "fr"` | `undefined` |
|
|
594
599
|
| `socialLinks` | `social-links` | Social media links to render in the footer. Available options are 'facebook', 'twitter', 'instagram' and 'youtube' | `string \| { facebook?: string \| undefined; twitter?: string \| undefined; instagram?: string \| undefined; youtube?: string \| undefined; }` | `undefined` |
|
|
595
600
|
| `threeColumnOptions` | `three-column-options` | Stores the titles and content for the expanded three column footer. | `ThreeColumnOptions \| string \| undefined` | `undefined` |
|
|
@@ -58,7 +58,7 @@ describe('ontario-footer', () => {
|
|
|
58
58
|
<li><a class="ontario-footer__link" href="https://www.ontario.ca/feedback/contact-us">Contact</a></li>
|
|
59
59
|
</ul>
|
|
60
60
|
<div class="ontario-footer__copyright">
|
|
61
|
-
<a class="ontario-footer__link" href="https://www.ontario.ca/page/copyright-information">© King's Printer for Ontario, <span class="ontario-nbsp">2012–
|
|
61
|
+
<a class="ontario-footer__link" href="https://www.ontario.ca/page/copyright-information">© King's Printer for Ontario, <span class="ontario-nbsp">2012–25</span></a>
|
|
62
62
|
</div>
|
|
63
63
|
</div>
|
|
64
64
|
</div>
|
|
@@ -201,7 +201,7 @@ describe('ontario-footer', () => {
|
|
|
201
201
|
<li><a class="ontario-footer__link" href="https://www.ontario.ca/feedback/contact-us">Contact</a></li>
|
|
202
202
|
</ul>
|
|
203
203
|
<div class="ontario-footer__copyright">
|
|
204
|
-
<a class="ontario-footer__link" href="https://www.ontario.ca/page/copyright-information">© King's Printer for Ontario, <span class="ontario-nbsp">2012–
|
|
204
|
+
<a class="ontario-footer__link" href="https://www.ontario.ca/page/copyright-information">© King's Printer for Ontario, <span class="ontario-nbsp">2012–25</span></a>
|
|
205
205
|
</div>
|
|
206
206
|
</div>
|
|
207
207
|
</div>
|
|
@@ -370,7 +370,7 @@ describe('ontario-footer', () => {
|
|
|
370
370
|
<li><a class="ontario-footer__link" href="https://www.ontario.ca/feedback/contact-us">Contact</a></li>
|
|
371
371
|
</ul>
|
|
372
372
|
<div class="ontario-footer__copyright">
|
|
373
|
-
<a class="ontario-footer__link" href="https://www.ontario.ca/page/copyright-information">© King's Printer for Ontario, <span class="ontario-nbsp">2012–
|
|
373
|
+
<a class="ontario-footer__link" href="https://www.ontario.ca/page/copyright-information">© King's Printer for Ontario, <span class="ontario-nbsp">2012–25</span></a>
|
|
374
374
|
</div>
|
|
375
375
|
</div>
|
|
376
376
|
</div>
|
|
@@ -549,7 +549,7 @@ describe('ontario-footer', () => {
|
|
|
549
549
|
<li><a class="ontario-footer__link" href="https://www.ontario.ca/feedback/contact-us">Contact</a></li>
|
|
550
550
|
</ul>
|
|
551
551
|
<div class="ontario-footer__copyright">
|
|
552
|
-
<a class="ontario-footer__link" href="https://www.ontario.ca/page/copyright-information">© King's Printer for Ontario, <span class="ontario-nbsp">2012–
|
|
552
|
+
<a class="ontario-footer__link" href="https://www.ontario.ca/page/copyright-information">© King's Printer for Ontario, <span class="ontario-nbsp">2012–25</span></a>
|
|
553
553
|
</div>
|
|
554
554
|
</div>
|
|
555
555
|
</div>
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/6-components/_text-inputs.component.scss';
|
|
15
15
|
@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/7-overrides/_visibility.overrides.scss';
|
|
16
16
|
|
|
17
|
-
$ontario-search-
|
|
18
|
-
$ontario-search-
|
|
17
|
+
$ontario-search-padding: 7.2rem;
|
|
18
|
+
$ontario-search-padding--mobile: 6.4rem;
|
|
19
19
|
|
|
20
20
|
$ontario-header-logo-width: 180px;
|
|
21
21
|
$ontario-header-logo-width--mobile: 45px;
|
|
@@ -304,7 +304,7 @@ $ontario-navigation-container-min-width: 290px;
|
|
|
304
304
|
margin-bottom: spacing.$spacing-0;
|
|
305
305
|
height: globalVariables.$standard-input-height;
|
|
306
306
|
padding-left: spacing.$spacing-3;
|
|
307
|
-
padding-right: $ontario-search-
|
|
307
|
+
padding-right: $ontario-search-padding;
|
|
308
308
|
|
|
309
309
|
&:invalid + input[type='reset'] {
|
|
310
310
|
display: none;
|
|
@@ -346,7 +346,7 @@ $ontario-navigation-container-min-width: 290px;
|
|
|
346
346
|
|
|
347
347
|
@media screen and (min-width: breakpoints.$small-breakpoint) and (max-width: breakpoints.$medium-breakpoint) {
|
|
348
348
|
padding-left: spacing.$spacing-4;
|
|
349
|
-
padding-right: $ontario-search-
|
|
349
|
+
padding-right: $ontario-search-padding--mobile;
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
352
|
|
package/src/components.d.ts
CHANGED
|
@@ -459,7 +459,7 @@ export namespace Components {
|
|
|
459
459
|
*/
|
|
460
460
|
assetBasePath: string;
|
|
461
461
|
/**
|
|
462
|
-
* A prop that stores the required links for all footers. Available options are 'accessibilityLink', 'privacyLink', 'contactLink' and 'printerLink'
|
|
462
|
+
* A prop that stores the required links for all footers. Available options are 'accessibilityLink', 'privacyLink', 'contactLink','termsOfUseLink' and 'printerLink'
|
|
463
463
|
*/
|
|
464
464
|
footerLinks: FooterLinks | string;
|
|
465
465
|
/**
|
|
@@ -3753,7 +3753,7 @@ declare namespace LocalJSX {
|
|
|
3753
3753
|
*/
|
|
3754
3754
|
assetBasePath?: string;
|
|
3755
3755
|
/**
|
|
3756
|
-
* A prop that stores the required links for all footers. Available options are 'accessibilityLink', 'privacyLink', 'contactLink' and 'printerLink'
|
|
3756
|
+
* A prop that stores the required links for all footers. Available options are 'accessibilityLink', 'privacyLink', 'contactLink','termsOfUseLink' and 'printerLink'
|
|
3757
3757
|
*/
|
|
3758
3758
|
footerLinks?: FooterLinks | string;
|
|
3759
3759
|
/**
|
package/src/index.html
CHANGED
|
@@ -415,7 +415,7 @@
|
|
|
415
415
|
</ontario-card-collection>
|
|
416
416
|
|
|
417
417
|
<h3>Edge cases</h3>
|
|
418
|
-
<ontario-card-collection cards-per-row="
|
|
418
|
+
<ontario-card-collection cards-per-row="3">
|
|
419
419
|
<ontario-card
|
|
420
420
|
header-colour="orange"
|
|
421
421
|
label="Card Title 1 Card Title 1 Card Title 1"
|
|
@@ -437,7 +437,7 @@
|
|
|
437
437
|
</ontario-card>
|
|
438
438
|
</ontario-card-collection>
|
|
439
439
|
|
|
440
|
-
<ontario-card-collection cards-per-row="
|
|
440
|
+
<ontario-card-collection cards-per-row="2">
|
|
441
441
|
<ontario-card
|
|
442
442
|
layout="horizontal"
|
|
443
443
|
header-colour="orange"
|
|
@@ -1386,6 +1386,10 @@
|
|
|
1386
1386
|
},
|
|
1387
1387
|
"printerLink": {
|
|
1388
1388
|
"href": "https://www.ontario.ca/page/copyright-information"
|
|
1389
|
+
},
|
|
1390
|
+
"termsOfUseLink": {
|
|
1391
|
+
"text": "Terms of Use",
|
|
1392
|
+
"href": "https://www.ontario.ca/page/terms-use"
|
|
1389
1393
|
}
|
|
1390
1394
|
}'
|
|
1391
1395
|
social-links='{
|
|
@@ -23,6 +23,16 @@
|
|
|
23
23
|
"fr": "Accessibilité"
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
|
+
"termsOfUse": {
|
|
27
|
+
"link": {
|
|
28
|
+
"en": "https://www.ontario.ca/page/terms-use",
|
|
29
|
+
"fr": "https://www.ontario.ca/fr/page/conditions-dutilisation"
|
|
30
|
+
},
|
|
31
|
+
"text": {
|
|
32
|
+
"en": "Terms of Use",
|
|
33
|
+
"fr": "Conditions d’utilisation"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
26
36
|
"accordion": {
|
|
27
37
|
"collapse": {
|
|
28
38
|
"en": "Collapse all",
|