@siemens/element-theme 51.0.0-rc.9 → 51.0.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 (39) hide show
  1. package/package.json +1 -1
  2. package/src/styles/bootstrap/_alert.scss +18 -18
  3. package/src/styles/bootstrap/_badges.scss +37 -37
  4. package/src/styles/bootstrap/_button-group.scss +8 -8
  5. package/src/styles/bootstrap/_buttons.scss +67 -67
  6. package/src/styles/bootstrap/_card.scss +13 -12
  7. package/src/styles/bootstrap/_dropdowns.scss +5 -5
  8. package/src/styles/bootstrap/_images.scss +1 -1
  9. package/src/styles/bootstrap/_list-group.scss +50 -12
  10. package/src/styles/bootstrap/_modals.scss +2 -2
  11. package/src/styles/bootstrap/_nav.scss +6 -6
  12. package/src/styles/bootstrap/_pagination.scss +2 -2
  13. package/src/styles/bootstrap/_popovers.scss +1 -1
  14. package/src/styles/bootstrap/_utilities.scss +38 -37
  15. package/src/styles/bootstrap/_variables.scss +89 -91
  16. package/src/styles/bootstrap/forms/_form-check.scss +20 -20
  17. package/src/styles/bootstrap/forms/_form-control.scss +15 -15
  18. package/src/styles/bootstrap/forms/_form-file.scss +6 -6
  19. package/src/styles/bootstrap/forms/_form-range.scss +12 -12
  20. package/src/styles/components/_application-header.scss +15 -15
  21. package/src/styles/components/_datatable.scss +11 -11
  22. package/src/styles/components/_drag_drop.scss +5 -5
  23. package/src/styles/components/_elevation.scss +4 -4
  24. package/src/styles/components/_layout.scss +1 -1
  25. package/src/styles/components/_links.scss +1 -1
  26. package/src/styles/components/_list-item.scss +14 -19
  27. package/src/styles/components/_markdown.scss +1 -1
  28. package/src/styles/components/_pills.scss +3 -3
  29. package/src/styles/components/_scrollbar.scss +3 -3
  30. package/src/styles/components/_search-bar.scss +6 -6
  31. package/src/styles/components/_skeleton.scss +3 -3
  32. package/src/styles/components/_switch.scss +12 -12
  33. package/src/styles/components/_widgets.scss +1 -1
  34. package/src/styles/mixins/_utilities.scss +94 -82
  35. package/src/styles/variables/_elevation.scss +8 -8
  36. package/src/styles/variables/_focus.scss +3 -3
  37. package/src/styles/variables/_system-tokens.scss +202 -180
  38. package/src/styles/variables/_utilities.scss +4 -4
  39. package/src/theme/_theme-element.scss +326 -302
@@ -1,3 +1,29 @@
1
+ // @deprecated The Bootstrap list group is deprecated in favor of the Element list
2
+ // (`.list` / `.list-item`, see `../components/_list-item.scss`).
3
+
4
+ // The list group predates the Element list and is only a thin container with
5
+ // borders. It has no notion of the Element list anatomy (indicator, title,
6
+ // description, metadata, quick actions) and therefore cannot express the current
7
+ // design. Do not use it for new code.
8
+
9
+ // Rough mapping, the markup has to be restructured, this is not a class rename:
10
+ // `.list-group` -> `.list`, optionally with `.list-divider`, `.list-filled` or `.list-outline`
11
+ // `.list-group-item` -> `.list-item`, children need explicit slot classes
12
+ // (`.list-item-title`, `.list-item-description`, ...)
13
+ // `.list-group-item-action` -> `.list-item.list-item-action`
14
+ // `.list-group-flush` -> `.list.list-divider` to preserve dividers; otherwise
15
+ // `.list`, which has no outer border
16
+ // `.list-group-md` / `.list-group-lg` -> no replacement, the item height follows its content
17
+ // `.list-group-horizontal*` -> no replacement, use flex or grid utilities
18
+ // `.list-group-numbered` -> no replacement, use an ordered list with a custom counter
19
+ // because `.list-item` removes list markers
20
+ // `.list-group-item-*` -> no replacement, use background and text utilities
21
+ // `.list-header` -> no replacement, use a heading element
22
+
23
+ // These styles remain available for existing applications and there is no removal
24
+ // planned at this point. They will not receive further design updates and may be
25
+ // removed in a future major version.
26
+
1
27
  @use 'sass:map';
