@bonniernews/dn-design-system-web 31.3.0 → 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 +15 -0
- package/components/button/button.scss +11 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,21 @@ 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
|
+
|
|
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)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* **web:** revert push to main ([#1708](https://github.com/BonnierNews/dn-design-system/issues/1708)) ([12a810f](https://github.com/BonnierNews/dn-design-system/commit/12a810fd50af3e11216748f040fdcd0ce4d86f9b))
|
|
21
|
+
|
|
7
22
|
## [31.3.0](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@31.2.5...@bonniernews/dn-design-system-web@31.3.0) (2025-04-14)
|
|
8
23
|
|
|
9
24
|
|
|
@@ -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
|
-
|
|
78
|
-
|
|
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
|
-
|
|
84
|
+
|
|
85
|
+
padding: 5px _btn-brdr(ds-spacing($ds-s-100)) 4px;
|
|
86
|
+
|
|
84
87
|
@include ds-typography(
|
|
85
|
-
$variable: $ds-typography-functional-body-
|
|
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