@bonniernews/dn-design-system-web 21.1.0 → 21.1.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,20 @@ All changes to @bonniernews/dn-design-system-web will be documented in this file
4
4
 
5
5
 
6
6
 
7
+ ## [21.1.2](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@21.1.1...@bonniernews/dn-design-system-web@21.1.2) (2024-11-15)
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * **web:** support bauta outside package ([#1496](https://github.com/BonnierNews/dn-design-system/issues/1496)) ([47a7d21](https://github.com/BonnierNews/dn-design-system/commit/47a7d219b4c4c7aefa1106a7a58433d3b5b7b897))
13
+
14
+ ## [21.1.1](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@21.1.0...@bonniernews/dn-design-system-web@21.1.1) (2024-11-15)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **web:** correct spacing in linkbox ([#1497](https://github.com/BonnierNews/dn-design-system/issues/1497)) ([54e78f2](https://github.com/BonnierNews/dn-design-system/commit/54e78f28880ef7b1a735b8f528bfcb55b545e11a))
20
+
7
21
  ## [21.1.0](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@21.0.4...@bonniernews/dn-design-system-web@21.1.0) (2024-11-11)
8
22
 
9
23
 
@@ -124,4 +124,8 @@ $grade-size: ds-px-to-rem(34px);
124
124
  margin-right: ds-spacing($ds-s-025);
125
125
  }
126
126
  }
127
+
128
+ &--bauta {
129
+ background-color: $bauta-surface-color;
130
+ }
127
131
  }
@@ -8,7 +8,8 @@
8
8
  .ds-link-box__grid {
9
9
  padding: ds-spacing($ds-s-100);
10
10
  display: grid;
11
- gap: ds-spacing($ds-s-100);
11
+ column-gap: ds-spacing($ds-s-050);
12
+ row-gap: ds-spacing($ds-s-100);
12
13
 
13
14
  @include ds-mq-only-breakpoint(mobile) {
14
15
  grid-template-columns: repeat(2, minmax(0, 1fr));
@@ -8,6 +8,7 @@
8
8
  {%- set classes = [
9
9
  componentClassName,
10
10
  classNamePrefix + params.areaType if params.areaType,
11
+ 'ds-dark' if params.areaType == 'bauta',
11
12
  "ds-theme--" + params.theme if params.theme,
12
13
  params.classNames if params.classNames
13
14
  ] | join(" ") %}
@@ -16,6 +16,7 @@ export const TeaserCard = ({ areaType, targetLink, theme = 'nyheter', classes, a
16
16
  const classNames = formatClassString([
17
17
  componentClassName,
18
18
  areaType && `${componentClassName}--${areaType}`,
19
+ areaType == 'bauta' && 'ds-dark',
19
20
  `ds-theme--${theme}`,
20
21
  classes,
21
22
  ])
@@ -10,6 +10,7 @@
10
10
  {% call TeaserCard({
11
11
  targetLink: params.targetLink,
12
12
  theme: params.theme,
13
+ areaType: params.areaType,
13
14
  attributes: params.attributes,
14
15
  classNames: extraClasses
15
16
  }) %}
@@ -34,4 +34,8 @@
34
34
  text-decoration: none;
35
35
  }
36
36
  }
37
+
38
+ &.ds-teaser--bauta {
39
+ background-color: $bauta-surface-color;
40
+ }
37
41
  }
@@ -22,6 +22,10 @@
22
22
  }
23
23
  }
24
24
 
25
+ &.ds-split-container--bauta {
26
+ background-color: $bauta-surface-color;
27
+ }
28
+
25
29
  .ds-teaser--split {
26
30
  box-sizing: content-box;
27
31
  display: block;
@@ -10,6 +10,7 @@
10
10
 
11
11
  {% call TeaserCard({
12
12
  targetLink: params.targetLink,
13
+ areaType: params.areaType,
13
14
  attributes: params.attributes,
14
15
  classNames: extraClasses
15
16
  }) %}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bonniernews/dn-design-system-web",
3
- "version": "21.1.0",
3
+ "version": "21.1.2",
4
4
  "description": "DN design system for web.",
5
5
  "main": "index.tsx",
6
6
  "type": "module",