2
28
 
3
29
  @use '../variables/focus';
@@ -6,6 +32,7 @@
6
32
  @use 'mixins/breakpoints';
7
33
  @use 'variables';
8
34
 
35
+ // @deprecated Use `.list` instead.
9
36
  .list-group {
10
37
  display: flex;
11
38
  flex-direction: column;
@@ -13,6 +40,8 @@
13
40
  border-radius: variables.$list-group-border-radius;
14
41
  }
15
42
 
43
+ // @deprecated No replacement, use an ordered list with a custom counter because
44
+ // `.list-item` removes list markers.
16
45
  .list-group-numbered {
17
46
  list-style-type: none;
18
47
  counter-reset: section;
@@ -24,6 +53,7 @@
24
53
  }
25
54
  }
26
55
 
56
+ // @deprecated Use `.list-item.list-item-action` instead.
27
57
  .list-group-item-action {
28
58
  inline-size: 100%; // For `<button>`s (anchors become 100% by default though)
29
59
  color: variables.$list-group-action-color;
@@ -47,6 +77,7 @@
47
77
  }
48
78
  }
49
79
 
80
+ // @deprecated Use `.list-item` instead.
50
81
  .list-group-item {
51
82
  position: relative;
52
83
  display: block;
@@ -100,14 +131,17 @@
100
131
  }
101
132
  }
102
133
 
134
+ // @deprecated No replacement, the height of a `.list-item` follows its content.
103
135
  .list-group-lg .list-group-item {
104
136
  min-block-size: calc(3rem + 2 * variables.$list-group-item-padding-y);
105
137
  }
106
138
 
139
+ // @deprecated No replacement, the height of a `.list-item` follows its content.
107
140
  .list-group-md .list-group-item {
108
141
  min-block-size: calc(2rem + 2 * variables.$list-group-item-padding-y);
109
142
  }
110
143
 
144
+ // @deprecated No replacement, use a heading element.
111
145
  .list-header {
112
146
  font-size: typography.$si-font-size-body-sm;
113
147
  padding-block: variables.$list-group-item-padding-y;
@@ -117,6 +151,7 @@
117
151
  border: 1px solid variables.$list-group-border-color;
118
152
  }
119
153
 
154
+ // @deprecated No replacement, use flex or grid utilities.
120
155
  @each $breakpoint in map.keys(variables.$grid-breakpoints) {
121
156
  @include breakpoints.media-breakpoint-up($breakpoint) {
122
157
  $infix: breakpoints.breakpoint-infix($breakpoint, variables.$grid-breakpoints);
@@ -154,6 +189,7 @@
154
189
  }
155
190
  }
156
191
 
192
+ // @deprecated Use `.list` instead, the Element list has no outer border.
157
193
  .list-group-flush {
158
194
  border-radius: 0;
159
195
 
@@ -167,32 +203,34 @@
167
203
  }
168
204
  }
169
205
 
206
+ // @deprecated No replacement for the `.list-group-item-*` variants below,
207
+ // use the background and text utilities on a `.list-item` instead.
170
208
  .list-group-item-secondary {
171
- background-color: system-tokens.$si-sys-background-neutral;
172
- color: system-tokens.$si-sys-text-primary;
209
+ background-color: system-tokens.$si-sys-color-background-neutral;
210
+ color: system-tokens.$si-sys-color-text-on-neutral;
173
211
  }
174
212
 
