@siemens/element-theme 51.1.0 → 51.3.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@siemens/element-theme",
3
- "version": "51.1.0",
3
+ "version": "51.3.0",
4
4
  "description": "Element CSS theme.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -218,7 +218,6 @@ $form-check-label-start: calc($form-check-size + map.get(spacers.$spacers-inline
218
218
  .datatable-checkbox {
219
219
  inline-size: $form-check-size !important; // stylelint-disable-line declaration-no-important
220
220
  block-size: $form-check-size !important; // stylelint-disable-line declaration-no-important
221
- inset-block-start: 0.0625rem !important; // stylelint-disable-line declaration-no-important
222
221
 
223
222
  input[type='checkbox'] {
224
223
  @extend %form-check-base;
@@ -139,16 +139,9 @@ $datatable-ghost-cell-strip-radius: 0 !default;
139
139
  :is(.datatable-header-cell, .datatable-body-cell) {
140
140
  label.datatable-checkbox {
141
141
  display: inline-flex;
142
- inline-size: 13px;
143
- block-size: 13px;
144
142
  margin-block: 0;
145
- margin-inline: 0 map.get(spacers.$spacers-inline, 6);
143
+ margin-inline: 0 map.get(spacers.$spacers-inline, 4);
146
144
  position: relative;
147
-
148
- > input {
149
- inline-size: 100%;
150
- block-size: 100%;
151
- }
152
145
  }
153
146
  }
154
147
 
@@ -187,20 +180,16 @@ $datatable-ghost-cell-strip-radius: 0 !default;
187
180
  display: flex;
188
181
  align-items: center;
189
182
  padding-block: 0;
190
- padding-inline: 4px;
183
+ padding-inline: map.get(spacers.$spacers-inline, 4);
191
184
  min-inline-size: $datatable-cell-min-width;
192
185
  line-height: typography.$si-line-height-body;
193
186
 
194
- > div {
195
- padding: 4px;
196
- }
197
-
198
187
  &:first-child {
199
- padding-inline-start: map.get(spacers.$spacers-inline, 5);
188
+ padding-inline-start: map.get(spacers.$spacers-inline, 6);
200
189
  }
201
190
 
202
191
  &:last-child {
203
- padding-inline-end: map.get(spacers.$spacers-inline, 5);
192
+ padding-inline-end: map.get(spacers.$spacers-inline, 6);
204
193
  }
205
194
  }
206
195
 
@@ -208,7 +197,7 @@ $datatable-ghost-cell-strip-radius: 0 !default;
208
197
  .datatable-header-cell-template-wrap {
209
198
  display: flex;
210
199
  align-items: center;
211
- overflow: hidden;
200
+ min-inline-size: 0;
212
201
 
213
202
  .datatable-header-cell-wrapper {
214
203
  @include text-truncate.text-truncate;
@@ -234,14 +223,29 @@ $datatable-ghost-cell-strip-radius: 0 !default;
234
223
  margin-inline-start: map.get(spacers.$spacers-inline, 1);
235
224
  }
236
225
 
226
+ .datatable-header-cell.resizeable {
227
+ padding-inline-end: 0;
228
+ }
229
+
237
230
  // Resizable handle
238
- .resizeable:hover {
239
- .resize-handle {
240
- background-color: system-tokens.$si-sys-color-background-0;
241
- inline-size: 2px;
242
- border-radius: 2px;
243
- padding-block: 0;
244
- padding-inline: 2px;
231
+ .resize-handle {
232
+ position: relative;
233
+ visibility: visible;
234
+ inline-size: 8px;
235
+ border-radius: 2px;
236
+ padding-block: 0;
237
+ padding-inline: 0;
238
+ block-size: 100%;
239
+ margin-inline-start: auto;
240
+
241
+ &::after {
242
+ content: '';
243
+ position: absolute;
244
+ inset-block: map.get(spacers.$spacers-block, 5);
245
+ inset-inline: 0;
246
+ margin-inline: auto;
247
+ inline-size: map.get(spacers.$spacers-inline, 1);
248
+ background-color: system-tokens.$si-sys-color-border-4;
245
249
  }
246
250
  }
247
251
 
@@ -1,3 +1,4 @@
1
+ @use 'sass:map';
1
2
  @use '../variables';
2
3
  @use '../selectors';
3
4
 
@@ -80,6 +81,37 @@
80
81
  }
81
82
  }
82
83
 
84
+ // Opt in on the destination list or the draggable item to show an insertion line.
85
+ // Keep the placeholder visible in copy-source lists until it becomes an anchor.
86
+ .cdk-drop-list.drop-line-placeholder:not([cdkDropListHasAnchor])
87
+ > .cdk-drag-placeholder:not(.cdk-drag-anchor),
88
+ .cdk-drop-list:not([cdkDropListHasAnchor])
89
+ .cdk-drag-placeholder.drop-line-placeholder:not(.cdk-drag-anchor) {
90
+ block-size: 0;
91
+ min-block-size: 0;
92
+ inline-size: auto;
93
+ margin-inline: map.get(variables.$spacers-inline, 4);
94
+ margin-block: 0;
95
+ padding: 0;
96
+ border: 0;
97
+ opacity: 1;
98
+ background-color: transparent !important;
99
+ position: relative;
100
+ z-index: 999;
101
+
102
+ &::after {
103
+ position: absolute;
104
+ inline-size: 100%;
105
+ block-size: map.get(variables.$spacers-block, 1);
106
+ content: '';
107
+ background-color: variables.$si-sys-color-effects-focus;
108
+ }
109
+
110
+ > * {
111
+ display: none;
112
+ }
113
+ }
114
+
83
115
  // The anchor is a clone of the placeholder left behind in the source list when
84
116
  // `cdkDropListHasAnchor` is used. Make sure it always renders like the original item.
85
117
  .cdk-drag-anchor,
@@ -45,7 +45,7 @@ $utilities: (
45
45
  ),
46
46
  'overflow': (
47
47
  property: overflow,
48
- values: auto hidden visible scroll
48
+ values: auto hidden visible scroll clip
49
49
  ),
50
50
  'display': (
51
51
  responsive: true,