@bonniernews/dn-design-system-web 8.3.0 → 8.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
@@ -3,6 +3,24 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## 8.3.2 (2023-11-14)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **web:** fix bug on font scaling in factbox ([#1095](https://github.com/BonnierNews/dn-design-system/issues/1095)) ([a269ff5](https://github.com/BonnierNews/dn-design-system/commit/a269ff523da303f31ea33df33e6b2998030adb93))
12
+
13
+
14
+
15
+ ## 8.3.1 (2023-11-14)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * **web:** scaling fonts ([#1093](https://github.com/BonnierNews/dn-design-system/issues/1093)) ([052af34](https://github.com/BonnierNews/dn-design-system/commit/052af346dc203148f9995ec79c59462880f045ee))
21
+
22
+
23
+
6
24
  ## 8.3.0 (2023-11-14)
7
25
 
8
26
 
@@ -53,7 +53,10 @@ $ds-factbox__max-height: 500px; // includes top/bottom spacing
53
53
  b,
54
54
  strong {
55
55
  @include ds-typography($ds-typography-functional-body02semibold);
56
- @at-root .ds-force-px#{&} {
56
+ }
57
+ @at-root .ds-force-px#{&} {
58
+ b,
59
+ strong {
57
60
  @include ds-typography($ds-typography-functional-body02semibold, true);
58
61
  }
59
62
  }
@@ -59,16 +59,14 @@
59
59
  size: "small",
60
60
  iconName: "arrow_back",
61
61
  classNames: "ds-group-header__arrow ds-group-header__arrow--left",
62
- attributes: {"aria-label": "Föregående"},
63
- forcePx: true
62
+ attributes: {"aria-label": "Föregående"}
64
63
  }) }}
65
64
  {{ IconButton({
66
65
  variant: "elevated",
67
66
  size: "small",
68
67
  iconName: "arrow_forward",
69
68
  classNames: "ds-group-header__arrow ds-group-header__arrow--right",
70
- attributes: {"aria-label": "Nästa"},
71
- forcePx: true
69
+ attributes: {"aria-label": "Nästa"}
72
70
  }) }}
73
71
  </div>
74
72
  {% endif %}
@@ -53,8 +53,8 @@
53
53
  }
54
54
 
55
55
  .ds-group-header__icon {
56
- height: 24px;
57
- width: 24px;
56
+ height: ds-px-to-rem(24px);
57
+ width: ds-px-to-rem(24px);
58
58
  color: var(--group-header-icon-color);
59
59
  }
60
60
 
@@ -12,7 +12,7 @@
12
12
  padding: ds-spacing($ds-s-025 $ds-s-050);
13
13
  margin-left: ds-spacing($ds-s-050);
14
14
 
15
- @include ds-typography($ds-typography-functional-meta01regular, true);
15
+ @include ds-typography($ds-typography-functional-meta01regular);
16
16
  color: $ds-color-static-white;
17
17
 
18
18
  background-color: $ds-color-static-transparent-black;
@@ -33,15 +33,13 @@
33
33
  {{ params.mediaHtml }}
34
34
  {% if params.isLocked %}
35
35
  {{ VipBadge({
36
- showText: true,
37
- forcePx: true
36
+ showText: true
38
37
  }) }}
39
38
  {% endif %}
40
39
  </div>
41
40
  {% elif params.isItalicHeadline and params.isLocked %}
42
41
  {{ VipBadge({
43
- showText: false,
44
- forcePx: true
42
+ showText: false
45
43
  }) }}
46
44
  {% endif %}
47
45
 
@@ -18,8 +18,7 @@
18
18
  {{ params.mediaHtml }}
19
19
  {% if params.isLocked %}
20
20
  {{ VipBadge({
21
- showText: false,
22
- forcePx: true
21
+ showText: false
23
22
  }) }}
24
23
  {% endif %}
25
24
  {% endif %}
@@ -26,8 +26,7 @@
26
26
  {{ params.mediaHtml }}
27
27
  {% if params.isLocked %}
28
28
  {{ VipBadge({
29
- showText: false,
30
- forcePx: true
29
+ showText: false
31
30
  }) }}
32
31
  {% endif %}
33
32
  </div>
@@ -70,6 +70,10 @@
70
70
  }
71
71
 
72
72
  .ds-teaser__media {
73
+ .ds-teaser-image__byline {
74
+ @include ds-typography($ds-typography-functional-meta01regular, true);
75
+ }
76
+
73
77
  @include ds-mq-largest-breakpoint(mobile) {
74
78
  margin-bottom: ds-spacing($ds-s-050);
75
79
 
@@ -25,8 +25,7 @@
25
25
 
26
26
  {% if params.isLocked and not params.mediaHtml and params.isItalicHeadline %}
27
27
  {{ VipBadge({
28
- showText: false,
29
- forcePx: true
28
+ showText: false
30
29
  }) }}
31
30
  {% endif %}
32
31
 
@@ -36,8 +35,7 @@
36
35
  {{ params.mediaHtml }}
37
36
  {% if params.isLocked %}
38
37
  {{ VipBadge({
39
- showText: false,
40
- forcePx: true
38
+ showText: false
41
39
  }) }}
42
40
  {% endif %}
43
41
  </div>
@@ -34,6 +34,10 @@
34
34
  margin-left: ds-spacing($ds-s-100);
35
35
  float: right;
36
36
 
37
+ .ds-teaser-image__byline {
38
+ @include ds-typography($ds-typography-functional-meta01regular, true);
39
+ }
40
+
37
41
  @include ds-mq-only-breakpoint(mobile) {
38
42
  min-width: $ds-teaser-standard-image-width-mobile;
39
43
  max-width: $ds-teaser-standard-image-width-mobile;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bonniernews/dn-design-system-web",
3
- "version": "8.3.0",
3
+ "version": "8.3.2",
4
4
  "description": "DN design system for web.",
5
5
  "main": "index.js",
6
6
  "homepage": "https://github.com/BonnierNews/dn-design-system/tree/main/web/src#readme",