@sbb-esta/lyne-elements 1.12.0 → 1.12.1

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.
Files changed (129) hide show
  1. package/core/styles/core/functions.scss +1 -1
  2. package/core/styles/mixins/helpers.scss +1 -1
  3. package/core/styles/mixins/lists.scss +2 -3
  4. package/core/styles/mixins/scrollbar.scss +2 -2
  5. package/core/styles/mixins/table.scss +4 -6
  6. package/core/styles/normalize.scss +62 -131
  7. package/core.css +0 -5
  8. package/custom-elements.json +7 -1
  9. package/development/accordion.js +2 -9
  10. package/development/action-group.js +2 -9
  11. package/development/alert/alert-group.js +2 -9
  12. package/development/alert/alert.js +2 -9
  13. package/development/autocomplete-grid/autocomplete-grid-button.js +2 -9
  14. package/development/autocomplete-grid/autocomplete-grid-cell.js +2 -9
  15. package/development/autocomplete-grid/autocomplete-grid-option.js +2 -9
  16. package/development/autocomplete-grid/autocomplete-grid-row.js +2 -9
  17. package/development/autocomplete.js +2 -12
  18. package/development/breadcrumb/breadcrumb-group.js +2 -9
  19. package/development/breadcrumb/breadcrumb.js +2 -9
  20. package/development/button/common.js +2 -11
  21. package/development/button/mini-button-group.js +2 -9
  22. package/development/button/mini-button.js +2 -9
  23. package/development/calendar.js +2 -9
  24. package/development/card/card-badge.js +2 -9
  25. package/development/card/card.js +2 -9
  26. package/development/card/common.js +2 -9
  27. package/development/checkbox/checkbox-group.js +2 -9
  28. package/development/checkbox/checkbox.js +2 -9
  29. package/development/checkbox/common.js +1 -8
  30. package/development/chip.js +2 -9
  31. package/development/clock.js +2 -9
  32. package/development/container/container.js +1 -8
  33. package/development/container/sticky-bar.js +2 -9
  34. package/development/core/mixins.js +2 -9
  35. package/development/datepicker/datepicker-next-day.js +2 -9
  36. package/development/datepicker/datepicker-previous-day.js +2 -9
  37. package/development/datepicker/datepicker-toggle.js +2 -9
  38. package/development/datepicker/datepicker.js +2 -9
  39. package/development/dialog/dialog-actions.js +2 -9
  40. package/development/dialog/dialog-content.js +2 -11
  41. package/development/dialog/dialog-title.js +2 -9
  42. package/development/dialog/dialog.js +2 -9
  43. package/development/divider.js +2 -9
  44. package/development/expansion-panel/expansion-panel-content.js +2 -9
  45. package/development/expansion-panel/expansion-panel-header.js +2 -9
  46. package/development/expansion-panel/expansion-panel.js +2 -9
  47. package/development/file-selector.js +2 -9
  48. package/development/flip-card/flip-card-details.js +2 -9
  49. package/development/flip-card/flip-card-summary.js +2 -9
  50. package/development/flip-card/flip-card.js +2 -9
  51. package/development/footer.js +2 -9
  52. package/development/form-error.js +2 -9
  53. package/development/form-field/form-field-clear.js +2 -9
  54. package/development/form-field/form-field.js +1 -12
  55. package/development/header/common.js +2 -9
  56. package/development/header/header.js +2 -9
  57. package/development/icon.js +2 -9
  58. package/development/image/image.d.ts +1 -0
  59. package/development/image/image.d.ts.map +1 -1
  60. package/development/image.js +13 -13
  61. package/development/journey-header.js +2 -9
  62. package/development/lead-container.js +2 -9
  63. package/development/link/common.js +4 -25
  64. package/development/link-list/common.js +2 -9
  65. package/development/link-list/link-list-anchor.js +2 -9
  66. package/development/link-list/link-list.js +2 -9
  67. package/development/loading-indicator.js +2 -10
  68. package/development/logo.js +2 -9
  69. package/development/map-container.js +2 -11
  70. package/development/menu/common.js +2 -9
  71. package/development/menu/menu.js +2 -11
  72. package/development/message.js +2 -9
  73. package/development/navigation/common.js +2 -9
  74. package/development/navigation/navigation-list.js +2 -9
  75. package/development/navigation/navigation-marker.js +2 -9
  76. package/development/navigation/navigation-section.js +2 -11
  77. package/development/navigation/navigation.js +2 -11
  78. package/development/notification.js +2 -10
  79. package/development/option/optgroup.js +2 -9
  80. package/development/option/option.js +2 -9
  81. package/development/overlay.js +2 -11
  82. package/development/paginator.js +2 -9
  83. package/development/popover/popover-trigger.js +2 -9
  84. package/development/popover/popover.js +2 -9
  85. package/development/radio-button/common.js +2 -9
  86. package/development/radio-button/radio-button-group.js +4 -11
  87. package/development/radio-button/radio-button.js +2 -9
  88. package/development/screen-reader-only.js +2 -9
  89. package/development/select.js +2 -17
  90. package/development/selection-expansion-panel.js +2 -9
  91. package/development/signet.js +2 -9
  92. package/development/skiplink-list.js +2 -9
  93. package/development/slider.js +1 -8
  94. package/development/status.js +2 -9
  95. package/development/stepper/step-label.js +2 -9
  96. package/development/stepper/step.js +2 -9
  97. package/development/stepper/stepper.js +2 -9
  98. package/development/table/table-wrapper.js +2 -11
  99. package/development/tabs/tab-group.js +2 -9
  100. package/development/tabs/tab-label.js +2 -9
  101. package/development/tabs/tab.js +1 -8
  102. package/development/tag/tag-group.js +2 -9
  103. package/development/tag/tag.js +2 -9
  104. package/development/teaser-hero.js +2 -9
  105. package/development/teaser-product/common.js +2 -9
  106. package/development/teaser-product/teaser-product.js +2 -9
  107. package/development/teaser.js +12 -11
  108. package/development/time-input.js +2 -9
  109. package/development/timetable-occupancy-icon.js +2 -9
  110. package/development/timetable-occupancy.js +2 -9
  111. package/development/title.js +3 -17
  112. package/development/toast.js +2 -9
  113. package/development/toggle/toggle-option.js +2 -9
  114. package/development/toggle/toggle.js +2 -9
  115. package/development/toggle-check.js +1 -8
  116. package/development/train/train-blocked-passage.js +2 -9
  117. package/development/train/train-formation.js +2 -11
  118. package/development/train/train-wagon.js +2 -9
  119. package/development/train/train.js +2 -9
  120. package/development/visual-checkbox.js +2 -9
  121. package/image/image.d.ts +1 -0
  122. package/image/image.d.ts.map +1 -1
  123. package/image.js +7 -7
  124. package/lists.css +1 -8
  125. package/normalize.css +21 -113
  126. package/package.json +1 -1
  127. package/radio-button/radio-button-group.js +2 -1
  128. package/standard-theme.css +20 -130
  129. package/teaser.js +16 -16