175
213
  .list-group-item-success {
176
- color: system-tokens.$si-sys-text-success;
177
- background: system-tokens.$si-sys-background-success-subtle;
214
+ color: system-tokens.$si-sys-color-text-success;
215
+ background: system-tokens.$si-sys-color-background-success-subtle;
178
216
  }
179
217
 
180
218
  .list-group-item-warning {
181
- color: system-tokens.$si-sys-text-warning;
182
- background: system-tokens.$si-sys-background-warning-subtle;
219
+ color: system-tokens.$si-sys-color-text-warning;
220
+ background: system-tokens.$si-sys-color-background-warning-subtle;
183
221
  }
184
222
 
185
223
  .list-group-item-caution {
186
- background-color: system-tokens.$si-sys-background-caution-subtle;
187
- color: system-tokens.$si-sys-text-caution;
224
+ background-color: system-tokens.$si-sys-color-background-caution-subtle;
225
+ color: system-tokens.$si-sys-color-text-caution;
188
226
  }
189
227
 
190
228
  .list-group-item-danger {
191
- color: system-tokens.$si-sys-text-danger;
192
- background: system-tokens.$si-sys-background-danger-subtle;
229
+ color: system-tokens.$si-sys-color-text-danger;
230
+ background: system-tokens.$si-sys-color-background-danger-subtle;
193
231
  }
194
232
 
195
233
  .list-group-item-info {
196
- color: system-tokens.$si-sys-text-information;
197
- background: system-tokens.$si-sys-background-information-subtle;
234
+ color: system-tokens.$si-sys-color-text-information;
235
+ background: system-tokens.$si-sys-color-background-information-subtle;
198
236
  }
@@ -132,7 +132,7 @@
132
132
  background-color: variables.$modal-content-bg;
133
133
  background-clip: padding-box;
134
134
  border-radius: variables.$modal-content-border-radius;
135
- box-shadow: system-tokens.$si-sys-effects-shadow-3;
135
+ box-shadow: system-tokens.$si-sys-color-effects-shadow-3;
136
136
  // Remove focus outline from opened modal
137
137
  outline: 0;
138
138
  }
@@ -195,7 +195,7 @@
195
195
  }
196
196
 
197
197
  .modal-content {
198
- box-shadow: system-tokens.$si-sys-effects-shadow-2;
198
+ box-shadow: system-tokens.$si-sys-color-effects-shadow-2;
199
199
  }
200
200
 
201
201
  .modal-sm {
@@ -17,9 +17,9 @@ $nav-tabs-min-width: 100px;
17
17
 
18
18
  .nav-link {
19
19
  &:hover {
20
- color: system-tokens.$si-sys-text-on-accent-secondary-hover;
21
- background: system-tokens.$si-sys-background-accent-secondary-hover;
22
- border-color: system-tokens.$si-sys-border-accent-hover;
20
+ color: system-tokens.$si-sys-color-text-on-accent-secondary-hover;
21
+ background: system-tokens.$si-sys-color-background-accent-secondary-hover;
22
+ border-color: system-tokens.$si-sys-color-border-accent-hover;
23
23
  }
24
24
  }
25
25
  }
@@ -58,12 +58,12 @@ $nav-tabs-min-width: 100px;
58
58
  inset-inline: 0;
59
59
  inset-block-end: 0;
60
60
  block-size: 1px;
61
- background: system-tokens.$si-sys-border-4;
61
+ background: system-tokens.$si-sys-color-border-4;
62
62
  }
63
63
 
64
64
  &:focus-visible::before {
65
65
  // because otherwise the focus is cut off
66
- background: system-tokens.$si-sys-effects-focus;
66
+ background: system-tokens.$si-sys-color-effects-focus;
67
67
  }
68
68
 
69
69
  .nav-link {
@@ -86,7 +86,7 @@ $nav-tabs-min-width: 100px;
86
86
  }
87
87
 
