@synergy-design-system/mcp 1.38.4 → 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,16 @@
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
+
3
14
  ## 1.38.4
4
15
 
5
16
  ### Patch Changes
@@ -1 +1 @@
1
- 6a2396efaec02a827d527a41ab32d3e0
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
  /**
@@ -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,16 @@
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
+
3
14
  ## 2.74.3
4
15
 
5
16
  ### Patch Changes
package/package.json CHANGED
@@ -28,11 +28,11 @@
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.3",
32
- "@synergy-design-system/eslint-config-syn": "^0.1.0",
33
31
  "@synergy-design-system/docs": "0.1.0",
34
32
  "@synergy-design-system/fonts": "1.0.1",
33
+ "@synergy-design-system/components": "2.74.4",
35
34
  "@synergy-design-system/styles": "1.9.0",
35
+ "@synergy-design-system/eslint-config-syn": "^0.1.0",
36
36
  "@synergy-design-system/tokens": "^2.46.0"
37
37
  },
38
38
  "exports": {
@@ -67,7 +67,7 @@
67
67
  "directory": "packages/mcp"
68
68
  },
69
69
  "type": "module",
70
- "version": "1.38.4",
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",