@synergy-design-system/mcp 1.38.3 → 1.38.5

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/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.38.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1134](https://github.com/synergy-design-system/synergy-design-system/pull/1134) [`53bd655`](https://github.com/synergy-design-system/synergy-design-system/commit/53bd655f465b76c2aa7d57449750b99e8fcfb500) Thanks [@schilchSICKAG](https://github.com/schilchSICKAG)! - Released on: 2025-12-16
8
+
9
+ fix: 🐛 Adjust `<syn-option>` and `<syn-menu-item>` interactive background (#1127)
10
+
11
+ Minor adjustments for `<syn-option>` and `<syn-menu-item>` hover and focus states to better mimic the effects as detailed in Figma for the SICK 2025 themes.
12
+ Both components now use a combination of `background` and `border-radius` to show the `<syn-option>` with an inset highlight color, allowing to better match the wanted spacings.
13
+
14
+ ## 1.38.4
15
+
16
+ ### Patch Changes
17
+
18
+ - [#1139](https://github.com/synergy-design-system/synergy-design-system/pull/1139) [`6cc7376`](https://github.com/synergy-design-system/synergy-design-system/commit/6cc737681f2b137702f3e95b0a666ae6f28b5039) Thanks [@schilchSICKAG](https://github.com/schilchSICKAG)! - Released on: 2025-12-16
19
+
20
+ fix: 🐛 Incorrect offset of submenu items when submenu opens to the left (#1009)
21
+
22
+ Fixes an issue that leads to incorrect offsets when a nested `<syn-menu>` is opened to the left instead of to the right.
23
+
3
24
  ## 1.38.3
4
25
 
5
26
  ### Patch Changes
@@ -1 +1 @@
1
- 278966e03dfcb1b0aadaaa295827b268
1
+ f3d1570f48a5e4ab32df16eeee906a50
@@ -4,28 +4,43 @@ export default css`
4
4
  :host {
5
5
  /* Custom override for hiding the checkmark in menus it is not needed */
6
6
  --display-checkmark: flex;
7
+
8
+ /**
9
+ * Default size settings for menu-item
10
+ * This prepares the custom sizes that we will add later on
11
+ * @see https://github.com/synergy-design-system/design/issues/277
12
+ */
13
+ --menuitem-inset-border-horizontal: var(--syn-spacing-2x-small);
14
+ --menuitem-inset-border-vertical: calc(var(--syn-spacing-x-small) - 1px);
15
+ --menuitem-min-height: var(--syn-input-height-medium);
16
+ --menuitem-padding: var(--syn-input-spacing-medium);
17
+ --menuitem-font-size: var(--syn-input-font-size-medium);
18
+ --menuitem-icon-size: var(--syn-spacing-large);
7
19
  }
8
20
 
9
21
  .menu-item {
22
+ align-items: center;
23
+
10
24
  /*
11
- * #958: Brand2025 defines a small gap between menu items
12
- * and rounded corners. We achieve that using an outline
25
+ * #1127: Brand2025 defines a small gap between options
26
+ * and rounded corners. We achieve that using an border
13
27
  * that simulates the gap using the menu background color.
14
28
  */
15
- --outline: calc(var(--syn-focus-ring-border-radius) * 1.5);
16
-
17
- border-radius: calc(var(--outline) * 1.5);
29
+ border: solid var(--syn-panel-background-color);
30
+
31
+ /* Border Radius needs to be increased to cover the outline */
32
+ border-radius: calc(var(--syn-focus-ring-border-radius) + var(--menuitem-inset-border-vertical));
33
+ border-width: var(--menuitem-inset-border-horizontal) var(--menuitem-inset-border-vertical);
18
34
  color: var(--syn-option-color, var(--syn-typography-color-text));
19
- font-size: var(--syn-font-size-medium);
20
- outline: var(--outline) solid var(--syn-panel-background-color);
21
- outline-offset: calc(var(--outline) * -1 + 1px);
22
- padding: var(--syn-spacing-small) var(--syn-spacing-medium);
35
+ font-size: var(--menuitem-font-size);
36
+
37
+ /* Height is dependent on line-height of .option__label, which does not fit completely to layout */
38
+ min-height: var(--menuitem-min-height, var(--syn-input-height-medium));
39
+ padding: 0 calc(var(--menuitem-padding) - var(--menuitem-inset-border-vertical));
23
40
  }
24
41
 
25
42
  :host(:focus-visible) .menu-item {
26
43
  background-color: var(--syn-option-background-color-active, var(--syn-color-neutral-1000));
27
- outline: var(--outline) solid var(--syn-panel-background-color);
28
- outline-offset: calc(var(--outline) * -1 + 1px);
29
44
  }
30
45
 
31
46
  /** #429: Use token for opacity */
@@ -146,7 +161,7 @@ export default css`
146
161
 
147
162
  color: var(--syn-interactive-emphasis-color, var(--syn-color-primary-700));
148
163
  font-size: var(--syn-font-size-medium);
149
- left: var(--syn-spacing-medium);
164
+ left: calc(var(--menuitem-padding) - var(--menuitem-inset-border-vertical));
150
165
  }
151
166
 
152
167
  /**
@@ -165,4 +180,13 @@ export default css`
165
180
  syn-popup::part(popup) {
166
181
  border-radius: var(--syn-input-border-radius-medium);
167
182
  }
183
+
184
+ /**
185
+ * #1009: Adjust the position for submenus when they are opened to the left, too.
186
+ * This works because the data-current-placement attribute is set on the popup accordingly.
187
+ * We do not use the actual placement attribute, because it does not update when the placement changes
188
+ */
189
+ syn-popup[data-current-placement^="left"]::part(popup) {
190
+ margin-left: calc(-1 * var(--submenu-offset));
191
+ }
168
192
  `;
@@ -13,6 +13,8 @@ export default css`
13
13
 
14
14
  .optgroup__label-container {
15
15
  align-items: center;
16
+ border: solid transparent;
17
+ border-width: 0 var(--option-inset-border-vertical);
16
18
  box-sizing: border-box;
17
19
  color: var(--syn-input-color);
18
20
  display: flex;
@@ -26,7 +28,7 @@ export default css`
26
28
  .optgroup--has-prefix .optgroup__label-container,
27
29
  .optgroup--has-label .optgroup__label-container,
28
30
  .optgroup--has-suffix .optgroup__label-container {
29
- padding: var(--option-padding, var(--syn-spacing-small) var(--syn-spacing-medium));
31
+ padding: 0 calc(var(--option-padding) - var(--option-inset-border-vertical));
30
32
  }
31
33
 
32
34
  /**
@@ -15,19 +15,24 @@ export default css`
15
15
  .option {
16
16
  /*
17
17
  * #988: Brand2025 defines a small gap between options
18
- * and rounded corners. We achieve that using an outline
18
+ * and rounded corners. We achieve that using an border
19
19
  * that simulates the gap using the menu background color.
20
20
  */
21
- --outline: calc(var(--syn-focus-ring-border-radius) * 1.5);
21
+ border: solid var(--syn-panel-background-color);
22
22
 
23
- border-radius: calc(var(--outline) * 1.5);
23
+ /**
24
+ * Border Radius needs to be increased to cover the outline
25
+ * Note this also needs to take the following into account:
26
+ * - 2018 does not have a focus ring, so the border radius is as small as the border, essentially negating it to "0"
27
+ * - 2025 needs to adapt with another pixel to make it match the rounding of the focus ring
28
+ */
29
+ border-radius: calc(calc(var(--syn-focus-ring-border-radius) * 2) + var(--option-inset-border-vertical) - 1px);
30
+ border-width: var(--option-inset-border-horizontal) var(--option-inset-border-vertical);
24
31
  font-size: var(--option-font-size, var(--syn-font-size-medium));
25
32
 
26
33
  /* Height is dependent on line-height of .option__label, which does not fit completely to layout */
27
34
  min-height: var(--option-min-height, var(--syn-input-height-medium));
28
- outline: var(--outline) solid var(--syn-panel-background-color);
29
- outline-offset: calc(var(--outline) * -1 + 1px);
30
- padding: var(--option-padding, var(--syn-spacing-small) var(--syn-spacing-medium));
35
+ padding: 0 calc(var(--option-padding) - var(--option-inset-border-vertical));
31
36
  }
32
37
 
33
38
  .option:not(.option--current) {
@@ -1,5 +1,26 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.74.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1134](https://github.com/synergy-design-system/synergy-design-system/pull/1134) [`53bd655`](https://github.com/synergy-design-system/synergy-design-system/commit/53bd655f465b76c2aa7d57449750b99e8fcfb500) Thanks [@schilchSICKAG](https://github.com/schilchSICKAG)! - Released on: 2025-12-16
8
+
9
+ fix: 🐛 Adjust `<syn-option>` and `<syn-menu-item>` interactive background (#1127)
10
+
11
+ Minor adjustments for `<syn-option>` and `<syn-menu-item>` hover and focus states to better mimic the effects as detailed in Figma for the SICK 2025 themes.
12
+ Both components now use a combination of `background` and `border-radius` to show the `<syn-option>` with an inset highlight color, allowing to better match the wanted spacings.
13
+
14
+ ## 2.74.3
15
+
16
+ ### Patch Changes
17
+
18
+ - [#1139](https://github.com/synergy-design-system/synergy-design-system/pull/1139) [`6cc7376`](https://github.com/synergy-design-system/synergy-design-system/commit/6cc737681f2b137702f3e95b0a666ae6f28b5039) Thanks [@schilchSICKAG](https://github.com/schilchSICKAG)! - Released on: 2025-12-16
19
+
20
+ fix: 🐛 Incorrect offset of submenu items when submenu opens to the left (#1009)
21
+
22
+ Fixes an issue that leads to incorrect offsets when a nested `<syn-menu>` is opened to the left instead of to the right.
23
+
3
24
  ## 2.74.2
4
25
 
5
26
  ### Patch Changes
package/package.json CHANGED
@@ -28,12 +28,12 @@
28
28
  "serve-handler": "^6.1.6",
29
29
  "ts-jest": "^29.4.0",
30
30
  "typescript": "^5.9.3",
31
- "@synergy-design-system/components": "2.74.2",
32
31
  "@synergy-design-system/docs": "0.1.0",
33
32
  "@synergy-design-system/fonts": "1.0.1",
34
- "@synergy-design-system/tokens": "^2.46.0",
33
+ "@synergy-design-system/components": "2.74.4",
35
34
  "@synergy-design-system/styles": "1.9.0",
36
- "@synergy-design-system/eslint-config-syn": "^0.1.0"
35
+ "@synergy-design-system/eslint-config-syn": "^0.1.0",
36
+ "@synergy-design-system/tokens": "^2.46.0"
37
37
  },
38
38
  "exports": {
39
39
  ".": {
@@ -67,7 +67,7 @@
67
67
  "directory": "packages/mcp"
68
68
  },
69
69
  "type": "module",
70
- "version": "1.38.3",
70
+ "version": "1.38.5",
71
71
  "scripts": {
72
72
  "build": "pnpm run build:ts && pnpm run build:metadata && pnpm build:hash",
73
73
  "build:all": "pnpm run build && pnpm run build:storybook",