88
88
  &.active {
89
- border-color: system-tokens.$si-sys-border-accent-hover;
89
+ border-color: system-tokens.$si-sys-color-border-accent-hover;
90
90
  font-size: typography.$si-font-size-body-lg-sbold;
91
91
  font-weight: typography.$si-font-weight-body-lg-sbold;
92
92
  line-height: typography.$si-line-height-body-lg-sbold;
@@ -28,11 +28,11 @@ $page-button-size: 1.5rem;
28
28
  background: transparent;
29
29
  font-size: typography.$si-font-size-h5;
30
30
  font-weight: typography.$si-font-weight-h5;
31
- color: system-tokens.$si-sys-text-primary;
31
+ color: system-tokens.$si-sys-color-text-primary;
32
32
  border: 0;
33
33
 
34
34
  &:is(.active, :hover:not(:disabled)):not(.separator) {
35
- background: system-tokens.$si-sys-background-active;
35
+ background: system-tokens.$si-sys-color-background-active;
36
36
  }
37
37
 
38
38
  &:has(.icon) {
@@ -28,7 +28,7 @@ $si-popover-bg: var(--popover-bg-color, variables.$popover-bg);
28
28
  word-wrap: break-word;
29
29
  background-color: $si-popover-bg;
30
30
  background-clip: padding-box;
31
- box-shadow: system-tokens.$si-sys-effects-shadow-3;
31
+ box-shadow: system-tokens.$si-sys-color-effects-shadow-3;
32
32
  border-radius: semantic-tokens.$element-radius-2;
33
33
 
34
34
  &.auto-width {
@@ -37,10 +37,10 @@
37
37
 
38
38
  // Deprecated legacy utilities. Use system-token text utilities instead.
39
39
  $text-colors: (
40
- 'body': system-tokens.$si-sys-text-primary,
41
- 'tertiary': system-tokens.$si-sys-text-disabled,
42
- 'info': system-tokens.$si-sys-text-information,
43
- 'muted': system-tokens.$si-sys-text-disabled
40
+ 'body': system-tokens.$si-sys-color-text-primary,
41
+ 'tertiary': system-tokens.$si-sys-color-text-disabled,
42
+ 'info': system-tokens.$si-sys-color-text-information,
43
+ 'muted': system-tokens.$si-sys-color-text-disabled
44
44
  ) !default;
45
45
 
46
46
  @each $color, $value in $text-colors {
@@ -51,26 +51,26 @@ $text-colors: (
51
51
 
52
52
  // Deprecated legacy utilities. Use system-token background utilities instead.
53
53
  $background-colors: (
54
- 'primary': system-tokens.$si-sys-background-accent,
55
- 'secondary': system-tokens.$si-sys-text-secondary,
56
- 'tertiary': system-tokens.$si-sys-text-disabled,
57
- 'success': system-tokens.$si-sys-background-success,
58
- 'info': system-tokens.$si-sys-background-information,
59
- 'warning': system-tokens.$si-sys-background-warning,
60
- 'danger': system-tokens.$si-sys-background-danger,
61
- 'base-0': system-tokens.$si-sys-background-0,
62
- 'base-1': system-tokens.$si-sys-background-1,
63
- 'base-2': system-tokens.$si-sys-background-2,
64
- 'base-3': system-tokens.$si-sys-background-3,
65
- 'base-4': system-tokens.$si-sys-background-4,
66
- 'base-success': system-tokens.$si-sys-background-success-subtle,
67
- 'base-info': system-tokens.$si-sys-background-information-subtle,
68
- 'base-caution': system-tokens.$si-sys-background-caution-subtle,
69
- 'base-warning': system-tokens.$si-sys-background-warning-subtle,
70
- 'base-danger': system-tokens.$si-sys-background-danger-subtle,
71
- 'base-critical': system-tokens.$si-sys-background-critical-subtle,
72
- 'base-translucent-1': system-tokens.$si-sys-effects-backdrop,
73
- 'base-translucent-2': system-tokens.$si-sys-background-inverse
54
+ 'primary': system-tokens.$si-sys-color-background-accent,
55
+ 'secondary': system-tokens.$si-sys-color-text-secondary,
56
+ 'tertiary': system-tokens.$si-sys-color-text-disabled,
57
+ 'success': system-tokens.$si-sys-color-background-success,
58
+ 'info': system-tokens.$si-sys-color-background-information,
59
+ 'warning': system-tokens.$si-sys-color-background-warning,
60
+ 'danger': system-tokens.$si-sys-color-background-danger,
61
+ 'base-0': system-tokens.$si-sys-color-background-0,
62
+ 'base-1': system-tokens.$si-sys-color-background-1,
63
+ 'base-2': system-tokens.$si-sys-color-background-2,
64
+ 'base-3': system-tokens.$si-sys-color-background-3,
65
+ 'base-4': system-tokens.$si-sys-color-background-4,
66
+ 'base-success': system-tokens.$si-sys-color-background-success-subtle,
67
+ 'base-info': system-tokens.$si-sys-color-background-information-subtle,
68
+ 'base-caution': system-tokens.$si-sys-color-background-caution-subtle,
69
+ 'base-warning': system-tokens.$si-sys-color-background-warning-subtle,
70
+ 'base-danger': system-tokens.$si-sys-color-background-danger-subtle,
71
+ 'base-critical': system-tokens.$si-sys-color-background-critical-subtle,
72
+ 'base-translucent-1': system-tokens.$si-sys-color-effects-backdrop,
73
+ 'base-translucent-2': system-tokens.$si-sys-color-background-inverse
74
74
  ) !default;
75
75
 
76
76
  @each $color, $value in $background-colors {
@@ -80,19 +80,20 @@ $background-colors: (
80
80
  }
81
81
 
82
82
  $status-colors: (
83
- 'success': system-tokens.$si-sys-background-success,
84
- 'info': system-tokens.$si-sys-background-information,
85
- 'caution': system-tokens.$si-sys-background-caution,
86
- 'warning': system-tokens.$si-sys-background-warning,
87
- 'danger': system-tokens.$si-sys-background-danger,
88
- 'critical': system-tokens.$si-sys-background-critical,
89
- 'neutral': system-tokens.$si-sys-background-neutral,
90
- 'success-contrast': system-tokens.$si-sys-text-on-success,
91
- 'info-contrast': system-tokens.$si-sys-text-on-information,
92
- 'caution-contrast': system-tokens.$si-sys-text-on-caution,
93
- 'warning-contrast': system-tokens.$si-sys-text-on-warning,
94
- 'danger-contrast': system-tokens.$si-sys-text-on-danger,
95
- 'critical-contrast': system-tokens.$si-sys-text-on-critical
83
+ 'success': system-tokens.$si-sys-color-background-success,
84
+ 'info': system-tokens.$si-sys-color-background-information,
85
+ 'caution': system-tokens.$si-sys-color-background-caution,
86
+ 'warning': system-tokens.$si-sys-color-background-warning,
87
+ 'danger': system-tokens.$si-sys-color-background-danger,
88
+ 'critical': system-tokens.$si-sys-color-background-critical,
89
+ 'neutral': system-tokens.$si-sys-color-background-neutral,
90
+ 'success-contrast': system-tokens.$si-sys-color-text-on-success,
91
+ 'info-contrast': system-tokens.$si-sys-color-text-on-information,
92
+ 'caution-contrast': system-tokens.$si-sys-color-text-on-caution,
93
+ 'warning-contrast': system-tokens.$si-sys-color-text-on-warning,
94
+ 'danger-contrast': system-tokens.$si-sys-color-text-on-danger,
95
+ 'critical-contrast': system-tokens.$si-sys-color-text-on-critical,
96
+ 'neutral-contrast': system-tokens.$si-sys-color-text-on-neutral
96
97
  ) !default;
97
98
 
98
99
  @each $color, $value in $status-colors {