@bonniernews/dn-design-system-web 31.3.1 → 31.3.2

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
@@ -4,6 +4,14 @@ All changes to @bonniernews/dn-design-system-web will be documented in this file
4
4
 
5
5
 
6
6
 
7
+ ## [31.3.2](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@31.3.1...@bonniernews/dn-design-system-web@31.3.2) (2025-04-24)
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * **web:** reduce flakyness in tests and improve DX ([#1709](https://github.com/BonnierNews/dn-design-system/issues/1709)) ([142a8f3](https://github.com/BonnierNews/dn-design-system/commit/142a8f3b7922c1d307ce74db87e3f4788e1b4bd3))
13
+ * **web:** update typography and padding on small buttons ([#1699](https://github.com/BonnierNews/dn-design-system/issues/1699)) ([e7e10cd](https://github.com/BonnierNews/dn-design-system/commit/e7e10cd63957add40950858e926915cb9f4c11a7))
14
+
7
15
  ## [31.3.1](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@31.4.0...@bonniernews/dn-design-system-web@31.3.1) (2025-04-17)
8
16
 
9
17
 
@@ -74,15 +74,18 @@ $ds-btn-outlined__border-width: ds-border-width(xxs);
74
74
  --ds-btn__icon-size: #{ds-px-to-rem(20px)};
75
75
  --ds-btn__icon-padding: #{_btn-brdr(ds-spacing($ds-s-050), true)};
76
76
  --ds-btn__icon-only-padding: #{ds-px-to-rem(5px)};
77
- padding: _btn-brdr(ds-spacing($ds-s-025), true) _btn-brdr(ds-spacing($ds-s-075), true);
78
- @include ds-typography($variable: $ds-typography-functional-body-md, $fontWeight: $ds-fontweight-medium);
77
+ // Using decimal pixels here to force (one-line) buttons to be 32px.
78
+ padding: #{ds-px-to-rem(4.5px)} _btn-brdr(ds-spacing($ds-s-100), true);
79
+ @include ds-typography($variable: $ds-typography-functional-body-sm, $fontWeight: $ds-fontweight-medium);
79
80
  @at-root .ds-force-px#{&} {
80
81
  --ds-btn__icon-size: 20px;
81
82
  --ds-btn__icon-padding: #{_btn-brdr(ds-spacing($ds-s-050))};
82
83
  --ds-btn__icon-only-padding: 5px;
83
- padding: _btn-brdr(ds-spacing($ds-s-025)) _btn-brdr(ds-spacing($ds-s-075));
84
+
85
+ padding: 5px _btn-brdr(ds-spacing($ds-s-100)) 4px;
86
+
84
87
  @include ds-typography(
85
- $variable: $ds-typography-functional-body-md,
88
+ $variable: $ds-typography-functional-body-sm,
86
89
  $fontWeight: $ds-fontweight-medium,
87
90
  $forcePx: true
88
91
  );
@@ -244,6 +247,8 @@ $ds-btn-outlined__border-width: ds-border-width(xxs);
244
247
  margin: ds-spacing(0 0 0 $ds-s-025, rem);
245
248
  @at-root .ds-force-px#{&} {
246
249
  margin: ds-spacing(0 0 0 $ds-s-025);
250
+ // Compensate for padding to align forcePx button height to 32px
251
+ margin-top: -1px;
247
252
  }
248
253
  }
249
254
  }
@@ -264,6 +269,8 @@ $ds-btn-outlined__border-width: ds-border-width(xxs);
264
269
  }
265
270
  &.ds-btn--sm .ds-icon {
266
271
  margin: ds-spacing(0 $ds-s-025 0 0);
272
+ // Compensate for padding to align forcePx button height to 32px
273
+ margin-top: -1px;
267
274
  }
268
275
  }
269
276
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bonniernews/dn-design-system-web",
3
- "version": "31.3.1",
3
+ "version": "31.3.2",
4
4
  "description": "DN design system for web.",
5
5
  "type": "module",
6
6
  "homepage": "https://github.com/BonnierNews/dn-design-system/tree/main/web/src#readme",