@bonniernews/dn-design-system-web 8.8.0 → 8.8.1

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,15 @@
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.8.1 (2023-11-28)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **web:** pass group header variant to teaser list swipe ([#1116](https://github.com/BonnierNews/dn-design-system/issues/1116)) ([2f9f49e](https://github.com/BonnierNews/dn-design-system/commit/2f9f49e60c674f5b3cadf27035c10f99cfec976d))
12
+
13
+
14
+
6
15
  ## 8.8.0 (2023-11-27)
7
16
 
8
17
 
@@ -37,7 +37,7 @@
37
37
  </span>
38
38
 
39
39
  {% if params.linkText %}
40
- <span class="{{ componentClassName + '__right-link' }}">
40
+ <span class="{{ componentClassName + '__right-link' }} hidden-desktop">
41
41
  {{ params.linkText }}
42
42
  </span>
43
43
  {% endif %}
@@ -63,7 +63,7 @@
63
63
  classNames: params.toggleClassNames,
64
64
  attributes: params.toggleAttributes
65
65
  }) }}
66
- {% elif (params.variant == 'arrows') %}
66
+ {% elif (params.variant == 'arrows' or params.variant == 'direkt') %}
67
67
  <div class="{{ componentClassName + '__arrows' }} hidden-mobile hidden-tablet">
68
68
  {{ IconButton({
69
69
  variant: "elevated",
@@ -13,6 +13,14 @@
13
13
  params.classNames if params.classNames
14
14
  ] | join(" ") %}
15
15
 
16
+ {% if params.groupHeaderVariant %}
17
+ {% set variant = params.groupHeaderVariant %}
18
+ {% elif arrowPosition === 'header' %}
19
+ {% set variant = 'arrows' %}
20
+ {% else %}
21
+ {% set variant = 'link' %}
22
+ {% endif %}
23
+
16
24
  {%- call TeaserCard({
17
25
  areaType: params.areaType,
18
26
  theme: params.theme,
@@ -22,7 +30,7 @@
22
30
  {{ GroupHeader({
23
31
  title: params.title,
24
32
  href: params.titleHref,
25
- variant: 'arrows' if arrowPosition === 'header' else 'link',
33
+ variant: variant,
26
34
  linkText: 'Visa alla'
27
35
  }) }}
28
36
  <div class="{{ componentClassName + '__carousel'}}">
@@ -21,6 +21,10 @@
21
21
 
22
22
  @include ds-hide-scrollbars();
23
23
  @include ds-teaser-focus(2px);
24
+
25
+ @include ds-mq-only-breakpoint(mobile) {
26
+ margin-right: 0;
27
+ }
24
28
  }
25
29
 
26
30
  @include ds-mq-only-breakpoint(desktop) {
@@ -40,3 +44,7 @@
40
44
  }
41
45
  }
42
46
  }
47
+
48
+ .ds-group-header--direkt + .ds-teaser__carousel .ds-teaser-swipe-card--direkt {
49
+ padding-top: ds-spacing($ds-s-050);
50
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bonniernews/dn-design-system-web",
3
- "version": "8.8.0",
3
+ "version": "8.8.1",
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",