@bonniernews/dn-design-system-web 6.0.2 → 6.0.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
@@ -3,6 +3,23 @@
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
+ ## 6.0.4 (2023-10-03)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **web:** update teaserlistswipe after design feedback ([#1026](https://github.com/BonnierNews/dn-design-system/issues/1026)) ([4d0bd68](https://github.com/BonnierNews/dn-design-system/commit/4d0bd682a2e5a0f35a5eb75dc7e3ddb99a7b67a9))
12
+
13
+
14
+
15
+ ## 6.0.3 (2023-10-02)
16
+
17
+ **Note:** Version bump only for package @bonniernews/dn-design-system-web
18
+
19
+
20
+
21
+
22
+
6
23
  ## 6.0.2 (2023-10-02)
7
24
 
8
25
 
@@ -6,6 +6,7 @@
6
6
  display: flex;
7
7
  align-items: center;
8
8
  justify-content: space-between;
9
+ align-items: stretch;
9
10
  background: $ds-color-background-primary;
10
11
  color: $ds-color-text-primary;
11
12
  @include ds-typography($ds-typography-functional-body02regular);
@@ -22,10 +23,16 @@
22
23
  }
23
24
 
24
25
  .ds-group-header__arrows {
26
+ display: flex;
25
27
  flex-shrink: 0;
26
28
  padding-right: ds-spacing-component($ds-sc-x2);
27
29
  }
28
30
 
31
+ .ds-btn-toggle, .ds-group-header__arrows {
32
+ margin-top: 2px; // special case due to design margin extending from the component's visual size, not its clickable area
33
+ margin-bottom: 2px;
34
+ }
35
+
29
36
  .ds-group-header__right-link {
30
37
  @include ds-link($ds-link-paragraph);
31
38
  }
@@ -13,7 +13,7 @@
13
13
  |title | String | yes | | | Heading of the teaser |
14
14
  |titleHref | String | no | | | Target URL for the header |
15
15
  |areaType | String | no | "main", "right", "bauta", "bautaxl" | | The area where the column is rendered |
16
- |arrowPosition | String | no | "floating", "header" | "floating" | Determines where the scroll arrows are rendered |
16
+ |arrowPosition | String | no | "floating", "header" | "header" | Determines where the scroll arrows are rendered |
17
17
  |theme | String | no | nyheter, kultur, ekonomi, sport, sthlm | (empty) | The theme-class to apply to the teaser |
18
18
  |teasers | Object | yes | | | A list of arguments to TeaserSwipeCard |
19
19
  |attributes | Object | no | | | Ex. { target: "_blank", "data-test": "lorem ipsum" } |
@@ -7,7 +7,7 @@
7
7
  {% macro TeaserListSwipe(params) %}
8
8
  {% set componentClassName = "ds-teaser" %}
9
9
  {% set classNamePrefix = componentClassName + "--" %}
10
- {% set arrowPosition = params.arrowPosition or 'floating' %}
10
+ {% set arrowPosition = params.arrowPosition or 'header' %}
11
11
  {%- set classes = [
12
12
  "ds-teaser--list-swipe",
13
13
  params.classNames if params.classNames
@@ -7,7 +7,7 @@
7
7
  display: flex;
8
8
  flex-direction: column;
9
9
  width: 268px;
10
- max-width: 75vw; // ensure low-width devices see atleast part of a second teaser
10
+ max-width: 66vw; // ensure low-width devices see atleast part of a second teaser
11
11
  color: $ds-color-text-primary;
12
12
  text-decoration: none;
13
13
 
@@ -45,7 +45,7 @@
45
45
 
46
46
  &.ds-teaser-swipe-card--insandare {
47
47
  .ds-teaser__title {
48
- @include ds-typography($ds-typography-expressive-heading01italicsemibold);
48
+ @include ds-typography($ds-typography-expressive-heading01italicregular);
49
49
  }
50
50
  }
51
51
 
@@ -138,7 +138,7 @@ $typographyTokensScreenExtraLarge: (
138
138
  lineHeight: 20,
139
139
  fontSize: 16,
140
140
  fontFamily: "DN Serif Text",
141
- fontWeight: Regular,
141
+ fontWeight: Medium,
142
142
  fontStyle: italic
143
143
  ),
144
144
  expressive-heading01italicsemibold: (
@@ -21,7 +21,7 @@ $typographyTokensScreenLarge: (
21
21
  lineHeight: 20,
22
22
  fontSize: 16,
23
23
  fontFamily: "DN Serif Text",
24
- fontWeight: Regular,
24
+ fontWeight: Medium,
25
25
  fontStyle: italic
26
26
  ),
27
27
  expressive-heading01italicsemibold: (
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bonniernews/dn-design-system-web",
3
- "version": "6.0.2",
3
+ "version": "6.0.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",