@bonniernews/dn-design-system-web 14.3.2 → 14.3.4

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,20 @@ All changes to @bonniernews/dn-design-system-web will be documented in this file
4
4
 
5
5
 
6
6
 
7
+ ## [14.3.4](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@14.3.3...@bonniernews/dn-design-system-web@14.3.4) (2024-03-15)
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * **web:** move max-height styling to img element ([#1248](https://github.com/BonnierNews/dn-design-system/issues/1248)) ([811da42](https://github.com/BonnierNews/dn-design-system/commit/811da4268bacfbd2753ea01ac3836656ef8594d0))
13
+
14
+ ## [14.3.3](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@14.3.2...@bonniernews/dn-design-system-web@14.3.3) (2024-03-14)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **web:** allow href attribute for imageListItem ([#1245](https://github.com/BonnierNews/dn-design-system/issues/1245)) ([4f8f6d1](https://github.com/BonnierNews/dn-design-system/commit/4f8f6d1092dcd3126498fcc5c4f90987dfd416c9))
20
+
7
21
  ## [14.3.2](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@14.3.1...@bonniernews/dn-design-system-web@14.3.2) (2024-03-14)
8
22
 
9
23
 
@@ -2,6 +2,8 @@
2
2
  @use "../button-toggle/button-toggle.scss";
3
3
  @use "../icon-button/icon-button.scss";
4
4
 
5
+ $ds-group-header__icon-size: 24px;
6
+
5
7
  .ds-group-header {
6
8
  --group-header-background: #{$ds-color-background-primary};
7
9
  --group-header-color: #{$ds-color-text-primary};
@@ -74,8 +76,8 @@
74
76
  }
75
77
 
76
78
  .ds-group-header__icon {
77
- height: ds-px-to-rem(24px);
78
- width: ds-px-to-rem(24px);
79
+ height: ds-px-to-rem($ds-group-header__icon-size);
80
+ width: ds-px-to-rem($ds-group-header__icon-size);
79
81
  color: var(--group-header-icon-color);
80
82
  }
81
83
 
@@ -120,7 +122,11 @@
120
122
 
121
123
  .ds-group-header__image {
122
124
  margin-left: ds-spacing($ds-s-100);
123
- max-height: 24px;
125
+
126
+ .picture,
127
+ img {
128
+ max-height: ds-px-to-rem($ds-group-header__icon-size);
129
+ }
124
130
 
125
131
  figure {
126
132
  margin: 0;
@@ -49,7 +49,7 @@
49
49
  {% set classNamePrefix = componentClassName + "--" %}
50
50
  {% set attributes = getAttributes(params.attributes) %}
51
51
 
52
- {% if params.listItemType == "standard" or not params.listItemType %}
52
+ {% if params.listItemType == "standard" or params.listItemType == "image" or not params.listItemType %}
53
53
  {% set element = "link" if params.href and not params.disabled else "button" %}
54
54
  {% set variantClass = classNamePrefix + "standard" %}
55
55
  {% else %}
@@ -111,7 +111,18 @@ $ds-list-item__icon-size: 24px;
111
111
  }
112
112
 
113
113
  .ds-list-item__image {
114
- max-height: 24px;
114
+ .picture,
115
+ img {
116
+ max-height: ds-px-to-rem($ds-list-item__icon-size);
117
+ }
118
+
119
+ @at-root .ds-force-px#{&} {
120
+ .picture,
121
+ img {
122
+ height: $ds-list-item__icon-size;
123
+ width: $ds-list-item__icon-size;
124
+ }
125
+ }
115
126
 
116
127
  figure {
117
128
  margin: 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bonniernews/dn-design-system-web",
3
- "version": "14.3.2",
3
+ "version": "14.3.4",
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",