@scania/tegel 1.27.0-toast-aria-live.0 → 1.28.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/cjs/loader.cjs.js +1 -1
- package/dist/cjs/tds-dropdown_2.cjs.entry.js +8 -8
- package/dist/cjs/tds-footer-group.cjs.entry.js +27 -5
- package/dist/cjs/tds-footer-item.cjs.entry.js +2 -2
- package/dist/cjs/tds-footer.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-brand-symbol.cjs.entry.js +6 -2
- package/dist/cjs/tds-header-dropdown.cjs.entry.js +26 -3
- package/dist/cjs/tds-header-hamburger.cjs.entry.js +7 -1
- package/dist/cjs/tds-header-launcher-button.cjs.entry.js +2 -1
- package/dist/cjs/tds-header-launcher.cjs.entry.js +23 -2
- package/dist/cjs/tds-icon.cjs.entry.js +3 -2
- package/dist/cjs/tds-inline-tabs.cjs.entry.js +1 -1
- package/dist/cjs/tds-modal.cjs.entry.js +1 -1
- package/dist/cjs/tds-navigation-tabs.cjs.entry.js +1 -1
- package/dist/cjs/tds-popover-canvas.cjs.entry.js +3 -2
- package/dist/cjs/tds-popover-core.cjs.entry.js +55 -11
- package/dist/cjs/tds-popover-menu-item.cjs.entry.js +2 -2
- package/dist/cjs/tds-popover-menu.cjs.entry.js +1 -1
- package/dist/cjs/tds-radio-button.cjs.entry.js +3 -1
- package/dist/cjs/tds-spinner.cjs.entry.js +1 -1
- package/dist/cjs/tds-step.cjs.entry.js +2 -1
- package/dist/cjs/tds-stepper.cjs.entry.js +2 -1
- package/dist/cjs/tds-text-field.cjs.entry.js +31 -16
- package/dist/cjs/tds-textarea.cjs.entry.js +9 -3
- package/dist/cjs/tds-toast.cjs.entry.js +3 -3
- package/dist/cjs/tds-toggle.cjs.entry.js +2 -2
- package/dist/cjs/tds-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/tegel.cjs.js +1 -1
- package/dist/collection/components/dropdown/dropdown.js +8 -8
- package/dist/collection/components/footer/footer-group/footer-group.css +23 -21
- package/dist/collection/components/footer/footer-group/footer-group.js +55 -5
- package/dist/collection/components/footer/footer-item/footer-item.css +17 -17
- package/dist/collection/components/footer/footer-item/footer-item.js +2 -2
- package/dist/collection/components/footer/footer.css +1 -1
- package/dist/collection/components/header/header-brand-symbol/header-brand-symbol.css +1 -1
- package/dist/collection/components/header/header-brand-symbol/header-brand-symbol.js +6 -2
- package/dist/collection/components/header/header-dropdown/header-dropdown.js +49 -3
- package/dist/collection/components/header/header-hamburger/header-hamburger.js +30 -1
- package/dist/collection/components/header/header-launcher/header-launcher.js +50 -2
- package/dist/collection/components/header/header-launcher-button/header-launcher-button.js +19 -1
- package/dist/collection/components/icon/icon.js +21 -2
- package/dist/collection/components/modal/modal.css +48 -43
- package/dist/collection/components/popover-canvas/popover-canvas.js +21 -2
- package/dist/collection/components/popover-core/popover-core.js +63 -10
- package/dist/collection/components/popover-core/tds-popover-core.css +31 -40
- package/dist/collection/components/popover-menu/popover-menu-item/popover-menu-item.js +2 -2
- package/dist/collection/components/popover-menu/popover-menu.js +1 -1
- package/dist/collection/components/radio-button/radio-button.js +37 -1
- package/dist/collection/components/spinner/spinner.css +62 -39
- package/dist/collection/components/stepper/step/step.js +19 -1
- package/dist/collection/components/stepper/stepper.js +20 -1
- package/dist/collection/components/tabs/inline-tabs/inline-tabs.css +0 -1
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.css +2 -3
- package/dist/collection/components/text-field/text-field.css +21 -9
- package/dist/collection/components/text-field/text-field.js +48 -15
- package/dist/collection/components/textarea/textarea.js +26 -3
- package/dist/collection/components/toast/toast.js +3 -3
- package/dist/collection/components/toggle/toggle.js +2 -2
- package/dist/collection/components/tooltip/tooltip.js +2 -2
- package/dist/components/{p-2d93a742.js → p-1c606f82.js} +1 -1
- package/dist/components/{p-e71e3b2e.js → p-252f3d4d.js} +59 -13
- package/dist/components/{p-17338bcb.js → p-3dcfe1f4.js} +3 -3
- package/dist/components/{p-60ff84f2.js → p-789bb453.js} +5 -3
- package/dist/components/{p-4487c541.js → p-92fb75a7.js} +4 -2
- package/dist/components/{p-663b8e51.js → p-c0b84c59.js} +9 -9
- package/dist/components/{p-83db8b35.js → p-f8a36676.js} +5 -3
- package/dist/components/tds-accordion-item.js +1 -1
- package/dist/components/tds-banner.js +1 -1
- package/dist/components/tds-datetime.js +1 -1
- package/dist/components/tds-dropdown-option.js +1 -1
- package/dist/components/tds-dropdown.js +1 -1
- package/dist/components/tds-folder-tabs.js +1 -1
- package/dist/components/tds-footer-group.js +32 -8
- package/dist/components/tds-footer-item.js +3 -3
- package/dist/components/tds-footer.js +1 -1
- package/dist/components/tds-header-brand-symbol.js +6 -2
- package/dist/components/tds-header-cell.js +1 -1
- package/dist/components/tds-header-dropdown.js +31 -7
- package/dist/components/tds-header-hamburger.js +11 -3
- package/dist/components/tds-header-launcher-button.js +1 -1
- package/dist/components/tds-header-launcher.js +29 -7
- package/dist/components/tds-icon.js +1 -1
- package/dist/components/tds-inline-tabs.js +2 -2
- package/dist/components/tds-message.js +1 -1
- package/dist/components/tds-modal.js +2 -2
- package/dist/components/tds-navigation-tabs.js +2 -2
- package/dist/components/tds-popover-canvas.js +1 -1
- package/dist/components/tds-popover-core.js +1 -1
- package/dist/components/tds-popover-menu-item.js +2 -2
- package/dist/components/tds-popover-menu.js +2 -2
- package/dist/components/tds-radio-button.js +6 -2
- package/dist/components/tds-side-menu-close-button.js +1 -1
- package/dist/components/tds-side-menu-dropdown.js +1 -1
- package/dist/components/tds-slider.js +1 -1
- package/dist/components/tds-spinner.js +1 -1
- package/dist/components/tds-step.js +4 -2
- package/dist/components/tds-stepper.js +4 -2
- package/dist/components/tds-table-body-input-wrapper.js +1 -1
- package/dist/components/tds-table-footer.js +3 -3
- package/dist/components/tds-table-header-input-wrapper.js +1 -1
- package/dist/components/tds-table-toolbar.js +1 -1
- package/dist/components/tds-text-field.js +33 -17
- package/dist/components/tds-textarea.js +13 -6
- package/dist/components/tds-toast.js +4 -4
- package/dist/components/tds-toggle.js +2 -2
- package/dist/components/tds-tooltip.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/tds-dropdown_2.entry.js +8 -8
- package/dist/esm/tds-footer-group.entry.js +27 -5
- package/dist/esm/tds-footer-item.entry.js +3 -3
- package/dist/esm/tds-footer.entry.js +1 -1
- package/dist/esm/tds-header-brand-symbol.entry.js +6 -2
- package/dist/esm/tds-header-dropdown.entry.js +26 -3
- package/dist/esm/tds-header-hamburger.entry.js +7 -1
- package/dist/esm/tds-header-launcher-button.entry.js +2 -1
- package/dist/esm/tds-header-launcher.entry.js +23 -2
- package/dist/esm/tds-icon.entry.js +3 -2
- package/dist/esm/tds-inline-tabs.entry.js +1 -1
- package/dist/esm/tds-modal.entry.js +1 -1
- package/dist/esm/tds-navigation-tabs.entry.js +1 -1
- package/dist/esm/tds-popover-canvas.entry.js +3 -2
- package/dist/esm/tds-popover-core.entry.js +55 -11
- package/dist/esm/tds-popover-menu-item.entry.js +2 -2
- package/dist/esm/tds-popover-menu.entry.js +1 -1
- package/dist/esm/tds-radio-button.entry.js +3 -1
- package/dist/esm/tds-spinner.entry.js +1 -1
- package/dist/esm/tds-step.entry.js +2 -1
- package/dist/esm/tds-stepper.entry.js +2 -1
- package/dist/esm/tds-text-field.entry.js +31 -16
- package/dist/esm/tds-textarea.entry.js +9 -3
- package/dist/esm/tds-toast.entry.js +3 -3
- package/dist/esm/tds-toggle.entry.js +2 -2
- package/dist/esm/tds-tooltip.entry.js +2 -2
- package/dist/esm/tegel.js +1 -1
- package/dist/tegel/{p-ad9a2141.entry.js → p-033d991e.entry.js} +1 -1
- package/dist/tegel/p-24db6b5b.entry.js +1 -0
- package/dist/tegel/p-27a4a7d0.entry.js +1 -0
- package/dist/tegel/p-28cf7204.entry.js +1 -0
- package/dist/tegel/p-302fea99.entry.js +1 -0
- package/dist/tegel/p-31bc440c.entry.js +1 -0
- package/dist/tegel/p-3e9ca19a.entry.js +1 -0
- package/dist/tegel/p-44ac6a20.entry.js +1 -0
- package/dist/tegel/{p-769d0503.entry.js → p-46205cfb.entry.js} +1 -1
- package/dist/tegel/p-54a20280.entry.js +1 -0
- package/dist/tegel/p-5a3ff0d3.entry.js +1 -0
- package/dist/tegel/p-660176d6.entry.js +1 -0
- package/dist/tegel/{p-eaa279dd.entry.js → p-81111221.entry.js} +1 -1
- package/dist/tegel/{p-668b7662.entry.js → p-8d7bf652.entry.js} +1 -1
- package/dist/tegel/p-b58f68f0.entry.js +1 -0
- package/dist/tegel/{p-5ba254ee.entry.js → p-c10be10e.entry.js} +1 -1
- package/dist/tegel/p-c71acb02.entry.js +1 -0
- package/dist/tegel/p-ceab8f75.entry.js +1 -0
- package/dist/tegel/p-e1abd593.entry.js +1 -0
- package/dist/tegel/p-e3c3bdac.entry.js +1 -0
- package/dist/tegel/p-e46744bc.entry.js +1 -0
- package/dist/tegel/p-ea9e7345.entry.js +1 -0
- package/dist/tegel/{p-97f10223.entry.js → p-eec22b6b.entry.js} +1 -1
- package/dist/tegel/p-f034fc0c.entry.js +1 -0
- package/dist/tegel/p-fa342278.entry.js +1 -0
- package/dist/tegel/{p-b9f81e53.entry.js → p-fc6196c4.entry.js} +1 -1
- package/dist/tegel/tegel.css +2 -2
- package/dist/tegel/tegel.esm.js +1 -1
- package/dist/types/components/footer/footer-group/footer-group.d.ts +7 -0
- package/dist/types/components/header/header-brand-symbol/header-brand-symbol.d.ts +1 -1
- package/dist/types/components/header/header-dropdown/header-dropdown.d.ts +4 -0
- package/dist/types/components/header/header-hamburger/header-hamburger.d.ts +3 -0
- package/dist/types/components/header/header-launcher/header-launcher.d.ts +4 -0
- package/dist/types/components/header/header-launcher-button/header-launcher-button.d.ts +2 -0
- package/dist/types/components/icon/icon.d.ts +2 -0
- package/dist/types/components/popover-canvas/popover-canvas.d.ts +2 -0
- package/dist/types/components/popover-core/popover-core.d.ts +4 -0
- package/dist/types/components/radio-button/radio-button.d.ts +4 -0
- package/dist/types/components/stepper/step/step.d.ts +1 -0
- package/dist/types/components/stepper/stepper.d.ts +2 -0
- package/dist/types/components/text-field/text-field.d.ts +6 -4
- package/dist/types/components/textarea/textarea.d.ts +3 -0
- package/dist/types/components.d.ts +98 -0
- package/package.json +1 -1
- package/dist/tegel/p-035e58e6.entry.js +0 -1
- package/dist/tegel/p-125a6b06.entry.js +0 -1
- package/dist/tegel/p-28517288.entry.js +0 -1
- package/dist/tegel/p-288a09ef.entry.js +0 -1
- package/dist/tegel/p-4f5f152a.entry.js +0 -1
- package/dist/tegel/p-542d7b3e.entry.js +0 -1
- package/dist/tegel/p-5a7110b8.entry.js +0 -1
- package/dist/tegel/p-5db5c8f4.entry.js +0 -1
- package/dist/tegel/p-654785d2.entry.js +0 -1
- package/dist/tegel/p-746e2927.entry.js +0 -1
- package/dist/tegel/p-754a4921.entry.js +0 -1
- package/dist/tegel/p-843413ba.entry.js +0 -1
- package/dist/tegel/p-aef6b130.entry.js +0 -1
- package/dist/tegel/p-b114ec3d.entry.js +0 -1
- package/dist/tegel/p-b39ffad4.entry.js +0 -1
- package/dist/tegel/p-c56be8d1.entry.js +0 -1
- package/dist/tegel/p-dfbbaefd.entry.js +0 -1
- package/dist/tegel/p-ea3e071f.entry.js +0 -1
- package/dist/tegel/p-ee7f07ae.entry.js +0 -1
|
@@ -5,12 +5,13 @@ export class Icon {
|
|
|
5
5
|
constructor() {
|
|
6
6
|
this.setIcons = () => this.arrayOfIcons.map((element) => {
|
|
7
7
|
if (element.name === this.name) {
|
|
8
|
-
return (h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", "aria-labelledby": this.svgTitle ? `title-${this.name}` : undefined, "aria-describedby": this.svgDescription ? `desc-${this.name}` : undefined, role: "img", style: { fontSize: this.size }, height: this.size, width: this.size }, this.svgTitle && h("title", { id: `title-${this.name}` }, this.svgTitle), this.svgDescription && h("desc", { id: `desc-${this.name}` }, this.svgDescription), h("path", { fill: "currentColor", d: element.definition })));
|
|
8
|
+
return (h("svg", { "aria-hidden": this.tdsAriaHidden, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", "aria-labelledby": this.svgTitle ? `title-${this.name}` : undefined, "aria-describedby": this.svgDescription ? `desc-${this.name}` : undefined, role: "img", style: { fontSize: this.size }, height: this.size, width: this.size }, this.svgTitle && h("title", { id: `title-${this.name}` }, this.svgTitle), this.svgDescription && h("desc", { id: `desc-${this.name}` }, this.svgDescription), h("path", { fill: "currentColor", d: element.definition })));
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
11
|
this.name = 'truck';
|
|
12
12
|
this.size = '16px';
|
|
13
13
|
this.svgTitle = undefined;
|
|
14
|
+
this.tdsAriaHidden = false;
|
|
14
15
|
this.svgDescription = undefined;
|
|
15
16
|
this.icons_object = iconsCollection;
|
|
16
17
|
this.arrayOfIcons = [];
|
|
@@ -28,7 +29,7 @@ export class Icon {
|
|
|
28
29
|
this.arrayOfIcons = [...this.arrayOfIcons];
|
|
29
30
|
}
|
|
30
31
|
render() {
|
|
31
|
-
return h(Host, { key: '
|
|
32
|
+
return h(Host, { key: 'd19a1de2f0267b93717324d424b9c89e19bbcb21' }, this.setIcons());
|
|
32
33
|
}
|
|
33
34
|
static get is() { return "tds-icon"; }
|
|
34
35
|
static get encapsulation() { return "shadow"; }
|
|
@@ -103,6 +104,24 @@ export class Icon {
|
|
|
103
104
|
"attribute": "svg-title",
|
|
104
105
|
"reflect": false
|
|
105
106
|
},
|
|
107
|
+
"tdsAriaHidden": {
|
|
108
|
+
"type": "boolean",
|
|
109
|
+
"mutable": false,
|
|
110
|
+
"complexType": {
|
|
111
|
+
"original": "boolean",
|
|
112
|
+
"resolved": "boolean",
|
|
113
|
+
"references": {}
|
|
114
|
+
},
|
|
115
|
+
"required": false,
|
|
116
|
+
"optional": false,
|
|
117
|
+
"docs": {
|
|
118
|
+
"tags": [],
|
|
119
|
+
"text": "Set aria-hidden attribute on svg"
|
|
120
|
+
},
|
|
121
|
+
"attribute": "tds-aria-hidden",
|
|
122
|
+
"reflect": false,
|
|
123
|
+
"defaultValue": "false"
|
|
124
|
+
},
|
|
106
125
|
"svgDescription": {
|
|
107
126
|
"type": "string",
|
|
108
127
|
"mutable": false,
|
|
@@ -1,34 +1,31 @@
|
|
|
1
|
+
/* Typography Usage mixins */
|
|
2
|
+
/* Centralized map of typography types */
|
|
3
|
+
/* Utility mixin */
|
|
1
4
|
/* MIXINS */
|
|
2
5
|
/* MODAL STYLING */
|
|
3
6
|
.tds-modal {
|
|
4
7
|
box-sizing: border-box;
|
|
5
|
-
background-color: var(--
|
|
8
|
+
background-color: var(--background-elevation-layer-02);
|
|
6
9
|
margin: auto;
|
|
7
10
|
position: relative;
|
|
8
|
-
border-radius:
|
|
11
|
+
border-radius: var(--radius-narrow);
|
|
9
12
|
max-height: 85vh;
|
|
10
13
|
overflow-y: auto;
|
|
11
14
|
pointer-events: auto;
|
|
12
|
-
/* SCROLL STUFF */
|
|
13
|
-
/* width */
|
|
14
|
-
/* Track */
|
|
15
|
-
/* Handle */
|
|
16
15
|
}
|
|
17
16
|
.tds-modal * {
|
|
18
17
|
box-sizing: border-box;
|
|
19
18
|
}
|
|
20
19
|
.tds-modal::-webkit-scrollbar {
|
|
21
|
-
width:
|
|
22
|
-
background-color:
|
|
23
|
-
border-radius: 0 1em 1em 0;
|
|
20
|
+
width: 6px;
|
|
21
|
+
background-color: transparent;
|
|
24
22
|
}
|
|
25
23
|
.tds-modal::-webkit-scrollbar-track {
|
|
26
|
-
background-color:
|
|
27
|
-
border-radius: 0 1em 1em 0;
|
|
24
|
+
background-color: transparent;
|
|
28
25
|
}
|
|
29
26
|
.tds-modal::-webkit-scrollbar-thumb {
|
|
30
|
-
background-color: var(--
|
|
31
|
-
border-radius:
|
|
27
|
+
background-color: var(--foreground-elements-transparparent-discrete);
|
|
28
|
+
border-radius: 3px;
|
|
32
29
|
}
|
|
33
30
|
.tds-modal__actions-sticky {
|
|
34
31
|
overflow: hidden;
|
|
@@ -36,8 +33,12 @@
|
|
|
36
33
|
flex-direction: column;
|
|
37
34
|
}
|
|
38
35
|
.tds-modal__actions-sticky .body {
|
|
39
|
-
font: var(--
|
|
40
|
-
|
|
36
|
+
font-family: var(--body-01-font-family);
|
|
37
|
+
font-size: var(--body-01-font-size);
|
|
38
|
+
line-height: var(--body-01-line-height);
|
|
39
|
+
font-weight: var(--body-01-font-weight);
|
|
40
|
+
letter-spacing: var(--body-01-letter-spacing);
|
|
41
|
+
text-transform: var(--body-01-text-transform);
|
|
41
42
|
max-height: calc(85vh - 36px);
|
|
42
43
|
overflow-y: auto;
|
|
43
44
|
}
|
|
@@ -45,13 +46,13 @@
|
|
|
45
46
|
bottom: -1px;
|
|
46
47
|
left: 0;
|
|
47
48
|
right: 0;
|
|
48
|
-
background-color: var(--
|
|
49
|
-
padding:
|
|
49
|
+
background-color: var(--background-elevation-layer-02);
|
|
50
|
+
padding: 24px 16px 16px;
|
|
50
51
|
display: flex;
|
|
51
52
|
gap: 16px;
|
|
52
53
|
}
|
|
53
54
|
.tds-modal__actions-static slot[name=actions] {
|
|
54
|
-
background-color: var(--
|
|
55
|
+
background-color: var(--background-elevation-layer-02);
|
|
55
56
|
display: flex;
|
|
56
57
|
gap: 16px;
|
|
57
58
|
padding: 24px 16px 16px;
|
|
@@ -142,43 +143,47 @@
|
|
|
142
143
|
/* MODAL SUB ELEMENTS */
|
|
143
144
|
.header {
|
|
144
145
|
display: flex;
|
|
145
|
-
padding:
|
|
146
|
+
padding: 16px;
|
|
146
147
|
position: sticky;
|
|
147
148
|
top: 0;
|
|
148
|
-
background-color: var(--
|
|
149
|
+
background-color: var(--background-elevation-layer-02);
|
|
149
150
|
z-index: 1;
|
|
150
151
|
}
|
|
151
152
|
|
|
152
153
|
.header,
|
|
153
154
|
slot[name=header]::slotted(*) {
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
155
|
+
font-family: var(--headline-05-font-family);
|
|
156
|
+
font-size: var(--headline-05-font-size);
|
|
157
|
+
line-height: var(--headline-05-line-height);
|
|
158
|
+
font-weight: var(--headline-05-font-weight);
|
|
159
|
+
letter-spacing: var(--headline-05-letter-spacing);
|
|
160
|
+
text-transform: var(--headline-05-text-transform);
|
|
161
|
+
color: var(--foreground-text-strong);
|
|
158
162
|
margin: 0;
|
|
159
163
|
flex: 1;
|
|
160
164
|
}
|
|
161
165
|
|
|
162
166
|
.body {
|
|
163
|
-
|
|
164
|
-
font: var(--
|
|
165
|
-
|
|
167
|
+
font-family: var(--body-01-font-family);
|
|
168
|
+
font-size: var(--body-01-font-size);
|
|
169
|
+
line-height: var(--body-01-line-height);
|
|
170
|
+
font-weight: var(--body-01-font-weight);
|
|
171
|
+
letter-spacing: var(--body-01-letter-spacing);
|
|
172
|
+
text-transform: var(--body-01-text-transform);
|
|
173
|
+
color: var(--foreground-text-strong);
|
|
166
174
|
overflow-y: visible;
|
|
167
|
-
padding: 0
|
|
168
|
-
/* SCROLL STUFF */
|
|
169
|
-
/* width */
|
|
170
|
-
/* Track */
|
|
171
|
-
/* Handle */
|
|
175
|
+
padding: 0 16px 16px;
|
|
172
176
|
}
|
|
173
177
|
.body::-webkit-scrollbar {
|
|
174
|
-
width:
|
|
175
|
-
background-color:
|
|
178
|
+
width: 6px;
|
|
179
|
+
background-color: transparent;
|
|
176
180
|
}
|
|
177
181
|
.body::-webkit-scrollbar-track {
|
|
178
|
-
background-color:
|
|
182
|
+
background-color: transparent;
|
|
179
183
|
}
|
|
180
184
|
.body::-webkit-scrollbar-thumb {
|
|
181
|
-
background-color: var(--
|
|
185
|
+
background-color: var(--foreground-elements-transparparent-discrete);
|
|
186
|
+
border-radius: 3px;
|
|
182
187
|
}
|
|
183
188
|
|
|
184
189
|
.tds-modal-backdrop {
|
|
@@ -188,7 +193,7 @@ slot[name=header]::slotted(*) {
|
|
|
188
193
|
right: 0;
|
|
189
194
|
bottom: 0;
|
|
190
195
|
left: 0;
|
|
191
|
-
background-color: var(--
|
|
196
|
+
background-color: var(--background-elevation-scrim);
|
|
192
197
|
pointer-events: auto;
|
|
193
198
|
}
|
|
194
199
|
.tds-modal-backdrop * {
|
|
@@ -206,7 +211,7 @@ button.tds-modal-close {
|
|
|
206
211
|
.tds-modal-close {
|
|
207
212
|
display: inline-block;
|
|
208
213
|
height: auto;
|
|
209
|
-
color: var(--
|
|
214
|
+
color: var(--foreground-text-strong);
|
|
210
215
|
cursor: pointer;
|
|
211
216
|
}
|
|
212
217
|
.tds-modal-close:focus {
|
|
@@ -215,12 +220,12 @@ button.tds-modal-close {
|
|
|
215
220
|
}
|
|
216
221
|
@media (min-width: 320px) {
|
|
217
222
|
.tds-modal-close {
|
|
218
|
-
margin-left:
|
|
223
|
+
margin-left: 16px;
|
|
219
224
|
}
|
|
220
225
|
}
|
|
221
226
|
@media (min-width: 1056px) {
|
|
222
227
|
.tds-modal-close {
|
|
223
|
-
margin-left:
|
|
228
|
+
margin-left: 48px;
|
|
224
229
|
}
|
|
225
230
|
}
|
|
226
231
|
|
|
@@ -232,16 +237,16 @@ button.tds-modal-close {
|
|
|
232
237
|
}
|
|
233
238
|
@media (min-width: 320px) {
|
|
234
239
|
.tds-modal-close-btn {
|
|
235
|
-
margin-left:
|
|
240
|
+
margin-left: 16px;
|
|
236
241
|
}
|
|
237
242
|
}
|
|
238
243
|
@media (min-width: 1056px) {
|
|
239
244
|
.tds-modal-close-btn {
|
|
240
|
-
margin-left:
|
|
245
|
+
margin-left: 48px;
|
|
241
246
|
}
|
|
242
247
|
}
|
|
243
248
|
.tds-modal-close-btn svg {
|
|
244
|
-
fill: var(--
|
|
249
|
+
fill: var(--foreground-text-strong);
|
|
245
250
|
}
|
|
246
251
|
|
|
247
252
|
.tds-modal-overflow {
|
|
@@ -15,6 +15,7 @@ export class TdsPopoverCanvas {
|
|
|
15
15
|
this.animation = 'none';
|
|
16
16
|
this.offsetDistance = 8;
|
|
17
17
|
this.modifiers = [];
|
|
18
|
+
this.tdsAlertDialog = 'dialog';
|
|
18
19
|
this.childRef = undefined;
|
|
19
20
|
}
|
|
20
21
|
/** Property for closing popover programmatically */
|
|
@@ -27,12 +28,12 @@ export class TdsPopoverCanvas {
|
|
|
27
28
|
}
|
|
28
29
|
render() {
|
|
29
30
|
var _a;
|
|
30
|
-
return (h(Host, { key: '
|
|
31
|
+
return (h(Host, { key: '65f267d001dc720000b13f6b46010781ccd3119c' }, h("tds-popover-core", Object.assign({ key: '5a3df2dbc918a330f895fbfb4bbf1a5a6ebe2c21', role: this.tdsAlertDialog }, this.inheritedAttributes, { class: {
|
|
31
32
|
'tds-popover-canvas': true,
|
|
32
33
|
[(_a = this.inheritedAttributes.class) !== null && _a !== void 0 ? _a : '']: true,
|
|
33
34
|
}, selector: this.selector, referenceEl: this.referenceEl, show: this.show, placement: this.placement, offsetSkidding: this.offsetSkidding, offsetDistance: this.offsetDistance, modifiers: this.modifiers, trigger: 'click', ref: (el) => {
|
|
34
35
|
this.childRef = el;
|
|
35
|
-
}, defaultShow: this.defaultShow, animation: this.animation }), h("div", { key: '
|
|
36
|
+
}, defaultShow: this.defaultShow, animation: this.animation }), h("div", { key: '3c24d23c70824186c971ce3cfe79d2d14ac472a1' }, h("slot", { key: 'ca58b5e939aabdbe80ca92d747c191f08ad34b4d' })))));
|
|
36
37
|
}
|
|
37
38
|
static get is() { return "tds-popover-canvas"; }
|
|
38
39
|
static get encapsulation() { return "scoped"; }
|
|
@@ -219,6 +220,24 @@ export class TdsPopoverCanvas {
|
|
|
219
220
|
"text": "Array of modifier objects to pass to popper.js. See https://popper.js.org/docs/v2/modifiers/"
|
|
220
221
|
},
|
|
221
222
|
"defaultValue": "[]"
|
|
223
|
+
},
|
|
224
|
+
"tdsAlertDialog": {
|
|
225
|
+
"type": "string",
|
|
226
|
+
"mutable": false,
|
|
227
|
+
"complexType": {
|
|
228
|
+
"original": "'alertdialog' | 'dialog'",
|
|
229
|
+
"resolved": "\"alertdialog\" | \"dialog\"",
|
|
230
|
+
"references": {}
|
|
231
|
+
},
|
|
232
|
+
"required": false,
|
|
233
|
+
"optional": false,
|
|
234
|
+
"docs": {
|
|
235
|
+
"tags": [],
|
|
236
|
+
"text": "Role of the popover canvas component. Can be either 'alertdialog' for important messages that require immediate attention, or 'dialog' for regular messages."
|
|
237
|
+
},
|
|
238
|
+
"attribute": "tds-alert-dialog",
|
|
239
|
+
"reflect": false,
|
|
240
|
+
"defaultValue": "'dialog'"
|
|
222
241
|
}
|
|
223
242
|
};
|
|
224
243
|
}
|
|
@@ -18,14 +18,22 @@ export class TdsPopoverCore {
|
|
|
18
18
|
}
|
|
19
19
|
else {
|
|
20
20
|
this.internalTdsClose.emit();
|
|
21
|
+
this.openedByKeyboard = false;
|
|
21
22
|
}
|
|
22
23
|
}.bind(this);
|
|
23
24
|
this.onClickTarget = function onClickTarget(event) {
|
|
24
25
|
event.stopPropagation();
|
|
26
|
+
// Check if event was triggered by keyboard (Enter or Space)
|
|
27
|
+
this.openedByKeyboard =
|
|
28
|
+
event.type === 'keydown' ||
|
|
29
|
+
event.key === 'Enter' ||
|
|
30
|
+
event.key === ' ';
|
|
25
31
|
this.setIsShown((isShown) => !isShown);
|
|
26
32
|
}.bind(this);
|
|
27
33
|
this.handleShow = function handleShow(event) {
|
|
28
34
|
event.stopPropagation();
|
|
35
|
+
// Check if event was triggered by keyboard (tab focus)
|
|
36
|
+
this.openedByKeyboard = event.type === 'focusin';
|
|
29
37
|
this.setIsShown(true);
|
|
30
38
|
}.bind(this);
|
|
31
39
|
this.handleHide = function handleHide(event) {
|
|
@@ -49,6 +57,7 @@ export class TdsPopoverCore {
|
|
|
49
57
|
this.isShown = false;
|
|
50
58
|
this.disableLogic = false;
|
|
51
59
|
this.hasShownAtLeastOnce = false;
|
|
60
|
+
this.openedByKeyboard = false;
|
|
52
61
|
}
|
|
53
62
|
/** Property for closing popover programmatically */
|
|
54
63
|
async close() {
|
|
@@ -71,6 +80,11 @@ export class TdsPopoverCore {
|
|
|
71
80
|
}
|
|
72
81
|
}
|
|
73
82
|
}
|
|
83
|
+
handleKeydown(event) {
|
|
84
|
+
if (event.key === 'Escape' && this.isShown) {
|
|
85
|
+
this.setIsShown(false);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
74
88
|
/* To observe any change of show prop after an initial load */
|
|
75
89
|
onShowChange(newValue) {
|
|
76
90
|
this.setIsShown(newValue);
|
|
@@ -86,6 +100,26 @@ export class TdsPopoverCore {
|
|
|
86
100
|
trigger: newValue,
|
|
87
101
|
});
|
|
88
102
|
}
|
|
103
|
+
onIsShownChange(newValue) {
|
|
104
|
+
if (newValue && this.openedByKeyboard) {
|
|
105
|
+
// Wait for the next render cycle to ensure the popover is visible
|
|
106
|
+
setTimeout(() => {
|
|
107
|
+
this.focusFirstElement();
|
|
108
|
+
}, 0);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
focusFirstElement() {
|
|
112
|
+
// Try to find a focusable element inside the popover
|
|
113
|
+
const focusableElements = this.host.querySelectorAll('a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])');
|
|
114
|
+
if (focusableElements.length > 0) {
|
|
115
|
+
focusableElements[0].focus();
|
|
116
|
+
}
|
|
117
|
+
else {
|
|
118
|
+
// If no focusable elements found, make the popover itself focusable
|
|
119
|
+
this.host.setAttribute('tabindex', '0');
|
|
120
|
+
this.host.focus();
|
|
121
|
+
}
|
|
122
|
+
}
|
|
89
123
|
initialize({ referenceEl, trigger, }) {
|
|
90
124
|
this.cleanUp();
|
|
91
125
|
if (typeof referenceEl !== 'undefined') {
|
|
@@ -114,6 +148,14 @@ export class TdsPopoverCore {
|
|
|
114
148
|
}
|
|
115
149
|
if (trigger === 'click' && this.show === null) {
|
|
116
150
|
this.target.addEventListener('click', this.onClickTarget);
|
|
151
|
+
// Also handle keyboard activation via Enter and Space
|
|
152
|
+
this.target.addEventListener('keydown', (e) => {
|
|
153
|
+
if (e.key === 'Enter' || e.key === ' ') {
|
|
154
|
+
e.preventDefault();
|
|
155
|
+
this.openedByKeyboard = true;
|
|
156
|
+
this.onClickTarget(e);
|
|
157
|
+
}
|
|
158
|
+
});
|
|
117
159
|
}
|
|
118
160
|
if (trigger === 'hover' || trigger === 'hover-popover') {
|
|
119
161
|
// For tabbing over element
|
|
@@ -130,15 +172,16 @@ export class TdsPopoverCore {
|
|
|
130
172
|
}
|
|
131
173
|
}
|
|
132
174
|
cleanUp() {
|
|
133
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
175
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
134
176
|
(_a = this.target) === null || _a === void 0 ? void 0 : _a.removeEventListener('click', this.onClickTarget);
|
|
135
|
-
(_b = this.target) === null || _b === void 0 ? void 0 : _b.removeEventListener('
|
|
136
|
-
(_c = this.target) === null || _c === void 0 ? void 0 : _c.removeEventListener('
|
|
137
|
-
(_d = this.target) === null || _d === void 0 ? void 0 : _d.removeEventListener('
|
|
138
|
-
(_e = this.target) === null || _e === void 0 ? void 0 : _e.removeEventListener('
|
|
139
|
-
(_f = this.
|
|
140
|
-
(_g = this.host) === null || _g === void 0 ? void 0 : _g.removeEventListener('
|
|
141
|
-
(_h = this.
|
|
177
|
+
(_b = this.target) === null || _b === void 0 ? void 0 : _b.removeEventListener('keydown', this.onClickTarget);
|
|
178
|
+
(_c = this.target) === null || _c === void 0 ? void 0 : _c.removeEventListener('focusin', this.handleShow);
|
|
179
|
+
(_d = this.target) === null || _d === void 0 ? void 0 : _d.removeEventListener('focusout', this.handleHide);
|
|
180
|
+
(_e = this.target) === null || _e === void 0 ? void 0 : _e.removeEventListener('mouseenter', this.handleShow);
|
|
181
|
+
(_f = this.target) === null || _f === void 0 ? void 0 : _f.removeEventListener('mouseleave', this.handleHide);
|
|
182
|
+
(_g = this.host) === null || _g === void 0 ? void 0 : _g.removeEventListener('mouseenter', this.handleShow);
|
|
183
|
+
(_h = this.host) === null || _h === void 0 ? void 0 : _h.removeEventListener('mouseleave', this.handleHide);
|
|
184
|
+
(_j = this.popperInstance) === null || _j === void 0 ? void 0 : _j.destroy();
|
|
142
185
|
}
|
|
143
186
|
connectedCallback() {
|
|
144
187
|
if (this.selector === undefined && this.referenceEl === undefined) {
|
|
@@ -181,7 +224,7 @@ export class TdsPopoverCore {
|
|
|
181
224
|
'tds-animation-exit-fade': !this.isShown && this.animation === 'fade',
|
|
182
225
|
};
|
|
183
226
|
const classList = generateClassList(classes);
|
|
184
|
-
return (h(Host, { key: '
|
|
227
|
+
return (h(Host, { key: '0a41818272dd567616b762d3b2d8cc9d36bb913a', role: this.host.getAttribute('role'), class: classList, id: `tds-popover-core-${this.uuid}` }, h("slot", { key: 'e4b23a734ca96179cb980b3456945ff2ce3b160b' })));
|
|
185
228
|
}
|
|
186
229
|
static get is() { return "tds-popover-core"; }
|
|
187
230
|
static get encapsulation() { return "scoped"; }
|
|
@@ -414,7 +457,8 @@ export class TdsPopoverCore {
|
|
|
414
457
|
"target": {},
|
|
415
458
|
"isShown": {},
|
|
416
459
|
"disableLogic": {},
|
|
417
|
-
"hasShownAtLeastOnce": {}
|
|
460
|
+
"hasShownAtLeastOnce": {},
|
|
461
|
+
"openedByKeyboard": {}
|
|
418
462
|
};
|
|
419
463
|
}
|
|
420
464
|
static get events() {
|
|
@@ -488,6 +532,9 @@ export class TdsPopoverCore {
|
|
|
488
532
|
}, {
|
|
489
533
|
"propName": "trigger",
|
|
490
534
|
"methodName": "onTriggerChanged"
|
|
535
|
+
}, {
|
|
536
|
+
"propName": "isShown",
|
|
537
|
+
"methodName": "onIsShownChange"
|
|
491
538
|
}];
|
|
492
539
|
}
|
|
493
540
|
static get listeners() {
|
|
@@ -503,6 +550,12 @@ export class TdsPopoverCore {
|
|
|
503
550
|
"target": "window",
|
|
504
551
|
"capture": false,
|
|
505
552
|
"passive": false
|
|
553
|
+
}, {
|
|
554
|
+
"name": "keydown",
|
|
555
|
+
"method": "handleKeydown",
|
|
556
|
+
"target": "window",
|
|
557
|
+
"capture": false,
|
|
558
|
+
"passive": false
|
|
506
559
|
}];
|
|
507
560
|
}
|
|
508
561
|
}
|
|
@@ -5215,9 +5215,9 @@ html {
|
|
|
5215
5215
|
--tds-background-image-scania-symbol-svg: url(https://cdn.digitaldesign.scania.com/logotype/1.0.0/scania_symbol/scania-symbol.svg);
|
|
5216
5216
|
--tds-background-image-scania-logotype-png: url(https://cdn.digitaldesign.scania.com/logotype/1.0.0/scania_logotype/scania-logotype.png);
|
|
5217
5217
|
--tds-background-image-scania-logotype-svg: url(https://cdn.digitaldesign.scania.com/logotype/1.0.0/scania_logotype/scania-logotype.svg);
|
|
5218
|
-
--tds-background-image-scania-wordmark-white-svg: url("./assets/logos/scania-wordmark-white.svg");
|
|
5219
|
-
--tds-background-image-scania-symbol-svg: url("./assets/logos/scania-symbol.svg");
|
|
5220
|
-
--tds-background-image-scania-symbol-png: url("./assets/logos/scania-symbol.png");
|
|
5218
|
+
--tds-background-image-scania-wordmark-white-svg-local: url("./assets/logos/scania-wordmark-white.svg");
|
|
5219
|
+
--tds-background-image-scania-symbol-svg-local: url("./assets/logos/scania-symbol.svg");
|
|
5220
|
+
--tds-background-image-scania-symbol-png-local: url("./assets/logos/scania-symbol.png");
|
|
5221
5221
|
}
|
|
5222
5222
|
|
|
5223
5223
|
/** The breakpoint at which the layout changes from fixed size to full-width. */
|
|
@@ -6708,29 +6708,6 @@ tds-link tds-icon {
|
|
|
6708
6708
|
padding-left: 5px;
|
|
6709
6709
|
}
|
|
6710
6710
|
|
|
6711
|
-
:root,
|
|
6712
|
-
.tds-mode-light {
|
|
6713
|
-
--tds-modal-backdrop: rgba(0 0 0 / 40%);
|
|
6714
|
-
--tds-modal-background: var(--tds-white);
|
|
6715
|
-
--tds-modal-text: var(--tds-grey-958);
|
|
6716
|
-
--tds-modal-icon: var(--tds-black);
|
|
6717
|
-
--tds-modal-icon-native: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M3.40338 2.34308C3.11048 2.05019 2.63561 2.05019 2.34272 2.34308C2.04982 2.63598 2.04982 3.11085 2.34272 3.40374L6.93897 8L2.34283 12.5961C2.04994 12.889 2.04994 13.3639 2.34283 13.6568C2.63572 13.9497 3.1106 13.9497 3.40349 13.6568L7.99963 9.06066L12.5958 13.6568C12.8887 13.9497 13.3635 13.9497 13.6564 13.6568C13.9493 13.3639 13.9493 12.889 13.6564 12.5961L9.06029 8L13.6565 3.40376C13.9494 3.11086 13.9494 2.63599 13.6565 2.3431C13.3636 2.0502 12.8888 2.0502 12.5959 2.3431L7.99963 6.93934L3.40338 2.34308Z' fill='black'/%3E%3C/svg%3E%0A");
|
|
6718
|
-
--tds-modal-scrollbar: var(--tds-grey-300);
|
|
6719
|
-
--tds-modal-scrollbar-track: var(--tds-grey-300);
|
|
6720
|
-
--tds-modal-scrollbar-thumb: var(--tds-grey-500);
|
|
6721
|
-
}
|
|
6722
|
-
|
|
6723
|
-
.tds-mode-dark {
|
|
6724
|
-
--tds-modal-backdrop: rgba(0 0 0 / 40%);
|
|
6725
|
-
--tds-modal-background: var(--tds-grey-900);
|
|
6726
|
-
--tds-modal-text: var(--tds-grey-50);
|
|
6727
|
-
--tds-modal-icon: var(--tds-white);
|
|
6728
|
-
--tds-modal-icon-native: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M3.40338 2.34308C3.11048 2.05019 2.63561 2.05019 2.34272 2.34308C2.04982 2.63598 2.04982 3.11085 2.34272 3.40374L6.93897 8L2.34283 12.5961C2.04994 12.889 2.04994 13.3639 2.34283 13.6568C2.63572 13.9497 3.1106 13.9497 3.40349 13.6568L7.99963 9.06066L12.5958 13.6568C12.8887 13.9497 13.3635 13.9497 13.6564 13.6568C13.9493 13.3639 13.9493 12.889 13.6564 12.5961L9.06029 8L13.6565 3.40376C13.9494 3.11086 13.9494 2.63599 13.6565 2.3431C13.3636 2.0502 12.8888 2.0502 12.5959 2.3431L7.99963 6.93934L3.40338 2.34308Z' fill='white'/%3E%3C/svg%3E%0A");
|
|
6729
|
-
--tds-modal-scrollbar: var(--tds-grey-300);
|
|
6730
|
-
--tds-modal-scrollbar-track: var(--tds-grey-300);
|
|
6731
|
-
--tds-modal-scrollbar-thumb: var(--tds-grey-500);
|
|
6732
|
-
}
|
|
6733
|
-
|
|
6734
6711
|
:root,
|
|
6735
6712
|
.tds-mode-light {
|
|
6736
6713
|
--tds-popover-canvas-color: var(--tds-grey-958);
|
|
@@ -6957,7 +6934,7 @@ tds-link tds-icon {
|
|
|
6957
6934
|
--tds-folder-tab-background: var(--tds-folder-tab-background-primary);
|
|
6958
6935
|
--tds-folder-tab-background-selected-primary: var(--tds-white);
|
|
6959
6936
|
--tds-folder-tab-background-selected-secondary: var(--tds-grey-50);
|
|
6960
|
-
--tds-folder-tab-divider-color:
|
|
6937
|
+
--tds-folder-tab-divider-color: var(--tds-grey-300);
|
|
6961
6938
|
--tds-folder-tab-item-color: rgb(0 21 51 / 60%);
|
|
6962
6939
|
--tds-folder-tab-item-color-disabled: rgb(0 21 51 / 16%);
|
|
6963
6940
|
}
|
|
@@ -6993,7 +6970,7 @@ tds-link tds-icon {
|
|
|
6993
6970
|
--tds-folder-tab-background: var(--tds-folder-tab-background-primary);
|
|
6994
6971
|
--tds-folder-tab-background-selected-primary: var(--tds-grey-900);
|
|
6995
6972
|
--tds-folder-tab-background-selected-secondary: var(--tds-grey-868);
|
|
6996
|
-
--tds-folder-tab-divider-color: var(--tds-
|
|
6973
|
+
--tds-folder-tab-divider-color: var(--tds-grey-800);
|
|
6997
6974
|
--tds-folder-tab-item-color: rgb(228 233 241 / 60%);
|
|
6998
6975
|
--tds-folder-tab-item-color-disabled: rgb(228 233 241 / 16%);
|
|
6999
6976
|
}
|
|
@@ -7009,8 +6986,7 @@ tds-link tds-icon {
|
|
|
7009
6986
|
:root,
|
|
7010
6987
|
.tds-mode-light {
|
|
7011
6988
|
/* Horizontal divider */
|
|
7012
|
-
--tds-inline-tabs-horizontal-divider-background: var(--tds-
|
|
7013
|
-
--tds-inline-tabs-horizontal-divider-opacity: 0.16;
|
|
6989
|
+
--tds-inline-tabs-horizontal-divider-background: var(--tds-grey-300);
|
|
7014
6990
|
--tds-inline-tabs-tab-background-primary: var(--tds-white);
|
|
7015
6991
|
--tds-inline-tabs-tab-background-secondary: var(--tds-grey-50);
|
|
7016
6992
|
--tds-inline-tabs-background: var(--tds-inline-tabs-tab-background-primary);
|
|
@@ -7026,7 +7002,7 @@ tds-link tds-icon {
|
|
|
7026
7002
|
--tds-inline-tabs-tab-color-selected: var(--tds-grey-958);
|
|
7027
7003
|
--tds-inline-tabs-tab-color-disabled: var(--tds-blue-900);
|
|
7028
7004
|
--tds-inline-tabs-tab-color-opacity-disabled: 0.38;
|
|
7029
|
-
--tds-inline-tabs-tab-indicator-background-hover:
|
|
7005
|
+
--tds-inline-tabs-tab-indicator-background-hover: var(--tds-grey-400);
|
|
7030
7006
|
--tds-inline-tabs-tab-color-hover: var(--tds-grey-958);
|
|
7031
7007
|
--tds-inline-tabs-tab-color-focus: var(--tds-grey-958);
|
|
7032
7008
|
--tds-inline-tabs-tab-color-active: var(--tds-grey-958);
|
|
@@ -7044,8 +7020,7 @@ tds-link tds-icon {
|
|
|
7044
7020
|
}
|
|
7045
7021
|
|
|
7046
7022
|
.tds-mode-dark {
|
|
7047
|
-
--tds-inline-tabs-horizontal-divider-background: var(--tds-
|
|
7048
|
-
--tds-inline-tabs-horizontal-divider-opacity: 0.24;
|
|
7023
|
+
--tds-inline-tabs-horizontal-divider-background: var(--tds-grey-800);
|
|
7049
7024
|
--tds-inline-tabs-tab-background-primary: var(--tds-grey-900);
|
|
7050
7025
|
--tds-inline-tabs-tab-background-secondary: var(--tds-grey-868);
|
|
7051
7026
|
--tds-inline-tabs-background: var(--tds-inline-tabs-tab-background-primary);
|
|
@@ -7085,9 +7060,10 @@ tds-link tds-icon {
|
|
|
7085
7060
|
:root,
|
|
7086
7061
|
.tds-mode-light {
|
|
7087
7062
|
/* Horizontal divider */
|
|
7088
|
-
--tds-navigation-tabs-horizontal-divider-background: var(--tds-
|
|
7089
|
-
--tds-navigation-tabs-
|
|
7090
|
-
--tds-navigation-tabs-background: var(--tds-
|
|
7063
|
+
--tds-navigation-tabs-horizontal-divider-background: var(--tds-grey-300);
|
|
7064
|
+
--tds-navigation-tabs-tab-background-primary: var(--tds-white);
|
|
7065
|
+
--tds-navigation-tabs-tab-background-secondary: var(--tds-grey-50);
|
|
7066
|
+
--tds-navigation-tabs-background: var(--tds-navigation-tabs-tab-background-primary);
|
|
7091
7067
|
/* Scroll button */
|
|
7092
7068
|
--tds-navigation-tabs-scroll-btn-background: var(--tds-grey-50);
|
|
7093
7069
|
--tds-navigation-tabs-scroll-btn-background-hover: var(--tds-grey-300);
|
|
@@ -7097,18 +7073,25 @@ tds-link tds-icon {
|
|
|
7097
7073
|
--tds-navigation-tabs-tab-color-selected: var(--tds-grey-958);
|
|
7098
7074
|
--tds-navigation-tabs-tab-color-disabled: var(--tds-blue-900);
|
|
7099
7075
|
--tds-navigation-tabs-tab-color-opacity-disabled: 0.38;
|
|
7100
|
-
--tds-navigation-tabs-tab-indicator-background-hover:
|
|
7076
|
+
--tds-navigation-tabs-tab-indicator-background-hover: var(--tds-grey-400);
|
|
7101
7077
|
--tds-navigation-tabs-tab-color-hover: var(--tds-grey-958);
|
|
7102
7078
|
--tds-navigation-tabs-tab-color-focus: var(--tds-grey-958);
|
|
7103
7079
|
--tds-navigation-tabs-tab-color-active: var(--tds-grey-958);
|
|
7104
7080
|
--tds-navigation-tabs-tab-indicator-background-active: var(--tds-blue-400);
|
|
7105
7081
|
--tds-navigation-tabs-tab-indicator-background-hover: #d1d5db;
|
|
7106
7082
|
}
|
|
7083
|
+
:root .tds-mode-variant-primary,
|
|
7084
|
+
.tds-mode-light .tds-mode-variant-primary {
|
|
7085
|
+
--tds-navigation-tabs-background: var(--tds-navigation-tabs-tab-background-primary);
|
|
7086
|
+
}
|
|
7087
|
+
:root .tds-mode-variant-secondary,
|
|
7088
|
+
.tds-mode-light .tds-mode-variant-secondary {
|
|
7089
|
+
--tds-navigation-tabs-background: var(--tds-navigation-tabs-tab-background-secondary);
|
|
7090
|
+
}
|
|
7107
7091
|
|
|
7108
7092
|
.tds-mode-dark {
|
|
7109
|
-
--tds-navigation-tabs-horizontal-divider-background: var(--tds-
|
|
7110
|
-
--tds-navigation-tabs-
|
|
7111
|
-
--tds-navigation-tabs-background: var(--tds-grey-900);
|
|
7093
|
+
--tds-navigation-tabs-horizontal-divider-background: var(--tds-grey-800);
|
|
7094
|
+
--tds-navigation-tabs-background: var(--tds-navigation-tabs-tab-background-primary);
|
|
7112
7095
|
/* Scroll button */
|
|
7113
7096
|
--tds-navigation-tabs-scroll-btn-background: var(--tds-grey-800);
|
|
7114
7097
|
--tds-navigation-tabs-scroll-btn-background-hover: var(--tds-grey-900);
|
|
@@ -7125,6 +7108,12 @@ tds-link tds-icon {
|
|
|
7125
7108
|
--tds-navigation-tabs-tab-indicator-background-active: var(--tds-blue-300);
|
|
7126
7109
|
--tds-navigation-tabs-tab-indicator-background-hover: #373d46;
|
|
7127
7110
|
}
|
|
7111
|
+
.tds-mode-dark .tds-mode-variant-primary {
|
|
7112
|
+
--tds-navigation-tabs-background: var(--tds-navigation-tabs-tab-background-primary);
|
|
7113
|
+
}
|
|
7114
|
+
.tds-mode-dark .tds-mode-variant-secondary {
|
|
7115
|
+
--tds-navigation-tabs-background: var(--tds-navigation-tabs-tab-background-secondary);
|
|
7116
|
+
}
|
|
7128
7117
|
|
|
7129
7118
|
:root,
|
|
7130
7119
|
.tds-mode-light {
|
|
@@ -7241,6 +7230,7 @@ tds-link tds-icon {
|
|
|
7241
7230
|
--tds-text-field-border-bottom: var(--tds-grey-600);
|
|
7242
7231
|
--tds-text-field-border-bottom-hover: var(--tds-grey-800);
|
|
7243
7232
|
--tds-text-field-border-bottom-success: var(--tds-grey-958);
|
|
7233
|
+
--tds-text-field-border-bottom-readonly: var(--tds-grey-500);
|
|
7244
7234
|
--tds-text-field-icon-read-only-color: var(--tds-grey-958);
|
|
7245
7235
|
--tds-text-field-icon-read-only-label-color: var(--tds-grey-958);
|
|
7246
7236
|
}
|
|
@@ -7286,6 +7276,7 @@ tds-link tds-icon {
|
|
|
7286
7276
|
--tds-text-field-border-bottom-hover: var(--tds-grey-400);
|
|
7287
7277
|
--tds-text-field-border-bottom-success: var(--tds-grey-50);
|
|
7288
7278
|
--tds-text-field-border-bottom-error: var(--tds-negative);
|
|
7279
|
+
--tds-text-field-border-bottom-readonly: var(--tds-grey-600);
|
|
7289
7280
|
--tds-text-field-icon-read-only-color: var(--tds-grey-100);
|
|
7290
7281
|
--tds-text-field-icon-read-only-label-color: var(--tds-grey-50);
|
|
7291
7282
|
}
|
|
@@ -4,10 +4,10 @@ export class TdsPopoverMenuItem {
|
|
|
4
4
|
this.disabled = false;
|
|
5
5
|
}
|
|
6
6
|
render() {
|
|
7
|
-
return (h(Host, { key: '
|
|
7
|
+
return (h(Host, { key: 'e8b4cebbe7ddcda36aab323b783e506b9e3b0e68', role: "menuitem", "aria-disabled": this.disabled ? 'true' : 'false' }, h("div", { key: 'e963177a2784af572bdeaf6e1ac8e889e51a82ae', class: {
|
|
8
8
|
wrapper: true,
|
|
9
9
|
disabled: this.disabled,
|
|
10
|
-
} }, h("slot", { key: '
|
|
10
|
+
} }, h("slot", { key: 'f56208065089cbc0d33ad101e760b2c4c51c2368' }))));
|
|
11
11
|
}
|
|
12
12
|
static get is() { return "tds-popover-menu-item"; }
|
|
13
13
|
static get encapsulation() { return "shadow"; }
|
|
@@ -33,7 +33,7 @@ export class TdsPopoverMenu {
|
|
|
33
33
|
'fluid-width': this.fluidWidth,
|
|
34
34
|
}, selector: this.selector, referenceEl: this.referenceEl, show: this.show, placement: this.placement, offsetSkidding: this.offsetSkidding, offsetDistance: this.offsetDistance, ref: (el) => {
|
|
35
35
|
this.childRef = el;
|
|
36
|
-
}, defaultShow: this.defaultShow, animation: this.animation }, h("div", { key: '454814b16f594bec72be5cdc608c00109c71b0d1', role: "
|
|
36
|
+
}, defaultShow: this.defaultShow, animation: this.animation }, h("div", { key: '454814b16f594bec72be5cdc608c00109c71b0d1', role: "menu" }, h("slot", { key: 'c07aec34795f83fa2d0d18b63bac458ed7044f9a' })))));
|
|
37
37
|
}
|
|
38
38
|
static get is() { return "tds-popover-menu"; }
|
|
39
39
|
static get encapsulation() { return "scoped"; }
|