@bonniernews/dn-design-system-web 4.2.1 → 4.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
+ ## 4.2.2 (2023-09-07)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **web:** add focus states for swipe and groupheader and fix link param in groupheader ([#987](https://github.com/BonnierNews/dn-design-system/issues/987)) ([95104c8](https://github.com/BonnierNews/dn-design-system/commit/95104c8066ca58a606f12ff2d179465a4803809e))
12
+
13
+
14
+
6
15
  ## 4.2.1 (2023-09-07)
7
16
 
8
17
 
@@ -31,7 +31,7 @@
31
31
 
32
32
  <div class="{{ classes }}" {{ attributes | safe }}>
33
33
  {% if params.href %}
34
- <a class="{{ componentClassName + '__href'}}" href="{{ params.titleHref }}">
34
+ <a class="{{ componentClassName + '__href'}}" href="{{ params.href }}">
35
35
  {{ groupHeaderInner | safe }}
36
36
  </a>
37
37
  {% else %}
@@ -37,6 +37,8 @@
37
37
  justify-content: space-between;
38
38
  flex: 1;
39
39
 
40
+ @include ds-teaser-focus(-2px);
41
+
40
42
  @include ds-link($ds-link-list);
41
43
 
42
44
  @include ds-hover(true) {
@@ -8,6 +8,8 @@
8
8
  max-width: 100%;
9
9
  color: $ds-color-text-primary;
10
10
 
11
+ @include ds-teaser-focus(2px);
12
+
11
13
  .ds-teaser__carousel {
12
14
  padding: ds-spacing-component(0 $ds-sc-x4);
13
15
  padding-bottom: ds-spacing-component($ds-sc-x3);
@@ -16,6 +18,8 @@
16
18
  grid-auto-columns: max-content;
17
19
  grid-auto-flow: column;
18
20
  gap: ds-spacing-component($ds-sc-x2);
21
+
22
+ @include ds-teaser-focus(2px);
19
23
  }
20
24
 
21
25
  @include ds-mq-only-breakpoint(desktop) {
@@ -14,6 +14,9 @@
14
14
  border: ds-metrics-border-width(x1) solid $ds-color-border-primary;
15
15
  border-radius: ds-metrics-border-radius(x2);
16
16
  overflow: hidden; // ensure media doesn't overflow the border-radius
17
+ margin-bottom: 0;
18
+
19
+ @include ds-teaser-focus(-2px);
17
20
 
18
21
  .ds-teaser__text {
19
22
  display: flex;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bonniernews/dn-design-system-web",
3
- "version": "4.2.1",
3
+ "version": "4.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",