@bonniernews/dn-design-system-web 11.1.2 → 11.1.3

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,13 @@ All changes to @bonniernews/dn-design-system-web will be documented in this file
4
4
 
5
5
 
6
6
 
7
+ ## [11.1.3](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@11.1.2...@bonniernews/dn-design-system-web@11.1.3) (2024-02-06)
8
+
9
+
10
+ ### Maintenance
11
+
12
+ * **web:** remove Direkt group header variant ([#1185](https://github.com/BonnierNews/dn-design-system/issues/1185)) ([1e2c83d](https://github.com/BonnierNews/dn-design-system/commit/1e2c83d24b35f3cebc2183677a7360a1e3375a11))
13
+
7
14
  ## [11.1.2](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@11.1.1...@bonniernews/dn-design-system-web@11.1.2) (2024-02-05)
8
15
 
9
16
 
@@ -2,7 +2,6 @@
2
2
  {% from '@bonniernews/dn-design-system-web/components/icon-sprite/icon-sprite.njk' import IconUse %}
3
3
  {% from '@bonniernews/dn-design-system-web/components/button-toggle/button-toggle.njk' import ButtonToggle %}
4
4
  {% from '@bonniernews/dn-design-system-web/components/icon-button/icon-button.njk' import IconButton %}
5
- {% from '@bonniernews/dn-design-system-web/components/direkt-circle/direkt-circle.njk' import DirektCircle %}
6
5
 
7
6
  {% macro GroupHeader(params) %}
8
7
  {% set componentClassName = "ds-group-header" %}
@@ -31,16 +30,6 @@
31
30
  </span>
32
31
  {% elif (params.variant == 'arrows') and params.href %}
33
32
  {{ IconUse({ icon: "arrow_forward", classNames: componentClassName + '__icon hidden-desktop' }) }}
34
- {% elif params.variant == 'direkt' %}
35
- <span class="{{ componentClassName + '__direkt-circle' }}">
36
- {{ DirektCircle()}}
37
- </span>
38
-
39
- {% if params.linkText %}
40
- <span class="{{ componentClassName + '__right-link' }} hidden-desktop">
41
- {{ params.linkText }}
42
- </span>
43
- {% endif %}
44
33
  {% endif %}
45
34
  {% endset %}
46
35
 
@@ -63,7 +52,7 @@
63
52
  classNames: params.toggleClassNames,
64
53
  attributes: params.toggleAttributes
65
54
  }) }}
66
- {% elif (params.variant == 'arrows' or params.variant == 'direkt') %}
55
+ {% elif (params.variant == 'arrows') %}
67
56
  <div class="{{ componentClassName + '__arrows' }} hidden-mobile hidden-tablet">
68
57
  {{ IconButton({
69
58
  variant: "elevated",
@@ -28,22 +28,13 @@
28
28
  --group-header-color: #{$ds-color-static-yellow};
29
29
  }
30
30
 
31
- &--direkt {
32
- --group-header-background: #{$ds-theme-color};
33
- --group-header-color: #{$ds-color-text-on-brand};
34
- position: relative;
35
- overflow: hidden;
36
- }
37
-
38
31
  &--toggle,
39
- &--arrows,
40
- &--direkt {
32
+ &--arrows {
41
33
  align-items: center;
42
34
  padding-right: ds-spacing($ds-s-100);
43
35
  }
44
36
 
45
- &--arrows,
46
- &--direkt {
37
+ &--arrows {
47
38
  @include ds-mq-largest-breakpoint(tablet) {
48
39
  padding-right: 0; // shows link instead of arrows so no need for extra padding
49
40
  }
@@ -83,18 +74,6 @@
83
74
  color: var(--group-header-icon-color);
84
75
  }
85
76
 
86
- .ds-group-header__direkt-circle {
87
- position: absolute;
88
- width: 100%;
89
- height: 100%;
90
-
91
- $centerDotRadius: 5px;
92
-
93
- .ds-direkt-circle {
94
- transform: translate(calc(-50% - $centerDotRadius), calc(-50% - $centerDotRadius));
95
- }
96
- }
97
-
98
77
  .ds-group-header__href {
99
78
  display: flex;
100
79
  align-items: center;
@@ -133,8 +112,4 @@
133
112
  &--bautaxl .ds-group-header__title {
134
113
  @include ds-typography($ds-typography-detailbaota-xl-label);
135
114
  }
136
-
137
- &--direkt .ds-group-header__title {
138
- z-index: 5;
139
- }
140
115
  }
@@ -56,7 +56,3 @@
56
56
  }
57
57
  }
58
58
  }
59
-
60
- .ds-group-header--direkt + .ds-teaser__carousel .ds-teaser-swipe-card--direkt {
61
- padding-top: ds-spacing($ds-s-050);
62
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bonniernews/dn-design-system-web",
3
- "version": "11.1.2",
3
+ "version": "11.1.3",
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",