@siemens/element-theme 49.8.0 → 49.10.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
|
@@ -38,6 +38,15 @@
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
+
.dropdown-menu-scroller {
|
|
42
|
+
overflow: auto;
|
|
43
|
+
// 266px is based on figma and gives 6-8 items. Depending on the number of headings
|
|
44
|
+
max-block-size: min(
|
|
45
|
+
100vh,
|
|
46
|
+
calc((1lh + 2 * #{bootstrap-variables.$dropdown-item-padding-y}) * 8.3125) // = 266px with rfs 16px
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
|
|
41
50
|
:is(.dropdown-menu, .dropdown-item) {
|
|
42
51
|
.icon + .item-title {
|
|
43
52
|
padding-inline-start: map.get(spacers.$spacers, 4);
|
|
@@ -331,7 +331,9 @@ $input-padding-x: (map.get(spacers.$spacers, 4) - 1px); // 8px including 1px bor
|
|
|
331
331
|
$input-font-family: null !default;
|
|
332
332
|
$input-font-size: $font-size-base;
|
|
333
333
|
$input-font-weight: $font-weight-base;
|
|
334
|
-
|
|
334
|
+
// Use an explicit rem value instead of a unitless ratio to prevent cross-browser
|
|
335
|
+
// rounding differences (Safari rounds 14 × 1.1428... to 15px, Chrome to 16px). See #2031
|
|
336
|
+
$input-line-height: typography.$si-line-height-body-rem !default;
|
|
335
337
|
|
|
336
338
|
$input-bg: semantic-tokens.$element-base-1 !default;
|
|
337
339
|
$input-disabled-bg: semantic-tokens.$element-base-1 !default;
|
|
@@ -353,12 +355,10 @@ $input-plaintext-color: $body-color !default;
|
|
|
353
355
|
|
|
354
356
|
$input-height-border: $input-border-width * 2 !default;
|
|
355
357
|
|
|
356
|
-
$input-height: functions.add(
|
|
357
|
-
$input-line-height * 1em,
|
|
358
|
-
functions.add($input-padding-y * 2, $input-height-border, false)
|
|
359
|
-
) !default;
|
|
358
|
+
$input-height: functions.add(1lh, ($input-padding-y + $input-border-width) * 2) !default;
|
|
360
359
|
|
|
361
|
-
$input-height
|
|
360
|
+
// don't derive from $input-height as it generates a nested calc() expression
|
|
361
|
+
$input-height-inner: functions.add($input-line-height, $input-padding-y * 2) !default;
|
|
362
362
|
// Wrap in parenthesis: `*` binds tighter than `-`, so without them only the border term gets multiplied.
|
|
363
363
|
// DEPRECATED: Calculate it yourself using $input-height-inner
|
|
364
364
|
$input-height-inner-half: calc((#{$input-height-inner}) * 0.5) !default;
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
background-repeat: no-repeat;
|
|
38
38
|
background-size: variables.$form-feedback-icon-size;
|
|
39
39
|
background-position-y: top
|
|
40
|
-
calc((#{variables.$input-height-inner
|
|
40
|
+
calc((#{variables.$input-height-inner} - #{variables.$form-feedback-icon-size}) * 0.5);
|
|
41
41
|
background-position-x: right
|
|
42
42
|
calc(
|
|
43
43
|
#{map.get(spacers.$spacers, 2) - variables.$input-border-width} +
|
|
@@ -64,6 +64,7 @@ $si-font-weight-body-lg: $si-font-weight-normal;
|
|
|
64
64
|
|
|
65
65
|
$si-font-size-body: px-to-rem(14px);
|
|
66
66
|
$si-line-height-body: px-to-ratio($si-font-size-body, 16px);
|
|
67
|
+
$si-line-height-body-rem: px-to-rem(16px);
|
|
67
68
|
$si-font-weight-body: $si-font-weight-normal;
|
|
68
69
|
|
|
69
70
|
$si-font-size-caption: px-to-rem(12px);
|