@scania/tegel-lite 1.2.1 → 1.2.2

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.
@@ -1581,7 +1581,7 @@
1581
1581
  --card-headline: var(--component-card-text-title-default);
1582
1582
  --card-sub-headline: var(--component-card-text-subtitle-default);
1583
1583
  --card-body-color: var(--component-card-text-body-default);
1584
- --card-divider: var(--color-border-soft);
1584
+ --card-divider: var(--color-border-discrete);
1585
1585
  --card-icon-color: var(--component-card-text-title-default);
1586
1586
  --card-body-padding: 0 16px;
1587
1587
  --card-header-padding: 16px;
@@ -1703,6 +1703,7 @@
1703
1703
  inline-size: 100%;
1704
1704
  block-size: auto;
1705
1705
  display: block;
1706
+ background-color: var(--color-background-layer-03);
1706
1707
  }
1707
1708
 
1708
1709
  .tl-card__divider {
@@ -2049,17 +2050,17 @@
2049
2050
  --datetime-background: var(--datetime-background-primary);
2050
2051
  --datetime-text: var(--color-foreground-text-strong);
2051
2052
  --datetime-icon: var(--color-foreground-icon-strong);
2052
- --datetime-placeholder: var(--color-foreground-text-subtle);
2053
+ --datetime-placeholder: var(--color-text-subtle);
2053
2054
  --datetime-background-disabled-primary: var(--color-background-layer-01);
2054
2055
  --datetime-background-disabled-secondary: var(--color-background-layer-02);
2055
2056
  --datetime-background-disabled: var(--datetime-background-disabled-primary);
2056
2057
  --datetime-text-disabled: var(--color-foreground-text-disabled);
2057
- --datetime-placeholder-disabled: var(--color-foreground-text-disabled);
2058
+ --datetime-placeholder-disabled: var(--color-text-disabled);
2058
2059
  --datetime-label-disabled: var(--color-foreground-text-disabled);
2059
2060
  --datetime-icon-disabled: var(--color-foreground-text-disabled);
2060
2061
  --datetime-label: var(--color-foreground-text-strong);
2061
2062
  --datetime-label-inside: var(--color-foreground-text-strong);
2062
- --datetime-placeholder-focus: var(--tds-grey-500);
2063
+ --datetime-placeholder-focus: var(--color-text-subtle);
2063
2064
  --datetime-highlight-bar: var(--color-foreground-border-accent-focus);
2064
2065
  --datetime-helper: var(--color-foreground-text-defined);
2065
2066
  --datetime-helper-error: var(--color-system-danger-default);
@@ -2295,6 +2296,35 @@
2295
2296
  .tl-datetime__input:focus::placeholder {
2296
2297
  color: var(--datetime-placeholder-focus);
2297
2298
  }
2299
+ .tl-datetime__input {
2300
+ /*
2301
+ * Empty/default state: when no date is picked Safari renders the placeholder
2302
+ * (e.g. "yyyy/mm/dd") through the ::-webkit-datetime-edit container and its
2303
+ * -fields-wrapper. Safari ignores `color` on these pseudos and paints the
2304
+ * text via `-webkit-text-fill-color`; with neither set it falls back to the
2305
+ * UA accent (aqua) — most visible on TRATON, where no theme rule overrides
2306
+ * it. Set both `color` (other engines) and `-webkit-text-fill-color` (Safari)
2307
+ * to the placeholder colour. We only target the container + fields-wrapper,
2308
+ * not the individual sub-fields: when a value IS present Safari paints the
2309
+ * digits in the sub-field pseudos (e.g. ::-webkit-datetime-edit-year-field),
2310
+ * which keep `--datetime-text` from the rules below — so a filled value is
2311
+ * not dimmed in either state. We cover both `:not(:focus)` and `:focus`:
2312
+ * Safari keeps painting the empty placeholder through the container while the
2313
+ * input is focused, so without the focused branch it falls back to the aqua
2314
+ * UA accent again on focus. The focused branch uses the focus placeholder
2315
+ * token to mirror the `::placeholder` rule above.
2316
+ */
2317
+ }
2318
+ @supports selector(input::-webkit-datetime-edit) {
2319
+ .tl-datetime__input:not(:focus)::-webkit-datetime-edit, .tl-datetime__input:not(:focus)::-webkit-datetime-edit-fields-wrapper {
2320
+ color: var(--datetime-placeholder);
2321
+ -webkit-text-fill-color: var(--datetime-placeholder);
2322
+ }
2323
+ .tl-datetime__input:focus::-webkit-datetime-edit, .tl-datetime__input:focus::-webkit-datetime-edit-fields-wrapper {
2324
+ color: var(--datetime-placeholder-focus);
2325
+ -webkit-text-fill-color: var(--datetime-placeholder-focus);
2326
+ }
2327
+ }
2298
2328
  .tl-datetime__input {
2299
2329
  /* WebKit datetime fields */
2300
2330
  }
@@ -2513,12 +2543,24 @@
2513
2543
  .tl-divider {
2514
2544
  background-color: var(--divider-background);
2515
2545
  }
2516
- .tl-divider--expressive {
2517
- background-color: var(--divider-background-strong);
2518
- }
2519
2546
  .tl-divider--discrete {
2520
2547
  background-color: var(--divider-background-discrete);
2521
2548
  }
2549
+ .tl-divider--subtle {
2550
+ background-color: var(--divider-background-subtle);
2551
+ }
2552
+ .tl-divider--soft {
2553
+ background-color: var(--divider-background-soft);
2554
+ }
2555
+ .tl-divider--defined {
2556
+ background-color: var(--divider-background-defined);
2557
+ }
2558
+ .tl-divider--strong {
2559
+ background-color: var(--divider-background-strong);
2560
+ }
2561
+ .tl-divider--expressive {
2562
+ background-color: var(--divider-background-expressive);
2563
+ }
2522
2564
  .tl-divider--horizontal {
2523
2565
  width: 100%;
2524
2566
  height: 1px;
@@ -2632,11 +2674,13 @@
2632
2674
  --component-footer-logotype-cdn: var(--tds-background-image-scania-wordmark-white-svg);
2633
2675
  }
2634
2676
 
2677
+ .traton .tds-mode-dark .tl-footer,
2635
2678
  .traton .tl-mode-dark .tl-footer {
2636
2679
  --component-footer-logotype-local: var(--traton-logotype-white-svg-local);
2637
2680
  --component-footer-logotype-cdn: var(--traton-logotype-white-svg);
2638
2681
  }
2639
2682
 
2683
+ .traton .tds-mode-light .tl-footer,
2640
2684
  .traton .tl-mode-light .tl-footer {
2641
2685
  --component-footer-logotype-local: var(--traton-logotype-black-svg-local);
2642
2686
  --component-footer-logotype-cdn: var(--traton-logotype-black-svg);
@@ -7000,6 +7044,52 @@ input[type=checkbox]:disabled ~ .tl-toggle__label {
7000
7044
  cursor: not-allowed;
7001
7045
  }
7002
7046
 
7047
+ /**
7048
+ * Do not edit directly, this file was auto-generated.
7049
+ */
7050
+ :root,
7051
+ .tds-mode-light,
7052
+ .scania .tds-mode-light,
7053
+ .scania.tds-mode-light,
7054
+ .scania .tl-mode-light,
7055
+ .scania.tl-mode-light {
7056
+ --component-tooltip-background-default: var(--color-background-inverse-layer-03);
7057
+ --component-tooltip-border-radius-none: var(--scania-unit-0);
7058
+ --component-tooltip-border-radius-default: var(--scania-unit-4);
7059
+ --component-tooltip-text-default: var(--color-text-inverse-strong);
7060
+ }
7061
+
7062
+ .traton .tds-mode-light,
7063
+ .traton.tds-mode-light,
7064
+ .traton .tl-mode-light,
7065
+ .traton.tl-mode-light {
7066
+ --component-tooltip-background-default: var(--color-background-inverse-layer-03);
7067
+ --component-tooltip-border-radius-none: var(--traton-unit-0);
7068
+ --component-tooltip-border-radius-default: var(--traton-unit-4);
7069
+ --component-tooltip-text-default: var(--color-text-inverse-strong);
7070
+ }
7071
+
7072
+ .tds-mode-dark,
7073
+ .scania .tds-mode-dark,
7074
+ .scania.tds-mode-dark,
7075
+ .scania .tl-mode-dark,
7076
+ .scania.tl-mode-dark {
7077
+ --component-tooltip-background-default: var(--color-background-inverse-layer-03);
7078
+ --component-tooltip-border-radius-none: var(--scania-unit-0);
7079
+ --component-tooltip-border-radius-default: var(--scania-unit-4);
7080
+ --component-tooltip-text-default: var(--color-text-inverse-strong);
7081
+ }
7082
+
7083
+ .traton .tds-mode-dark,
7084
+ .traton.tds-mode-dark,
7085
+ .traton .tl-mode-dark,
7086
+ .traton.tl-mode-dark {
7087
+ --component-tooltip-background-default: var(--color-background-inverse-layer-03);
7088
+ --component-tooltip-border-radius-none: var(--traton-unit-0);
7089
+ --component-tooltip-border-radius-default: var(--traton-unit-4);
7090
+ --component-tooltip-text-default: var(--color-text-inverse-strong);
7091
+ }
7092
+
7003
7093
  .tl-tooltip {
7004
7094
  --tooltip-color: var(--component-tooltip-text-default);
7005
7095
  --tooltip-background: var(--component-tooltip-background-default);
package/dist/tl-card.css CHANGED
@@ -67,7 +67,7 @@
67
67
  --card-headline: var(--component-card-text-title-default);
68
68
  --card-sub-headline: var(--component-card-text-subtitle-default);
69
69
  --card-body-color: var(--component-card-text-body-default);
70
- --card-divider: var(--color-border-soft);
70
+ --card-divider: var(--color-border-discrete);
71
71
  --card-icon-color: var(--component-card-text-title-default);
72
72
  --card-body-padding: 0 16px;
73
73
  --card-header-padding: 16px;
@@ -190,6 +190,7 @@
190
190
  inline-size: 100%;
191
191
  block-size: auto;
192
192
  display: block;
193
+ background-color: var(--color-background-layer-03);
193
194
  }
194
195
 
195
196
  .tl-card__divider {
@@ -5,17 +5,17 @@
5
5
  --datetime-background: var(--datetime-background-primary);
6
6
  --datetime-text: var(--color-foreground-text-strong);
7
7
  --datetime-icon: var(--color-foreground-icon-strong);
8
- --datetime-placeholder: var(--color-foreground-text-subtle);
8
+ --datetime-placeholder: var(--color-text-subtle);
9
9
  --datetime-background-disabled-primary: var(--color-background-layer-01);
10
10
  --datetime-background-disabled-secondary: var(--color-background-layer-02);
11
11
  --datetime-background-disabled: var(--datetime-background-disabled-primary);
12
12
  --datetime-text-disabled: var(--color-foreground-text-disabled);
13
- --datetime-placeholder-disabled: var(--color-foreground-text-disabled);
13
+ --datetime-placeholder-disabled: var(--color-text-disabled);
14
14
  --datetime-label-disabled: var(--color-foreground-text-disabled);
15
15
  --datetime-icon-disabled: var(--color-foreground-text-disabled);
16
16
  --datetime-label: var(--color-foreground-text-strong);
17
17
  --datetime-label-inside: var(--color-foreground-text-strong);
18
- --datetime-placeholder-focus: var(--tds-grey-500);
18
+ --datetime-placeholder-focus: var(--color-text-subtle);
19
19
  --datetime-highlight-bar: var(--color-foreground-border-accent-focus);
20
20
  --datetime-helper: var(--color-foreground-text-defined);
21
21
  --datetime-helper-error: var(--color-system-danger-default);
@@ -252,6 +252,35 @@
252
252
  .tl-datetime__input:focus::placeholder {
253
253
  color: var(--datetime-placeholder-focus);
254
254
  }
255
+ .tl-datetime__input {
256
+ /*
257
+ * Empty/default state: when no date is picked Safari renders the placeholder
258
+ * (e.g. "yyyy/mm/dd") through the ::-webkit-datetime-edit container and its
259
+ * -fields-wrapper. Safari ignores `color` on these pseudos and paints the
260
+ * text via `-webkit-text-fill-color`; with neither set it falls back to the
261
+ * UA accent (aqua) — most visible on TRATON, where no theme rule overrides
262
+ * it. Set both `color` (other engines) and `-webkit-text-fill-color` (Safari)
263
+ * to the placeholder colour. We only target the container + fields-wrapper,
264
+ * not the individual sub-fields: when a value IS present Safari paints the
265
+ * digits in the sub-field pseudos (e.g. ::-webkit-datetime-edit-year-field),
266
+ * which keep `--datetime-text` from the rules below — so a filled value is
267
+ * not dimmed in either state. We cover both `:not(:focus)` and `:focus`:
268
+ * Safari keeps painting the empty placeholder through the container while the
269
+ * input is focused, so without the focused branch it falls back to the aqua
270
+ * UA accent again on focus. The focused branch uses the focus placeholder
271
+ * token to mirror the `::placeholder` rule above.
272
+ */
273
+ }
274
+ @supports selector(input::-webkit-datetime-edit) {
275
+ .tl-datetime__input:not(:focus)::-webkit-datetime-edit, .tl-datetime__input:not(:focus)::-webkit-datetime-edit-fields-wrapper {
276
+ color: var(--datetime-placeholder);
277
+ -webkit-text-fill-color: var(--datetime-placeholder);
278
+ }
279
+ .tl-datetime__input:focus::-webkit-datetime-edit, .tl-datetime__input:focus::-webkit-datetime-edit-fields-wrapper {
280
+ color: var(--datetime-placeholder-focus);
281
+ -webkit-text-fill-color: var(--datetime-placeholder-focus);
282
+ }
283
+ }
255
284
  .tl-datetime__input {
256
285
  /* WebKit datetime fields */
257
286
  }
@@ -71,12 +71,24 @@
71
71
  .tl-divider {
72
72
  background-color: var(--divider-background);
73
73
  }
74
- .tl-divider--expressive {
75
- background-color: var(--divider-background-strong);
76
- }
77
74
  .tl-divider--discrete {
78
75
  background-color: var(--divider-background-discrete);
79
76
  }
77
+ .tl-divider--subtle {
78
+ background-color: var(--divider-background-subtle);
79
+ }
80
+ .tl-divider--soft {
81
+ background-color: var(--divider-background-soft);
82
+ }
83
+ .tl-divider--defined {
84
+ background-color: var(--divider-background-defined);
85
+ }
86
+ .tl-divider--strong {
87
+ background-color: var(--divider-background-strong);
88
+ }
89
+ .tl-divider--expressive {
90
+ background-color: var(--divider-background-expressive);
91
+ }
80
92
  .tl-divider--horizontal {
81
93
  width: 100%;
82
94
  height: 1px;
@@ -103,11 +103,13 @@
103
103
  --component-footer-logotype-cdn: var(--tds-background-image-scania-wordmark-white-svg);
104
104
  }
105
105
 
106
+ .traton .tds-mode-dark .tl-footer,
106
107
  .traton .tl-mode-dark .tl-footer {
107
108
  --component-footer-logotype-local: var(--traton-logotype-white-svg-local);
108
109
  --component-footer-logotype-cdn: var(--traton-logotype-white-svg);
109
110
  }
110
111
 
112
+ .traton .tds-mode-light .tl-footer,
111
113
  .traton .tl-mode-light .tl-footer {
112
114
  --component-footer-logotype-local: var(--traton-logotype-black-svg-local);
113
115
  --component-footer-logotype-cdn: var(--traton-logotype-black-svg);
@@ -1,3 +1,49 @@
1
+ /**
2
+ * Do not edit directly, this file was auto-generated.
3
+ */
4
+ :root,
5
+ .tds-mode-light,
6
+ .scania .tds-mode-light,
7
+ .scania.tds-mode-light,
8
+ .scania .tl-mode-light,
9
+ .scania.tl-mode-light {
10
+ --component-tooltip-background-default: var(--color-background-inverse-layer-03);
11
+ --component-tooltip-border-radius-none: var(--scania-unit-0);
12
+ --component-tooltip-border-radius-default: var(--scania-unit-4);
13
+ --component-tooltip-text-default: var(--color-text-inverse-strong);
14
+ }
15
+
16
+ .traton .tds-mode-light,
17
+ .traton.tds-mode-light,
18
+ .traton .tl-mode-light,
19
+ .traton.tl-mode-light {
20
+ --component-tooltip-background-default: var(--color-background-inverse-layer-03);
21
+ --component-tooltip-border-radius-none: var(--traton-unit-0);
22
+ --component-tooltip-border-radius-default: var(--traton-unit-4);
23
+ --component-tooltip-text-default: var(--color-text-inverse-strong);
24
+ }
25
+
26
+ .tds-mode-dark,
27
+ .scania .tds-mode-dark,
28
+ .scania.tds-mode-dark,
29
+ .scania .tl-mode-dark,
30
+ .scania.tl-mode-dark {
31
+ --component-tooltip-background-default: var(--color-background-inverse-layer-03);
32
+ --component-tooltip-border-radius-none: var(--scania-unit-0);
33
+ --component-tooltip-border-radius-default: var(--scania-unit-4);
34
+ --component-tooltip-text-default: var(--color-text-inverse-strong);
35
+ }
36
+
37
+ .traton .tds-mode-dark,
38
+ .traton.tds-mode-dark,
39
+ .traton .tl-mode-dark,
40
+ .traton.tl-mode-dark {
41
+ --component-tooltip-background-default: var(--color-background-inverse-layer-03);
42
+ --component-tooltip-border-radius-none: var(--traton-unit-0);
43
+ --component-tooltip-border-radius-default: var(--traton-unit-4);
44
+ --component-tooltip-text-default: var(--color-text-inverse-strong);
45
+ }
46
+
1
47
  .tl-tooltip {
2
48
  --tooltip-color: var(--component-tooltip-text-default);
3
49
  --tooltip-background: var(--component-tooltip-background-default);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scania/tegel-lite",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "Styles-only library for Tegel Design System (Beta)",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -65,7 +65,7 @@
65
65
  "test": "npx playwright test"
66
66
  },
67
67
  "devDependencies": {
68
- "@playwright/test": "^1.58.2",
68
+ "@playwright/test": "1.60.0",
69
69
  "@types/node": "^24.3.1",
70
70
  "serve": "^14.2.5"
71
71
  },