@bonniernews/dn-design-system-web 11.4.0-beta.1 → 11.4.0-beta.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,8 @@ All changes to @bonniernews/dn-design-system-web will be documented in this file
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
+
## [11.4.0-beta.2](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@11.4.0-beta.1...@bonniernews/dn-design-system-web@11.4.0-beta.2) (2024-02-14)
|
|
8
|
+
|
|
7
9
|
## [11.4.0-beta.1](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@11.4.0-beta.0...@bonniernews/dn-design-system-web@11.4.0-beta.1) (2024-02-13)
|
|
8
10
|
|
|
9
11
|
## [11.4.0-beta.0](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@11.3.1...@bonniernews/dn-design-system-web@11.4.0-beta.0) (2024-02-12)
|
|
@@ -7,7 +7,7 @@ $ds-badge__min-size: 8px;
|
|
|
7
7
|
box-sizing: content-box;
|
|
8
8
|
|
|
9
9
|
.ds-badge__inner {
|
|
10
|
-
@include ds-typography($ds-typography-functional-meta02semibold);
|
|
10
|
+
@include ds-typography($component: $ds-typography-functional-meta02semibold, $lineHeight: 0);
|
|
11
11
|
color: $ds-color-static-white;
|
|
12
12
|
background-color: $ds-color-component-brand;
|
|
13
13
|
border: $ds-color-border-secondary ds-metrics-border-width(x2) solid;
|
|
@@ -17,12 +17,12 @@ $ds-badge__min-size: 8px;
|
|
|
17
17
|
justify-content: center;
|
|
18
18
|
min-height: ds-px-to-rem($ds-badge__min-size);
|
|
19
19
|
min-width: ds-px-to-rem($ds-badge__min-size);
|
|
20
|
-
padding: ds-spacing(
|
|
20
|
+
padding: ds-spacing($ds-s-025, rem);
|
|
21
21
|
@at-root .ds-force-px#{&} {
|
|
22
|
-
@include ds-typography($ds-typography-functional-meta02semibold, true);
|
|
22
|
+
@include ds-typography($component: $ds-typography-functional-meta02semibold, $forcePx: true, $lineHeight: 0);
|
|
23
23
|
min-height: $ds-badge__min-size;
|
|
24
24
|
min-width: $ds-badge__min-size;
|
|
25
|
-
padding: ds-spacing(
|
|
25
|
+
padding: ds-spacing($ds-s-025);
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
|
|
@@ -56,7 +56,7 @@ All devices get the same sizes based on $screen parameter (defaults to mobile)
|
|
|
56
56
|
|:--- | :--- | :--- | :--- | :--- | :--- |
|
|
57
57
|
|family | String | yes | Sans, Serif | | DN Font family |
|
|
58
58
|
|size | Number | yes | | | Font size in px without unit |
|
|
59
|
-
|lineHeight | Number | no | |
|
|
59
|
+
|lineHeight | Number | no | | 1.2 | Line height as multiplier without unit |
|
|
60
60
|
|weight | String, Number | no | bold, 400, etc | 400 | Font weight accepts both name or number |
|
|
61
61
|
|fontStyle | String | no | | | Font style, ex Italic |
|
|
62
62
|
|letterSpacing | Number | no | | font default | Letter spacing |
|
|
@@ -68,5 +68,5 @@ These are copy paste friendly examples to quickliy get started using a component
|
|
|
68
68
|
```scss
|
|
69
69
|
@use "@bonniernews/dn-design-system-web/foundations/helpers/forward.helpers" as *;
|
|
70
70
|
|
|
71
|
-
@include ds-typography-manual('Sans', 36,
|
|
71
|
+
@include ds-typography-manual('Sans', 36, 1.3, bold);
|
|
72
72
|
```
|
package/package.json
CHANGED