@bonniernews/dn-design-system-web 7.2.1 → 7.2.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,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
+ ## 7.2.2 (2023-10-24)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **web:** teaser-card images should be above the border ([#1057](https://github.com/BonnierNews/dn-design-system/issues/1057)) ([b4950ee](https://github.com/BonnierNews/dn-design-system/commit/b4950eedcbd38c1ff1d2b5b8eccc304c89f0618d))
12
+
13
+
14
+
6
15
  ## 7.2.1 (2023-10-23)
7
16
 
8
17
  **Note:** Version bump only for package @bonniernews/dn-design-system-web
@@ -6,6 +6,7 @@
6
6
  {% set classes = [
7
7
  "ds-teaser",
8
8
  componentClassName,
9
+ "ds-theme--" + params.theme if params.theme,
9
10
  classNamePrefix + params.variant if params.variant and params.variant !== "default",
10
11
  params.classNames if params.classNames
11
12
  ] | join(" ") %}
@@ -10,22 +10,39 @@
10
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
-
14
- border: ds-metrics-border-width(x1) solid $ds-color-border-primary;
15
- border-radius: ds-metrics-border-radius(x1);
16
- overflow: hidden; // ensure media doesn't overflow the border-radius
17
13
  margin-bottom: 0;
18
14
 
19
- @include ds-teaser-focus(-2px);
15
+ &:focus-visible {
16
+ outline: none !important;
17
+
18
+ .ds-teaser__text {
19
+ @include ds-teaser-focus(-4px, false);
20
+ }
21
+ }
20
22
 
21
23
  .ds-teaser__text {
22
24
  display: flex;
23
25
  flex-direction: column;
24
26
  padding: ds-spacing($ds-s-075);
27
+ border: ds-metrics-border-width(x1) solid $ds-color-border-primary;
28
+ border-radius: ds-metrics-border-radius(x1);
25
29
  margin: 0;
26
30
  flex: 1;
27
31
  }
28
32
 
33
+ .ds-teaser-image {
34
+ border-top-right-radius: ds-metrics-border-radius(x1);
35
+ border-top-left-radius: ds-metrics-border-radius(x1);
36
+ overflow: hidden;
37
+ }
38
+
39
+ .ds-teaser-image + .ds-teaser__text {
40
+ border-top: 0;
41
+ border-top-right-radius: 0;
42
+ border-top-left-radius: 0;
43
+ padding-top: ds-spacing($ds-s-050);
44
+ }
45
+
29
46
  .ds-teaser-swipe-card__time {
30
47
  @include ds-typography($ds-typography-functional-meta02regular);
31
48
  color: $ds-color-text-primary-02;
@@ -50,15 +67,20 @@
50
67
  }
51
68
 
52
69
  &.ds-teaser-swipe-card--direkt {
53
- border: none;
54
- border-radius: 0;
55
-
56
70
  &:not(:last-of-type) {
57
71
  margin-right: ds-spacing($ds-s-050);
58
72
  }
59
73
 
60
74
  .ds-teaser__text {
61
75
  padding: ds-spacing($ds-s-025 0 0 0);
76
+ border: none;
77
+ border-radius: 0;
78
+ }
79
+
80
+ &:focus-visible {
81
+ .ds-teaser__text {
82
+ @include ds-teaser-focus(-2px, false);
83
+ }
62
84
  }
63
85
 
64
86
  .ds-teaser-swipe-card__time {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bonniernews/dn-design-system-web",
3
- "version": "7.2.1",
3
+ "version": "7.2.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",