@sebgroup/green-core 1.60.1 → 1.61.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/chunks/{chunk.MRBX5PXE.js → chunk.27SYD4ZG.js} +6 -8
- package/chunks/{chunk.BRHKDNFD.js → chunk.3HGZ5B5Q.js} +1 -1
- package/chunks/{chunk.TVJYFYLU.js → chunk.43JUKB53.js} +33 -11
- package/chunks/chunk.5HUS6CAH.js +0 -0
- package/chunks/{chunk.SHITJ27X.js → chunk.5L6LO6VX.js} +1 -1
- package/chunks/{chunk.RXOV7ZV4.js → chunk.77RJTA43.js} +1 -1
- package/chunks/{chunk.IGE2PH6T.js → chunk.A2VYZXDP.js} +14 -6
- package/chunks/{chunk.3YTTW5RI.js → chunk.B7X4UWIN.js} +1 -1
- package/chunks/{chunk.VV4IKVAK.js → chunk.BHWBJIPJ.js} +75 -57
- package/chunks/chunk.BYYROY6X.js +382 -0
- package/chunks/{chunk.HALKUGTF.js → chunk.C3ZGNKY3.js} +2 -2
- package/chunks/{chunk.MIOFI52O.js → chunk.DBFF5KCR.js} +1 -1
- package/chunks/{chunk.5CPWW5KU.js → chunk.FCB5VT3N.js} +8 -4
- package/chunks/{chunk.QYSGJ5CP.js → chunk.GYV7S25D.js} +6 -13
- package/chunks/{chunk.ZG76HOCS.js → chunk.H26SOC3M.js} +2 -2
- package/chunks/{chunk.V4QLU4WW.js → chunk.HJBA7FLT.js} +47 -17
- package/chunks/{chunk.WMYX5PV4.js → chunk.HOH7FXB5.js} +20 -8
- package/chunks/{chunk.AER44Y4F.js → chunk.IS6GBDKU.js} +1 -1
- package/chunks/{chunk.4ZHTAQDZ.js → chunk.KEPXMMGX.js} +3 -3
- package/chunks/{chunk.VRRDZBIH.js → chunk.KMMI2BYQ.js} +1 -1
- package/chunks/{chunk.C3TU53VJ.js → chunk.KTCN5HJV.js} +25 -3
- package/chunks/{chunk.EQK24GA7.js → chunk.M6S3B5GI.js} +1 -1
- package/chunks/chunk.MLXMQIEV.js +1 -1
- package/chunks/{chunk.3NKIMO26.js → chunk.MSDETVDW.js} +1 -1
- package/chunks/{chunk.S4YT6LUT.js → chunk.NCZAYYNU.js} +1 -1
- package/chunks/{chunk.UIVK7CMU.js → chunk.OSIUU4NF.js} +20 -6
- package/chunks/{chunk.2QH66UQK.js → chunk.P2BOEVHE.js} +2 -2
- package/chunks/{chunk.QHIYGBWM.js → chunk.PBUUPCPL.js} +1 -1
- package/chunks/{chunk.STX4NWC2.js → chunk.QIE6QJ5O.js} +2 -2
- package/chunks/{chunk.6YX75PNT.js → chunk.QN5HFZCH.js} +1 -1
- package/chunks/{chunk.E5WWCN6L.js → chunk.RL2KSWKV.js} +1 -1
- package/chunks/{chunk.QKJCCX2Y.js → chunk.RTE75ZOU.js} +13 -7
- package/chunks/{chunk.JLZ2K3ZW.js → chunk.S4DOMLSN.js} +2 -2
- package/chunks/{chunk.OGD6Z42O.js → chunk.SGFAP56K.js} +1 -1
- package/chunks/{chunk.2RPIXTTF.js → chunk.U44LH2CF.js} +1 -1
- package/chunks/{chunk.OY54R5D4.js → chunk.W6E54X7P.js} +1 -1
- package/chunks/{chunk.Y666F4RC.js → chunk.WV7BXKV6.js} +2 -2
- package/chunks/{chunk.55XSUTOR.js → chunk.WXBRUX3Q.js} +12 -12
- package/chunks/{chunk.7HVXPWQU.js → chunk.YAPDYZK6.js} +1 -1
- package/chunks/{chunk.RMKD7K5Q.js → chunk.YRHYEHLO.js} +1 -1
- package/chunks/{chunk.3HJXEV5P.js → chunk.Z334YLO4.js} +1 -1
- package/chunks/{chunk.JYQY43ZR.js → chunk.Z3MHP5MN.js} +8 -1
- package/chunks/{chunk.UDVIBJU2.js → chunk.ZTRXED5A.js} +1 -1
- package/components/badge/badge.js +4 -4
- package/components/badge/index.js +4 -4
- package/components/button/button.js +5 -5
- package/components/button/button.trans.styles.js +1 -1
- package/components/button/index.js +5 -5
- package/components/calendar/calendar.js +3 -3
- package/components/calendar/calendar.trans.styles.js +1 -1
- package/components/calendar/index.js +3 -3
- package/components/card/card.js +3 -3
- package/components/card/index.js +3 -3
- package/components/container/container.js +2 -2
- package/components/container/index.js +2 -2
- package/components/context-menu/context-menu.js +6 -6
- package/components/context-menu/context-menu.trans.styles.js +1 -1
- package/components/context-menu/index.js +7 -7
- package/components/datepicker/datepicker.js +13 -13
- package/components/datepicker/datepicker.trans.styles.js +1 -1
- package/components/datepicker/index.js +13 -13
- package/components/dialog/dialog.js +8 -8
- package/components/dialog/index.js +8 -8
- package/components/divider/divider.js +2 -2
- package/components/divider/index.js +2 -2
- package/components/dropdown/dropdown.js +10 -10
- package/components/dropdown/dropdown.trans.styles.js +1 -1
- package/components/dropdown/index.js +11 -11
- package/components/fab/fab.js +6 -6
- package/components/fab/index.js +6 -6
- package/components/filter-chips/filter-chip/filter-chip.js +6 -6
- package/components/filter-chips/filter-chip/filter-chip.trans.styles.js +1 -1
- package/components/filter-chips/filter-chip/index.js +6 -6
- package/components/filter-chips/filter-chips.js +7 -7
- package/components/filter-chips/filter-chips.trans.styles.js +1 -1
- package/components/filter-chips/index.js +7 -7
- package/components/flex/flex.js +3 -3
- package/components/flex/index.js +3 -3
- package/components/form/form-control.d.ts +8 -0
- package/components/form/form-control.js +1 -1
- package/components/form/index.js +8 -7
- package/components/form/summary/index.js +8 -7
- package/components/form/summary/summary.d.ts +1 -1
- package/components/form/summary/summary.js +8 -7
- package/components/grid/grid.js +3 -3
- package/components/grid/index.js +3 -3
- package/components/grouped-list/grouped-list.js +2 -2
- package/components/grouped-list/grouped-list.trans.styles.js +1 -1
- package/components/grouped-list/index.js +2 -2
- package/components/icon/icons/index.js +3 -3
- package/components/img/img.js +2 -2
- package/components/img/index.js +2 -2
- package/components/index.js +44 -43
- package/components/input/index.js +11 -11
- package/components/input/input.d.ts +1 -1
- package/components/input/input.js +11 -11
- package/components/link/index.js +2 -2
- package/components/link/link.js +2 -2
- package/components/mask/index.js +4 -4
- package/components/mask/mask.js +4 -4
- package/components/menu-button/index.js +2 -2
- package/components/menu-button/menu-button.js +2 -2
- package/components/popover/index.js +2 -2
- package/components/popover/popover.js +2 -2
- package/components/popover/popover.trans.styles.js +1 -1
- package/components/rich-text/index.js +2 -2
- package/components/rich-text/rich-text.d.ts +15 -1
- package/components/rich-text/rich-text.js +2 -2
- package/components/segmented-control/index.js +4 -4
- package/components/segmented-control/segment/index.js +3 -3
- package/components/segmented-control/segment/segment.js +3 -3
- package/components/segmented-control/segment/segment.trans.styles.js +1 -1
- package/components/segmented-control/segmented-control.js +4 -4
- package/components/segmented-control/segmented-control.trans.styles.js +1 -1
- package/components/signal/index.js +2 -2
- package/components/signal/signal.js +2 -2
- package/components/spacer/index.js +2 -2
- package/components/spacer/spacer.js +2 -2
- package/components/text/index.js +3 -2
- package/components/text/text.js +2 -2
- package/components/textarea/index.js +11 -11
- package/components/textarea/textarea.d.ts +2 -1
- package/components/textarea/textarea.js +11 -11
- package/components/theme/index.js +3 -3
- package/components/theme/theme.js +3 -3
- package/components/theme/theme.trans.styles.js +1 -1
- package/components/video/index.js +2 -2
- package/components/video/video.js +2 -2
- package/index.js +44 -43
- package/package.json +1 -1
- package/primitives/form-control-footer/form-control-footer.js +4 -4
- package/primitives/form-control-footer/index.js +4 -4
- package/primitives/form-control-header/form-control-header.js +7 -7
- package/primitives/form-control-header/index.js +7 -7
- package/primitives/listbox/index.js +5 -5
- package/primitives/listbox/listbox.js +5 -5
- package/primitives/listbox/option.js +4 -4
- package/primitives/menu/index.js +4 -4
- package/primitives/menu/menu-heading.js +2 -2
- package/primitives/menu/menu-item.js +3 -3
- package/primitives/menu/menu.js +4 -4
- package/primitives/ripple/index.js +2 -2
- package/primitives/ripple/ripple.js +2 -2
- package/tokens.style.d.ts +3 -3
- package/transitional-styles.js +1 -1
- package/chunks/chunk.LOIMPU3C.js +0 -797
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TransitionalStyles
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.U44LH2CF.js";
|
|
4
4
|
import {
|
|
5
5
|
watch
|
|
6
6
|
} from "./chunk.TYGMNHNO.js";
|
|
7
7
|
import {
|
|
8
8
|
tokens
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.BYYROY6X.js";
|
|
10
10
|
import {
|
|
11
11
|
GdsElement
|
|
12
12
|
} from "./chunk.LQSWYCMZ.js";
|
|
@@ -64,7 +64,6 @@ var style = css`
|
|
|
64
64
|
th {
|
|
65
65
|
height: var(--gds-space-2xl);
|
|
66
66
|
width: var(--gds-space-2xl);
|
|
67
|
-
background: var(--gds-sys-color-container-container-bright);
|
|
68
67
|
box-sizing: border-box;
|
|
69
68
|
text-align: center;
|
|
70
69
|
font-weight: normal;
|
|
@@ -91,18 +90,17 @@ var style = css`
|
|
|
91
90
|
|
|
92
91
|
&:not(.disabled):hover,
|
|
93
92
|
&[aria-selected='true'] {
|
|
94
|
-
background: var(--gds-
|
|
93
|
+
background: var(--gds-color-l2-background-tertiary);
|
|
95
94
|
cursor: pointer;
|
|
96
|
-
color: var(--gds-
|
|
95
|
+
color: var(--gds-color-l2-content-tertiary);
|
|
97
96
|
}
|
|
98
97
|
|
|
99
98
|
&.today {
|
|
100
|
-
border-color: var(--gds-
|
|
99
|
+
border-color: var(--gds-color-l2-background-tertiary);
|
|
101
100
|
}
|
|
102
101
|
|
|
103
102
|
&.disabled {
|
|
104
|
-
|
|
105
|
-
color: var(--gds-sys-color-base500);
|
|
103
|
+
color: var(--gds-color-l3-content-disabled);
|
|
106
104
|
cursor: not-allowed;
|
|
107
105
|
}
|
|
108
106
|
|
|
@@ -38,7 +38,7 @@ var style = css`
|
|
|
38
38
|
|
|
39
39
|
@layer base {
|
|
40
40
|
:host(:not(:last-child)) {
|
|
41
|
-
border-bottom: 1px solid var(--gds-
|
|
41
|
+
border-bottom: 1px solid var(--gds-color-l2-border-primary);
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
:host div {
|
|
@@ -54,22 +54,44 @@ var style = css`
|
|
|
54
54
|
gap: 1ch;
|
|
55
55
|
max-width: 100%;
|
|
56
56
|
box-sizing: border-box;
|
|
57
|
+
position: relative;
|
|
58
|
+
transition:
|
|
59
|
+
background-color 0.2s,
|
|
60
|
+
border-color 0.2s,
|
|
61
|
+
color 0.2s,
|
|
62
|
+
outline-color 422ms;
|
|
63
|
+
|
|
64
|
+
&::before {
|
|
65
|
+
content: ' ';
|
|
66
|
+
display: flex;
|
|
67
|
+
inset: var(--gds-space-2xs);
|
|
68
|
+
position: absolute;
|
|
69
|
+
border: var(--gds-space-3xs) solid currentColor;
|
|
70
|
+
border-radius: var(--gds-space-xs);
|
|
71
|
+
opacity: 0;
|
|
72
|
+
visitility: hidden;
|
|
73
|
+
pointer-events: none;
|
|
74
|
+
transition: opacity 422ms;
|
|
75
|
+
}
|
|
57
76
|
}
|
|
58
77
|
|
|
59
|
-
:host([highlighted])
|
|
60
|
-
background-color: var(--gds-
|
|
61
|
-
color: var(--gds-
|
|
78
|
+
:host([highlighted]) {
|
|
79
|
+
background-color: var(--gds-color-l2-background-tertiary);
|
|
80
|
+
color: var(--gds-color-l2-content-tertiary);
|
|
62
81
|
}
|
|
63
82
|
|
|
64
83
|
:host(:hover:not([highlighted])) div {
|
|
65
|
-
background-color: var(--gds-
|
|
84
|
+
background-color: var(--gds-color-l3-background-secondary);
|
|
66
85
|
}
|
|
67
86
|
|
|
68
87
|
:host(:focus-visible) {
|
|
69
|
-
outline:
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
88
|
+
outline: none;
|
|
89
|
+
|
|
90
|
+
div::before {
|
|
91
|
+
inset: var(--gds-space-2xs);
|
|
92
|
+
opacity: 1;
|
|
93
|
+
visivility: visible;
|
|
94
|
+
}
|
|
73
95
|
}
|
|
74
96
|
|
|
75
97
|
:host([aria-hidden='true']) div {
|
|
@@ -81,7 +103,7 @@ var style = css`
|
|
|
81
103
|
align-items: center;
|
|
82
104
|
justify-content: center;
|
|
83
105
|
height: 1lh;
|
|
84
|
-
width:
|
|
106
|
+
width: 1lh;
|
|
85
107
|
box-sizing: border-box;
|
|
86
108
|
position: relative;
|
|
87
109
|
aspect-ratio: 1/1;
|
|
@@ -94,7 +116,7 @@ var style = css`
|
|
|
94
116
|
|
|
95
117
|
gds-icon-checkmark {
|
|
96
118
|
&::part(icon) {
|
|
97
|
-
color: var(--gds-
|
|
119
|
+
color: var(--gds-color-l2-content-tertiary);
|
|
98
120
|
stroke-width: var(--gds-space-2xs);
|
|
99
121
|
}
|
|
100
122
|
}
|
|
File without changes
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
forwardAttributes
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.BHWBJIPJ.js";
|
|
4
4
|
import {
|
|
5
5
|
GdsFormControlElement
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.Z3MHP5MN.js";
|
|
7
7
|
import {
|
|
8
8
|
tokens
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.BYYROY6X.js";
|
|
10
10
|
import {
|
|
11
11
|
gdsCustomElement,
|
|
12
12
|
html
|
|
@@ -196,6 +196,12 @@ var GdsInput = class extends GdsFormControlElement {
|
|
|
196
196
|
composed: true
|
|
197
197
|
})
|
|
198
198
|
);
|
|
199
|
+
this.dispatchEvent(
|
|
200
|
+
new Event("input", {
|
|
201
|
+
bubbles: true,
|
|
202
|
+
composed: true
|
|
203
|
+
})
|
|
204
|
+
);
|
|
199
205
|
});
|
|
200
206
|
}
|
|
201
207
|
connectedCallback() {
|
|
@@ -216,6 +222,7 @@ var GdsInput = class extends GdsFormControlElement {
|
|
|
216
222
|
};
|
|
217
223
|
_renderDefault = new WeakSet();
|
|
218
224
|
renderDefault_fn = function() {
|
|
225
|
+
var _a;
|
|
219
226
|
return html`
|
|
220
227
|
<gds-form-control-header class="size-${this.size}">
|
|
221
228
|
<label for="input" slot="label">${this.label}</label>
|
|
@@ -253,8 +260,8 @@ renderDefault_fn = function() {
|
|
|
253
260
|
|
|
254
261
|
<gds-form-control-footer
|
|
255
262
|
class="size-${this.size}"
|
|
256
|
-
.charCounter=${__privateGet(this, _shouldShowRemainingChars, shouldShowRemainingChars_get) && this.maxlength - this.value.length}
|
|
257
|
-
.validationMessage=${this.invalid && this.validationMessage}
|
|
263
|
+
.charCounter=${__privateGet(this, _shouldShowRemainingChars, shouldShowRemainingChars_get) && this.maxlength - (((_a = this.value) == null ? void 0 : _a.length) || 0)}
|
|
264
|
+
.validationMessage=${this.invalid && (this.errorMessage || this.validationMessage)}
|
|
258
265
|
></gds-form-control-footer>
|
|
259
266
|
`;
|
|
260
267
|
};
|
|
@@ -307,7 +314,8 @@ renderNativeInput_fn = function() {
|
|
|
307
314
|
};
|
|
308
315
|
_renderClearButton = new WeakSet();
|
|
309
316
|
renderClearButton_fn = function() {
|
|
310
|
-
|
|
317
|
+
var _a;
|
|
318
|
+
if (this.clearable && (((_a = this.value) == null ? void 0 : _a.length) || 0) > 0)
|
|
311
319
|
return html`
|
|
312
320
|
<gds-button
|
|
313
321
|
size="${this.size === "small" ? "xs" : "small"}"
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GdsFormControlElement
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.Z3MHP5MN.js";
|
|
4
4
|
import {
|
|
5
5
|
observeLightDOM
|
|
6
6
|
} from "./chunk.WM7HBMMV.js";
|
|
7
7
|
import {
|
|
8
8
|
TransitionalStyles
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.U44LH2CF.js";
|
|
10
10
|
import {
|
|
11
11
|
tokens
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.BYYROY6X.js";
|
|
13
13
|
import {
|
|
14
14
|
gdsCustomElement,
|
|
15
15
|
html
|
|
@@ -130,12 +130,14 @@ var button_style_default = `@layer tokens, core, a11y, ranks, sizes, variants, d
|
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
133
|
+
@media (pointer: fine) {
|
|
134
|
+
&:hover {
|
|
135
|
+
background-color: color-mix(
|
|
136
|
+
in srgb,
|
|
137
|
+
var(--gds-color-l3-background-primary),
|
|
138
|
+
var(--gds-color-l3-states-dark-hover)
|
|
139
|
+
);
|
|
140
|
+
}
|
|
139
141
|
}
|
|
140
142
|
|
|
141
143
|
&:active {
|
|
@@ -173,12 +175,14 @@ var button_style_default = `@layer tokens, core, a11y, ranks, sizes, variants, d
|
|
|
173
175
|
background-color: var(--gds-color-l3-background-secondary);
|
|
174
176
|
color: var(--gds-color-l3-content-tertiary);
|
|
175
177
|
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
178
|
+
@media (pointer: fine) {
|
|
179
|
+
&:hover {
|
|
180
|
+
background-color: color-mix(
|
|
181
|
+
in srgb,
|
|
182
|
+
var(--gds-color-l3-background-secondary),
|
|
183
|
+
var(--gds-color-l3-states-light-hover)
|
|
184
|
+
);
|
|
185
|
+
}
|
|
182
186
|
}
|
|
183
187
|
|
|
184
188
|
&:active {
|
|
@@ -194,12 +198,14 @@ var button_style_default = `@layer tokens, core, a11y, ranks, sizes, variants, d
|
|
|
194
198
|
background-color: transparent;
|
|
195
199
|
color: var(--gds-color-l3-content-tertiary);
|
|
196
200
|
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
201
|
+
@media (pointer: fine) {
|
|
202
|
+
&:hover {
|
|
203
|
+
background-color: color-mix(
|
|
204
|
+
in srgb,
|
|
205
|
+
transparent,
|
|
206
|
+
var(--gds-color-l3-states-light-hover)
|
|
207
|
+
);
|
|
208
|
+
}
|
|
203
209
|
}
|
|
204
210
|
|
|
205
211
|
&:active {
|
|
@@ -238,12 +244,14 @@ var button_style_default = `@layer tokens, core, a11y, ranks, sizes, variants, d
|
|
|
238
244
|
.positive {
|
|
239
245
|
background-color: var(--gds-color-l3-background-positive);
|
|
240
246
|
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
+
@media (pointer: fine) {
|
|
248
|
+
&:hover {
|
|
249
|
+
background-color: color-mix(
|
|
250
|
+
in srgb,
|
|
251
|
+
var(--gds-color-l3-background-positive),
|
|
252
|
+
var(--gds-color-l3-states-dark-hover)
|
|
253
|
+
);
|
|
254
|
+
}
|
|
247
255
|
}
|
|
248
256
|
|
|
249
257
|
&:active {
|
|
@@ -258,12 +266,14 @@ var button_style_default = `@layer tokens, core, a11y, ranks, sizes, variants, d
|
|
|
258
266
|
background-color: var(--gds-color-l3-background-positive-secondary);
|
|
259
267
|
color: var(--gds-color-l3-content-positive);
|
|
260
268
|
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
269
|
+
@media (pointer: fine) {
|
|
270
|
+
&:hover {
|
|
271
|
+
background-color: color-mix(
|
|
272
|
+
in srgb,
|
|
273
|
+
var(--gds-color-l3-background-positive-secondary),
|
|
274
|
+
var(--gds-color-l3-states-positive-hover)
|
|
275
|
+
);
|
|
276
|
+
}
|
|
267
277
|
}
|
|
268
278
|
|
|
269
279
|
&:active {
|
|
@@ -279,12 +289,14 @@ var button_style_default = `@layer tokens, core, a11y, ranks, sizes, variants, d
|
|
|
279
289
|
background-color: transparent;
|
|
280
290
|
color: var(--gds-color-l3-content-positive);
|
|
281
291
|
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
292
|
+
@media (pointer: fine) {
|
|
293
|
+
&:hover {
|
|
294
|
+
background-color: color-mix(
|
|
295
|
+
in srgb,
|
|
296
|
+
transparent,
|
|
297
|
+
var(--gds-color-l3-states-positive-hover)
|
|
298
|
+
);
|
|
299
|
+
}
|
|
288
300
|
}
|
|
289
301
|
|
|
290
302
|
&:active {
|
|
@@ -300,12 +312,14 @@ var button_style_default = `@layer tokens, core, a11y, ranks, sizes, variants, d
|
|
|
300
312
|
.negative {
|
|
301
313
|
background-color: var(--gds-color-l3-background-negative);
|
|
302
314
|
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
315
|
+
@media (pointer: fine) {
|
|
316
|
+
&:hover {
|
|
317
|
+
background-color: color-mix(
|
|
318
|
+
in srgb,
|
|
319
|
+
var(--gds-color-l3-background-negative),
|
|
320
|
+
var(--gds-color-l3-states-dark-hover)
|
|
321
|
+
);
|
|
322
|
+
}
|
|
309
323
|
}
|
|
310
324
|
|
|
311
325
|
&:active {
|
|
@@ -320,12 +334,14 @@ var button_style_default = `@layer tokens, core, a11y, ranks, sizes, variants, d
|
|
|
320
334
|
background-color: var(--gds-color-l3-background-negative-secondary);
|
|
321
335
|
color: var(--gds-color-l3-content-negative);
|
|
322
336
|
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
337
|
+
@media (pointer: fine) {
|
|
338
|
+
&:hover {
|
|
339
|
+
background-color: color-mix(
|
|
340
|
+
in srgb,
|
|
341
|
+
var(--gds-color-l3-background-negative-secondary),
|
|
342
|
+
var(--gds-color-l3-states-negative-hover)
|
|
343
|
+
);
|
|
344
|
+
}
|
|
329
345
|
}
|
|
330
346
|
|
|
331
347
|
&:active {
|
|
@@ -341,12 +357,14 @@ var button_style_default = `@layer tokens, core, a11y, ranks, sizes, variants, d
|
|
|
341
357
|
background-color: transparent;
|
|
342
358
|
color: var(--gds-color-l3-content-negative);
|
|
343
359
|
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
360
|
+
@media (pointer: fine) {
|
|
361
|
+
&:hover {
|
|
362
|
+
background-color: color-mix(
|
|
363
|
+
in srgb,
|
|
364
|
+
transparent,
|
|
365
|
+
var(--gds-color-l3-states-negative-hover)
|
|
366
|
+
);
|
|
367
|
+
}
|
|
350
368
|
}
|
|
351
369
|
|
|
352
370
|
&:active {
|