package/image/image.d.ts CHANGED
@@ -28,6 +28,7 @@ export interface InterfaceImageAttributesSizesConfigMediaQuery {
28
28
  * @cssprop [--sbb-image-border-radius=var(--sbb-border-radius-4x)] - Can be used to override the
29
29
  * `borderRadius` property in case of different values for different viewports.
30
30
  * @cssprop [--sbb-image-object-position] - Can be used to set the object-position css property of the image itself if the image itself is cropped.
31
+ * @cssprop [--sbb-image-object-fit=cover] - Can be used to set the object-fit css property of the image itself if the image itself is cropped.
31
32
  */
32
33
  export declare class SbbImageElement extends LitElement {
33
34
  static styles: CSSResultGroup;
@@ -1 +1 @@
1
- {"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../src/elements/image/image.ts"],"names":[],"mappings":"AAiBA,OAAO,EACL,KAAK,cAAc,EAEnB,UAAU,EAEV,KAAK,cAAc,EACnB,KAAK,cAAc,EACpB,MAAM,KAAK,CAAC;AAQb,MAAM,WAAW,mCAAmC;IAClD,WAAW,EAAE,6CAA6C,EAAE,CAAC;CAC9D;AAED,MAAM,WAAW,6CAA6C;IAC5D,KAAK,EAAE;QACL,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF,YAAY,EAAE,6CAA6C,EAAE,CAAC;CAC/D;AAED,MAAM,WAAW,6CAA6C;IAC5D,gBAAgB,EAAE,MAAM,CAAC;IACzB,qBAAqB,EAAE;QACrB,eAAe,EAAE,OAAO,CAAC;QACzB,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF,iBAAiB,EAAE,KAAK,CAAC;CAC1B;AAkGD;;;;;;;;;;;GAWG;AACH,qBACa,eAAgB,SAAQ,UAAU;IAC7C,OAAuB,MAAM,EAAE,cAAc,CAAS;IACtD,gBAAuB,MAAM;;;MAGlB;IAEX,OAAO,CAAC,eAAe,CAAC,CAAc;IACtC,OAAO,CAAC,eAAe,CAAC,CAA8B;IACtD,OAAO,CAAC,OAAO,CAGb;IAEF;;;;;;OAMG;IACgB,GAAG,CAAC,EAAE,MAAM,CAAC;IAEhC;;;;;;OAMG;IACyD,QAAQ,UAAS;IAE7E;;;;;OAKG;IACgB,OAAO,CAAC,EAAE,MAAM,CAAC;IAEpC;;;;OAIG;IACgB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEtC;;OAEG;IAEI,eAAe,EAAE,cAAc,GAAG,QAAQ,CAAkB;IAE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IAgElC,OAAO,CAAC,uBAAuB;IAwB/B,OAAO,CAAC,YAAY;cAMD,MAAM,IAAI,cAAc;CAgG5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,WAAW,EAAE,eAAe,CAAC;KAC9B;CACF"}
package/image.js CHANGED
@@ -2,9 +2,9 @@ import { css as y, LitElement as _, html as d, nothing as m } from "lit";
2
2
  import { property as s, eventOptions as k, customElement as v } from "lit/decorators.js";
3
3
  import { ref as $ } from "lit/directives/ref.js";
4
4
  import { hostContext as x } from "./core/dom.js";
5
- const w = 0, S = 359, P = 360, M = 599, z = 600, C = 839, B = 840, L = 1023, O = 1024, Q = 1279, F = 1280, D = 1439, E = 1440, T = 2579, I = 16, R = y`*,:before,:after{box-sizing:border-box}:host{--sbb-image-border-radius: var(--sbb-border-radius-4x);--sbb-image-aspect-ratio: auto;--sbb-image-animation-duration: var( --sbb-disable-animation-zero-time, var(--sbb-animation-duration-4x) );display:block}:host([aspect-ratio="1-1"]){--sbb-image-aspect-ratio: 1 / 1}:host([aspect-ratio="1-2"]){--sbb-image-aspect-ratio: 1 / 2}:host([aspect-ratio="2-1"]){--sbb-image-aspect-ratio: 2 / 1}:host([aspect-ratio="2-3"]){--sbb-image-aspect-ratio: 2 / 3}:host([aspect-ratio="3-2"]){--sbb-image-aspect-ratio: 3 / 2}:host([aspect-ratio="3-4"]){--sbb-image-aspect-ratio: 3 / 4}:host([aspect-ratio="4-3"]){--sbb-image-aspect-ratio: 4 / 3}:host([aspect-ratio="4-5"]){--sbb-image-aspect-ratio: 4 / 5}:host([aspect-ratio="5-4"]){--sbb-image-aspect-ratio: 5 / 4}:host([aspect-ratio="16-9"]){--sbb-image-aspect-ratio: 16 / 9}:host([aspect-ratio="9-16"]){--sbb-image-aspect-ratio: 9 / 16}:host([data-teaser]){--sbb-image-aspect-ratio: 1 / 1}@media (min-width: 37.5rem){:host([data-teaser]){--sbb-image-aspect-ratio: 16 / 9}}:host(:is([border-radius=none],[data-teaser])){--sbb-image-border-radius: 0}:host([border-radius=round]:not([data-teaser])){--sbb-image-border-radius: var(--sbb-border-radius-infinity)}.sbb-image__figure{display:flex;flex-direction:column;gap:var(--sbb-spacing-fixed-4x);margin:0;height:100%}.sbb-image__img{position:absolute;top:0;right:0;bottom:0;left:0;opacity:.000001}:host([data-loaded]) .sbb-image__img{opacity:.999999}:host([data-loaded]) .sbb-image__blurred{opacity:0}:is(.sbb-image__img,.sbb-image__blurred){width:100%;height:100%;object-fit:cover;object-position:var(--sbb-image-object-position);transition:opacity var(--sbb-image-animation-duration) var(--sbb-animation-easing)}.sbb-image__wrapper{display:flex;position:relative;overflow:hidden;width:100%;height:100%;aspect-ratio:var(--sbb-image-aspect-ratio);border-radius:var(--sbb-image-border-radius)}.sbb-image__caption{--sbb-text-font-size: var(--sbb-font-size-text-xs);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-body-text);letter-spacing:var(--sbb-typo-letter-spacing-body-text);font-size:var(--sbb-text-font-size)}`;
6
- var h = Object.freeze, u = Object.defineProperty, j = Object.getOwnPropertyDescriptor, o = (e, t, r, i) => {
7
- for (var n = i > 1 ? void 0 : i ? j(t, r) : t, c = e.length - 1, b; c >= 0; c--)
5
+ const w = 0, S = 359, P = 360, M = 599, z = 600, C = 839, B = 840, L = 1023, O = 1024, Q = 1279, F = 1280, D = 1439, E = 1440, T = 2579, j = 16, I = y`*,:before,:after{box-sizing:border-box}:host{--sbb-image-border-radius: var(--sbb-border-radius-4x);--sbb-image-aspect-ratio: auto;--sbb-image-animation-duration: var( --sbb-disable-animation-zero-time, var(--sbb-animation-duration-4x) );--sbb-image-object-fit: cover;display:block}:host([aspect-ratio="1-1"]){--sbb-image-aspect-ratio: 1 / 1}:host([aspect-ratio="1-2"]){--sbb-image-aspect-ratio: 1 / 2}:host([aspect-ratio="2-1"]){--sbb-image-aspect-ratio: 2 / 1}:host([aspect-ratio="2-3"]){--sbb-image-aspect-ratio: 2 / 3}:host([aspect-ratio="3-2"]){--sbb-image-aspect-ratio: 3 / 2}:host([aspect-ratio="3-4"]){--sbb-image-aspect-ratio: 3 / 4}:host([aspect-ratio="4-3"]){--sbb-image-aspect-ratio: 4 / 3}:host([aspect-ratio="4-5"]){--sbb-image-aspect-ratio: 4 / 5}:host([aspect-ratio="5-4"]){--sbb-image-aspect-ratio: 5 / 4}:host([aspect-ratio="16-9"]){--sbb-image-aspect-ratio: 16 / 9}:host([aspect-ratio="9-16"]){--sbb-image-aspect-ratio: 9 / 16}:host([data-teaser]){--sbb-image-aspect-ratio: 1 / 1}@media (min-width: 37.5rem){:host([data-teaser]){--sbb-image-aspect-ratio: 16 / 9}}:host(:is([border-radius=none],[data-teaser])){--sbb-image-border-radius: 0}:host([border-radius=round]:not([data-teaser])){--sbb-image-border-radius: var(--sbb-border-radius-infinity)}.sbb-image__figure{display:flex;flex-direction:column;gap:var(--sbb-spacing-fixed-4x);margin:0;height:100%}.sbb-image__img{opacity:.000001}:host([data-loaded]) .sbb-image__img{opacity:.999999}:host(:not([skip-lqip])) .sbb-image__img{position:absolute;top:0;right:0;bottom:0;left:0}:host([data-loaded]) .sbb-image__blurred{opacity:0}picture{display:contents}:is(.sbb-image__img,.sbb-image__blurred){width:100%;height:100%;object-fit:var(--sbb-image-object-fit);object-position:var(--sbb-image-object-position);transition:opacity var(--sbb-image-animation-duration) var(--sbb-animation-easing)}.sbb-image__wrapper{display:flex;position:relative;overflow:hidden;width:100%;height:100%;aspect-ratio:var(--sbb-image-aspect-ratio);border-radius:var(--sbb-image-border-radius)}.sbb-image__caption{--sbb-text-font-size: var(--sbb-font-size-text-xs);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-body-text);letter-spacing:var(--sbb-typo-letter-spacing-body-text);font-size:var(--sbb-text-font-size)}`;
6
+ var h = Object.freeze, u = Object.defineProperty, R = Object.getOwnPropertyDescriptor, o = (e, t, r, i) => {
7
+ for (var n = i > 1 ? void 0 : i ? R(t, r) : t, c = e.length - 1, b; c >= 0; c--)
8
8
  (b = e[c]) && (n = (i ? b(t, r, n) : b(n)) || n);
9
9
  return i && n && u(t, r, n), n;
10
10
  }, A = (e, t) => h(u(e, "raw", { value: h(e.slice()) })), g;
@@ -34,7 +34,7 @@ const U = (e) => {
34
34
  }, H = {
35
35
  once: !0,
36
36
  passive: !0
37
- }, p = (e) => e / I, V = {
37
+ }, p = (e) => e / j, q = {
38
38
  "sbb-breakpoint-zero-min": p(w),
39
39
  "sbb-breakpoint-zero-max": p(S),
40
40
  "sbb-breakpoint-micro-min": p(P),
@@ -78,7 +78,7 @@ let a = class extends _ {
78
78
  this.performanceMark && (performance.clearMarks(this.performanceMark), performance.mark(this.performanceMark));
79
79
  }
80
80
  _matchMediaQueryDesignToken(e) {
81
- const t = V[e];
81
+ const t = q[e];
82
82
  return t ? `${t}rem` : "";
83
83
  }
84
84
  _addFocusAbilityToLinksInCaption() {
@@ -225,7 +225,7 @@ let a = class extends _ {
225
225
  `;
226
226
  }
227
227
  };
228
- a.styles = R;
228
+ a.styles = I;
229
229
  a.events = {
230
230
  error: "error",
231
231
  load: "load"
@@ -234,7 +234,7 @@ o([
234
234
  s()
235
235
  ], a.prototype, "alt", 2);
236
236
  o([
237
- s({ attribute: "skip-lqip", type: Boolean })
237
+ s({ attribute: "skip-lqip", type: Boolean, reflect: !0 })
238
238
  ], a.prototype, "skipLqip", 2);
239
239
  o([
240
240
  s()
package/lists.css CHANGED
@@ -8,7 +8,6 @@
8
8
  margin: 0;
9
9
  padding: 0;
10
10
  padding-inline-start: var(--sbb-list-padding-inline-start);
11
- color: var(--sbb-color-iron);
12
11
  }
13
12
  .sbb-list:where(ol, ul) > li + li,
14
13
  .sbb-list:where(ol, ul) :is(ol, ul) > li + li {
@@ -58,16 +57,12 @@
58
57
  display: grid;
59
58
  grid-template-columns: auto minmax(20%, 1fr);
60
59
  gap: var(--sbb-spacing-fixed-1x) var(--sbb-spacing-fixed-2x);
61
- color: var(--sbb-color-iron);
62
60
  }
63
61
  .sbb-list:where(dl) :is(dt, dd) {
64
62
  margin: 0;
65
63
  padding: 0;
66
64
  }
67
65
 
68
- .sbb-step-list {
69
- /* stylelint-disable-next-line no-descending-specificity */
70
- }
71
66
  .sbb-step-list {
72
67
  --sbb-step-list-dimensions: 2.125rem;
73
68
  --sbb-step-list-padding-inline: var(--sbb-spacing-responsive-xxs);
@@ -116,6 +111,7 @@
116
111
  --sbb-step-list-vertical-gap: var(--sbb-spacing-fixed-1x);
117
112
  --sbb-step-list-border-radius: var(--sbb-border-radius-4x);
118
113
  counter-reset: steps;
114
+ color: var(--sbb-color-iron);
119
115
  }
120
116
  .sbb-step-list:where(.sbb-text-s) {
121
117
  --sbb-step-list-padding-block: var(--sbb-spacing-fixed-4x);
@@ -147,9 +143,6 @@
147
143
  border-end-end-radius: var(--sbb-step-list-border-radius);
148
144
  }
149
145
 
150
- .sbb-icon-list {
151
- /* stylelint-disable-next-line no-descending-specificity */
152
- }
153
146
  .sbb-icon-list {
154
147
  --sbb-icon-list-dimensions: 2.125rem;
155
148
  --sbb-icon-list-padding-inline: var(--sbb-spacing-responsive-xxs);
package/normalize.css CHANGED
@@ -1,189 +1,97 @@
1
- /*! modern-normalize v1.1.0 | MIT License | https://github.com/sindresorhus/modern-normalize */
2
- /*
3
- Document
4
- ========
5
- */
6
- /**
7
- 1. Correct the line height in all browsers. ///// Commented out since we define own line-height /////
8
- 2. Prevent adjustments of font size after orientation changes in iOS.
9
- 3. Use a more readable tab size (opinionated).
10
- */
11
1
  html {
12
- -webkit-text-size-adjust: 100%; /* 2 */
13
- -moz-text-size-adjust: 100%; /* 2 */
14
- text-size-adjust: 100%; /* 2 */
15
- tab-size: 4; /* 3 */
2
+ -webkit-text-size-adjust: 100%;
3
+ -moz-text-size-adjust: 100%;
4
+ text-size-adjust: 100%;
5
+ tab-size: 4;
16
6
  }
17
7
 
18
- /*
19
- Sections
20
- ========
21
- */
22
8
  body {
23
- margin: 0; /* Remove the margin in all browsers. */
9
+ margin: 0;
24
10
  }
25
11
 
26
- /*
27
- Grouping content
28
- ================
29
- */
30
- /**
31
- 1. Add the correct height in Firefox.
32
- 2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
33
- */
34
12
  hr {
35
- height: 0; /* 1 */
36
- color: inherit; /* 2 */
13
+ height: 0;
14
+ color: inherit;
37
15
  }
38
16
 
39
- /*
40
- Text-level semantics
41
- ====================
42
- */
43
- /**
44
- Add the correct text decoration in Chrome, Edge, and Safari.
45
- */
46
17
  abbr[title] {
47
18
  text-decoration: underline dotted;
48
19
  }
49
20
 
50
- /**
51
- Add the correct font weight in Edge and Safari.
52
- */
53
21
  b,
54
22
  strong {
55
23
  font-weight: bolder;
56
24
  }
57
25
 
58
- /**
59
- 1. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
60
- 2. Correct the odd 'em' font sizing in all browsers.
61
- */
62
26
  code,
63
27
  kbd,
64
28
  samp,
65
29
  pre {
66
- font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; /* 1 */
67
- font-size: 1em; /* 2 */
30
+ font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
31
+ font-size: 1em;
68
32
  }
69
33
 
70
- /**
71
- Add the correct font size in all browsers.
72
- */
73
34
  small {
74
35
  font-size: 80%;
75
36
  }
76
37
 
77
- /*
78
- Tabular data
79
- ============
80
- */
81
- /**
82
- 1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
83
- 2. Correct table border color inheritance in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
84
- */
85
38
  table {
86
- text-indent: 0; /* 1 */
87
- border-color: inherit; /* 2 */
88
- }
89
-
90
- /*
91
- Forms
92
- =====
93
- */
94
- /**
95
- 1. Change the font styles in all browsers.
96
- 2. Remove the margin in Firefox and Safari.
97
- */
39
+ text-indent: 0;
40
+ border-color: inherit;
41
+ }
42
+
98
43
  button,
99
44
  input,
100
45
  optgroup,
101
46
  select,
102
47
  textarea {
103
- font-family: inherit; /* 1 */
104
- font-size: 100%; /* 1 */
105
- line-height: 1.15; /* 1 */
106
- margin: 0; /* 2 */
48
+ font-family: inherit;
49
+ font-size: 100%;
50
+ line-height: 1.15;
51
+ margin: 0;
107
52
  }
108
53
 
109
- /**
110
- Remove the inheritance of text transform in Edge and Firefox.
111
- */
112
54
  button,
113
55
  select {
114
56
  text-transform: none;
115
57
  }
116
58
 
117
- /**
118
- Correct the inability to style clickable types in iOS and Safari.
119
- */
120
59
  button,
121
60
  :is(button, input):where([type=button], [type=reset], [type=submit]) {
122
61
  -webkit-appearance: button;
123
62
  }
124
63
 
125
- /**
126
- Remove the additional ':invalid' styles in Firefox.
127
- See: https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737
128
- */
129
64
  :-moz-ui-invalid {
130
65
  box-shadow: none;
131
66
  }
132
67
 
133
- /**
134
- Remove the padding so developers are not caught out when they zero out 'fieldset' elements in all browsers.
135
- */
136
68
  legend {
137
69
  padding: 0;
138
70
  }
139
71
 
140
- /**
141
- Add the correct vertical alignment in Chrome and Firefox.
142
- */
143
72
  progress {
144
73
  vertical-align: baseline;
145
74
  }
146
75
 
147
- /**
148
- Correct the cursor style of increment and decrement buttons in Safari.
149
- */
150
76
  ::-webkit-inner-spin-button,
151
77
  ::-webkit-outer-spin-button {
152
78
  height: auto;
153
79
  }
154
80
 
155
- /**
156
- 1. Correct the odd appearance in Chrome and Safari.
157
- 2. Correct the outline style in Safari.
158
- */
159
81
  [type=search] {
160
- -webkit-appearance: textfield; /* 1 */
161
- outline-offset: -2px; /* 2 */
82
+ -webkit-appearance: textfield;
83
+ outline-offset: -2px;
162
84
  }
163
85
 
164
- /**
165
- Remove the inner padding in Chrome and Safari on macOS.
166
- */
167
86
  ::-webkit-search-decoration {
168
87
  -webkit-appearance: none;
169
88
  }
170
89
 
171
- /**
172
- 1. Correct the inability to style clickable types in iOS and Safari.
173
- 2. Change font properties to 'inherit' in Safari.
174
- */
175
90
  ::-webkit-file-upload-button {
176
- -webkit-appearance: button; /* 1 */
177
- font: inherit; /* 2 */
91
+ -webkit-appearance: button;
92
+ font: inherit;
178
93
  }
179
94
 
180
- /*
181
- Interactive
182
- ===========
183
- */
184
- /*
185
- Add the correct display in Chrome and Safari.
186
- */
187
95
  summary {
188
96
  display: list-item;
189
97
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sbb-esta/lyne-elements",
3
- "version": "1.12.0",
3
+ "version": "1.12.1",
4
4
  "description": "Lyne Design System",
5
5
  "keywords": [
6
6
  "design system",
@@ -112,7 +112,8 @@ let a = class extends _(u) {
112
112
  !t && (o != null && o.length) && (o[0].tabIndex = 0);
113
113
  }
114
114
  _getRadioTabIndex(t) {
115
- return t.checked && !t.disabled && !this.disabled || this._hasSelectionExpansionPanelElement ? 0 : -1;
115
+ const o = !t.disabled && !this.disabled;
116
+ return (t.checked || this._hasSelectionExpansionPanelElement) && o ? 0 : -1;
116
117
  }
117
118
  _handleKeyDown(t) {
118
119
  var n;
@@ -6,199 +6,100 @@ sub, sup {
6
6
  vertical-align: baseline;
7
7
  }
8
8
 
9
- /** This mixin can be used to avoid spacing problems by inserting an invisible space as pseudo element. */
10
- /*
11
- * SBB table mixin
12
- * Notes:
13
- * We cannot use `border-collapse` because it is not compatible with the `border-radius` property.
14
- * Therefore, we have to build the grid avoiding double borders.
15
- */
16
- /*! modern-normalize v1.1.0 | MIT License | https://github.com/sindresorhus/modern-normalize */
17
- /*
18
- Document
19
- ========
20
- */
21
- /**
22
- 1. Correct the line height in all browsers. ///// Commented out since we define own line-height /////
23
- 2. Prevent adjustments of font size after orientation changes in iOS.
24
- 3. Use a more readable tab size (opinionated).
25
- */
26
9
  html {
27
- -webkit-text-size-adjust: 100%; /* 2 */
28
- -moz-text-size-adjust: 100%; /* 2 */
29
- text-size-adjust: 100%; /* 2 */
30
- tab-size: 4; /* 3 */
10
+ -webkit-text-size-adjust: 100%;
11
+ -moz-text-size-adjust: 100%;
12
+ text-size-adjust: 100%;
13
+ tab-size: 4;
31
14
  }
32
15
 
33
- /*
34
- Sections
35
- ========
36
- */
37
16
  body {
38
- margin: 0; /* Remove the margin in all browsers. */
17
+ margin: 0;
39
18
  }
40
19
 
41
- /*
42
- Grouping content
43
- ================
44
- */
45
- /**
46
- 1. Add the correct height in Firefox.
47
- 2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
48
- */
49
20
  hr {
50
- height: 0; /* 1 */
51
- color: inherit; /* 2 */
21
+ height: 0;
22
+ color: inherit;
52
23
  }
53
24
 
54
- /*
55
- Text-level semantics
56
- ====================
57
- */
58
- /**
59
- Add the correct text decoration in Chrome, Edge, and Safari.
60
- */
61
25
  abbr[title] {
62
26
  text-decoration: underline dotted;
63
27
  }
64
28
 
65
- /**
66
- Add the correct font weight in Edge and Safari.
67
- */
68
29
  b,
69
30
  strong {
70
31
  font-weight: bolder;
71
32
  }
72
33
 
73
- /**
74
- 1. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
75
- 2. Correct the odd 'em' font sizing in all browsers.
76
- */
77
34
  code,
78
35
  kbd,
79
36
  samp,
80
37
  pre {
81
- font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; /* 1 */
82
- font-size: 1em; /* 2 */
38
+ font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
39
+ font-size: 1em;
83
40
  }
84
41
 
85
- /**
86
- Add the correct font size in all browsers.
87
- */
88
42
  small {
89
43
  font-size: 80%;
90
44
  }
91
45
 
92
- /*
93
- Tabular data
94
- ============
95
- */
96
- /**
97
- 1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
98
- 2. Correct table border color inheritance in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
99
- */
100
46
  table {
101
- text-indent: 0; /* 1 */
102
- border-color: inherit; /* 2 */
47
+ text-indent: 0;
48
+ border-color: inherit;
103
49
  }
104
50
 
105
- /*
106
- Forms
107
- =====
108
- */
109
- /**
110
- 1. Change the font styles in all browsers.
111
- 2. Remove the margin in Firefox and Safari.
112
- */
113
51
  button,
114
52
  input,
115
53
  optgroup,
116
54
  select,
117
55
  textarea {
118
- font-family: inherit; /* 1 */
119
- font-size: 100%; /* 1 */
120
- line-height: 1.15; /* 1 */
121
- margin: 0; /* 2 */
56
+ font-family: inherit;
57
+ font-size: 100%;
58
+ line-height: 1.15;
59
+ margin: 0;
122
60
  }
123
61
 
124
- /**
125
- Remove the inheritance of text transform in Edge and Firefox.
126
- */
127
62
  button,
128
63
  select {
129
64
  text-transform: none;
130
65
  }
131
66
 
132
- /**
133
- Correct the inability to style clickable types in iOS and Safari.
134
- */
135
67
  button,
136
68
  :is(button, input):where([type=button], [type=reset], [type=submit]) {
137
69
  -webkit-appearance: button;
138
70
  }
139
71
 
140
- /**
141
- Remove the additional ':invalid' styles in Firefox.
142
- See: https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737
143
- */
144
72
  :-moz-ui-invalid {
145
73
  box-shadow: none;
146
74
  }
147
75
 
148
- /**
149
- Remove the padding so developers are not caught out when they zero out 'fieldset' elements in all browsers.
150
- */
151
76
  legend {
152
77
  padding: 0;
153
78
  }
154
79
 
155
- /**
156
- Add the correct vertical alignment in Chrome and Firefox.
157
- */
158
80
  progress {
159
81
  vertical-align: baseline;
160
82
  }
161
83
 
162
- /**
163
- Correct the cursor style of increment and decrement buttons in Safari.
164
- */
165
84
  ::-webkit-inner-spin-button,
166
85
  ::-webkit-outer-spin-button {
167
86
  height: auto;
168
87
  }
169
88
 
170
- /**
171
- 1. Correct the odd appearance in Chrome and Safari.
172
- 2. Correct the outline style in Safari.
173
- */
174
89
  [type=search] {
175
- -webkit-appearance: textfield; /* 1 */
176
- outline-offset: -2px; /* 2 */
90
+ -webkit-appearance: textfield;
91
+ outline-offset: -2px;
177
92
  }
178
93
 
179
- /**
180
- Remove the inner padding in Chrome and Safari on macOS.
181
- */
182
94
  ::-webkit-search-decoration {
183
95
  -webkit-appearance: none;
184
96
  }
185
97
 
186
- /**
187
- 1. Correct the inability to style clickable types in iOS and Safari.
188
- 2. Change font properties to 'inherit' in Safari.
189
- */
190
98
  ::-webkit-file-upload-button {
191
- -webkit-appearance: button; /* 1 */
192
- font: inherit; /* 2 */
99
+ -webkit-appearance: button;
100
+ font: inherit;
193
101
  }
194
102
 
195
- /*
196
- Interactive
197
- ===========
198
- */
199
- /*
200
- Add the correct display in Chrome and Safari.
201
- */
202
103
  summary {
203
104
  display: list-item;
204
105
  }
@@ -1382,8 +1283,6 @@ sbb-form-field textarea {
1382
1283
  --sbb-scrollbar-color-hover: var(--sbb-color-black-alpha-60);
1383
1284
  --sbb-scrollbar-track-color: transparent;
1384
1285
  --sbb-scrollbar-width: var(--sbb-spacing-fixed-3x);
1385
- /* Scrollbar itself */
1386
- /* Hide button (top and bottom of the scrollbar) */
1387
1286
  }
1388
1287
  sbb-form-field textarea::-webkit-scrollbar {
1389
1288
  width: var(--sbb-scrollbar-width);
@@ -1420,8 +1319,6 @@ sbb-form-field[negative] textarea {
1420
1319
  --sbb-scrollbar-color-hover: var(--sbb-color-white-alpha-60);
1421
1320
  --sbb-scrollbar-track-color: transparent;
1422
1321
  --sbb-scrollbar-width: var(--sbb-spacing-fixed-3x);
1423
- /* Scrollbar itself */
1424
- /* Hide button (top and bottom of the scrollbar) */
1425
1322
  }
1426
1323
  sbb-form-field[negative] textarea::-webkit-scrollbar {
1427
1324
  width: var(--sbb-scrollbar-width);
@@ -1639,7 +1536,6 @@ sup {
1639
1536
  margin: 0;
1640
1537
  padding: 0;
1641
1538
  padding-inline-start: var(--sbb-list-padding-inline-start);
1642
- color: var(--sbb-color-iron);
1643
1539
  }
1644
1540
  .sbb-list:where(ol, ul) > li + li,
1645
1541
  .sbb-list:where(ol, ul) :is(ol, ul) > li + li {
@@ -1689,16 +1585,12 @@ sup {
1689
1585
  display: grid;
1690
1586
  grid-template-columns: auto minmax(20%, 1fr);
1691
1587
  gap: var(--sbb-spacing-fixed-1x) var(--sbb-spacing-fixed-2x);
1692
- color: var(--sbb-color-iron);
1693
1588
  }
1694
1589
  .sbb-list:where(dl) :is(dt, dd) {
1695
1590
  margin: 0;
1696
1591
  padding: 0;
1697
1592
  }
1698
1593
 
1699
- .sbb-step-list {
1700
- /* stylelint-disable-next-line no-descending-specificity */
1701
- }
1702
1594
  .sbb-step-list {
1703
1595
  --sbb-step-list-dimensions: 2.125rem;
1704
1596
  --sbb-step-list-padding-inline: var(--sbb-spacing-responsive-xxs);
@@ -1747,6 +1639,7 @@ sup {
1747
1639
  --sbb-step-list-vertical-gap: var(--sbb-spacing-fixed-1x);
1748
1640
  --sbb-step-list-border-radius: var(--sbb-border-radius-4x);
1749
1641
  counter-reset: steps;
1642
+ color: var(--sbb-color-iron);
1750
1643
  }
1751
1644
  .sbb-step-list:where(.sbb-text-s) {
1752
1645
  --sbb-step-list-padding-block: var(--sbb-spacing-fixed-4x);
@@ -1778,9 +1671,6 @@ sup {
1778
1671
  border-end-end-radius: var(--sbb-step-list-border-radius);
1779
1672
  }
1780
1673
 
1781
- .sbb-icon-list {
1782
- /* stylelint-disable-next-line no-descending-specificity */
1783
- }
1784
1674
  .sbb-icon-list {
1785
1675
  --sbb-icon-list-dimensions: 2.125rem;
1786
1676
  --sbb-icon-list-padding-inline: var(--sbb-spacing-responsive-xxs);