@bonniernews/dn-design-system-web 6.0.5 → 6.0.7
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 +17 -0
- package/components/group-header/group-header.njk +1 -1
- package/components/group-header/group-header.scss +21 -2
- package/components/teaser-package/teaser-package.njk +7 -13
- package/components/teaser-package/teaser-package.scss +2 -45
- package/foundations/variables/colorsDnDarkTokens.scss +1 -1
- package/package.json +1 -1
- package/tokens/colors-dark-mode.json +1 -1
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.7 (2023-10-09)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **web:** bauta variant of group header ([#1047](https://github.com/BonnierNews/dn-design-system/issues/1047)) ([6bd3aaf](https://github.com/BonnierNews/dn-design-system/commit/6bd3aafdf87316c1cf8d17553dd10eb7fbf32be1))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## 6.0.6 (2023-10-09)
|
|
16
|
+
|
|
17
|
+
**Note:** Version bump only for package @bonniernews/dn-design-system-web
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
6
23
|
## 6.0.5 (2023-10-03)
|
|
7
24
|
|
|
8
25
|
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
<span class="{{ componentClassName + '__right-link' }}">
|
|
23
23
|
{{ params.linkText }}
|
|
24
24
|
</span>
|
|
25
|
-
{% elif (params.variant == 'icon' or not params.variant) and params.href %}
|
|
25
|
+
{% elif (params.variant == 'icon' or params.variant == 'bauta' or not params.variant) and params.href %}
|
|
26
26
|
{{ IconUse({ icon: "arrow_forward", classNames: componentClassName + '__icon' }) }}
|
|
27
27
|
{% elif (params.variant == 'arrows') and params.href and params.linkText %}
|
|
28
28
|
<span class="{{ componentClassName + '__right-link' }} hidden-desktop">
|
|
@@ -3,18 +3,32 @@
|
|
|
3
3
|
@use "../icon-button/icon-button.scss";
|
|
4
4
|
|
|
5
5
|
.ds-group-header {
|
|
6
|
+
--group-header-background: #{$ds-color-background-primary};
|
|
7
|
+
--group-header-color: #{$ds-color-text-primary};
|
|
8
|
+
--group-header-icon-color: currentColor;
|
|
6
9
|
display: flex;
|
|
7
10
|
align-items: center;
|
|
8
11
|
justify-content: space-between;
|
|
9
12
|
align-items: stretch;
|
|
10
|
-
background:
|
|
11
|
-
color:
|
|
13
|
+
background: var(--group-header-background);
|
|
14
|
+
color: var(--group-header-color);
|
|
12
15
|
@include ds-typography($ds-typography-functional-body02regular);
|
|
13
16
|
|
|
14
17
|
&--bottom-border {
|
|
15
18
|
border-bottom: ds-metrics-border-width(x1) solid $ds-color-border-primary;
|
|
16
19
|
}
|
|
17
20
|
|
|
21
|
+
&--bauta {
|
|
22
|
+
--group-header-background: #{$ds-theme-color};
|
|
23
|
+
--group-header-color: #{$ds-color-text-on-brand};
|
|
24
|
+
--group-header-icon-color: #{$ds-color-icon-on-brand};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&--bautaxl {
|
|
28
|
+
--group-header-background: #{$ds-color-static-black};
|
|
29
|
+
--group-header-color: #{$ds-color-static-yellow};
|
|
30
|
+
}
|
|
31
|
+
|
|
18
32
|
.ds-group-header__right-link,
|
|
19
33
|
.ds-group-header__icon,
|
|
20
34
|
.ds-btn-toggle {
|
|
@@ -40,6 +54,7 @@
|
|
|
40
54
|
.ds-group-header__icon {
|
|
41
55
|
height: 24px;
|
|
42
56
|
width: 24px;
|
|
57
|
+
color: var(--group-header-icon-color);
|
|
43
58
|
}
|
|
44
59
|
|
|
45
60
|
.ds-group-header__href {
|
|
@@ -75,4 +90,8 @@
|
|
|
75
90
|
&--bottom-border .ds-group-header__title {
|
|
76
91
|
padding-bottom: ds-spacing-component($ds-sc-x3) - ds-metrics-border-width(x1);
|
|
77
92
|
}
|
|
93
|
+
|
|
94
|
+
&--bautaxl .ds-group-header__title {
|
|
95
|
+
@include ds-typography($ds-typography-detailbaota-xl-label);
|
|
96
|
+
}
|
|
78
97
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{% from '@bonniernews/dn-design-system-web/njk-helpers/attributes.njk' import getAttributes %}
|
|
2
|
-
{% from '@bonniernews/dn-design-system-web/components/
|
|
2
|
+
{% from '@bonniernews/dn-design-system-web/components/group-header/group-header.njk' import GroupHeader %}
|
|
3
3
|
|
|
4
4
|
{% macro TeaserPackage(params) %}
|
|
5
5
|
{%- set componentClassName = "ds-teaser-package" %}
|
|
@@ -12,18 +12,12 @@
|
|
|
12
12
|
] | join(" ") %}
|
|
13
13
|
{%- set attributes = getAttributes(params.attributes) %}
|
|
14
14
|
<div class="{{ classes }}">
|
|
15
|
-
{
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
{% if params.areaType != "bautaxl" %}
|
|
22
|
-
{{ IconUse({ icon: "arrow_forward", attributes: {"aria-hidden": true} }) }}
|
|
23
|
-
{% endif %}
|
|
24
|
-
</a>
|
|
25
|
-
{% elif params.vignetteText %}
|
|
26
|
-
<div class="{{ componentClassName + '__vignette'}}">{{ params.vignetteText }}</div>
|
|
15
|
+
{% if params.vignetteText %}
|
|
16
|
+
{{ GroupHeader({
|
|
17
|
+
title: params.vignetteText,
|
|
18
|
+
href: params.vignetteTargetUrl,
|
|
19
|
+
variant: params.areaType if params.areaType === 'bauta' or params.areaType === 'bautaxl'
|
|
20
|
+
}) }}
|
|
27
21
|
{% endif %}
|
|
28
22
|
{{ params.teasersHtml | safe }}
|
|
29
23
|
</div>
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
@use "../../foundations/helpers/forward.helpers.scss" as *;
|
|
2
2
|
@use "../../assets/teaser/teaser.scss";
|
|
3
|
+
@use "../../components/group-header/group-header";
|
|
3
4
|
|
|
4
5
|
.ds-teaser-package {
|
|
5
6
|
position: relative;
|
|
@@ -43,49 +44,12 @@
|
|
|
43
44
|
display: none;
|
|
44
45
|
}
|
|
45
46
|
|
|
46
|
-
.ds-teaser-package__vignette {
|
|
47
|
-
padding: ds-spacing-component($ds-sc-x3);
|
|
48
|
-
@include ds-spacing-layout($ds-sl-teaser-horizontal, padding-left);
|
|
49
|
-
@include ds-spacing-layout($ds-sl-teaser-horizontal, padding-right);
|
|
50
|
-
@include ds-typography($ds-typography-functional-body02bold);
|
|
51
|
-
@include ds-teaser-focus(-8px);
|
|
52
|
-
display: flex;
|
|
53
|
-
justify-content: space-between;
|
|
54
|
-
align-items: center;
|
|
55
|
-
background-color: $ds-color-component-secondary;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
a.ds-teaser-package__vignette {
|
|
59
|
-
text-decoration-line: none;
|
|
60
|
-
@include ds-hover(true) {
|
|
61
|
-
@include ds-underline(1px, 2px);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.ds-teaser-package__vignette,
|
|
66
|
-
a.ds-teaser-package__vignette {
|
|
67
|
-
color: $ds-color-text-primary;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
&.ds-teaser-package--bauta {
|
|
71
|
-
.ds-teaser-package__vignette {
|
|
72
|
-
color: $ds-color-static-white;
|
|
73
|
-
background-color: $ds-theme-color;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
47
|
&.ds-teaser-package--bautaxl {
|
|
78
48
|
&::after {
|
|
79
49
|
background-color: transparent;
|
|
80
50
|
}
|
|
81
51
|
|
|
82
|
-
.ds-
|
|
83
|
-
color: $ds-color-static-yellow;
|
|
84
|
-
background-color: $ds-color-static-black;
|
|
85
|
-
@include ds-typography($ds-typography-detailbaota-xl-label);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.ds-teaser-package__vignette
|
|
52
|
+
.ds-group-header
|
|
89
53
|
+ .ds-teaser--large:not(.ds-teaser--large-italic):not(
|
|
90
54
|
.ds-teaser--large-big-italic
|
|
91
55
|
) {
|
|
@@ -117,11 +81,4 @@
|
|
|
117
81
|
}
|
|
118
82
|
}
|
|
119
83
|
}
|
|
120
|
-
|
|
121
|
-
.ds-icon {
|
|
122
|
-
width: ds-px-to-rem(24px);
|
|
123
|
-
height: ds-px-to-rem(24px);
|
|
124
|
-
color: currentColor;
|
|
125
|
-
display: inline-flex;
|
|
126
|
-
}
|
|
127
84
|
}
|
|
@@ -16,7 +16,7 @@ $ds-hex-dark-icon-primary-02: #CFCFCF;
|
|
|
16
16
|
$ds-hex-dark-icon-secondary: #050505;
|
|
17
17
|
$ds-hex-dark-icon-critical: #EF7171;
|
|
18
18
|
$ds-hex-dark-icon-disabled: #B8B8B8;
|
|
19
|
-
$ds-hex-dark-icon-on-brand: #
|
|
19
|
+
$ds-hex-dark-icon-on-brand: #141414;
|
|
20
20
|
$ds-hex-dark-icon-on-critical: #ffffff;
|
|
21
21
|
$ds-hex-dark-icon-on-success: #ffffff;
|
|
22
22
|
$ds-hex-dark-icon-on-business: #ffffff;
|
package/package.json
CHANGED