@bonniernews/dn-design-system-web 8.9.3 → 8.9.5
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
|
+
## [8.9.5](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@8.9.4...@bonniernews/dn-design-system-web@8.9.5) (2023-12-05)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* **web:** change vignette to link ([#1134](https://github.com/BonnierNews/dn-design-system/issues/1134)) ([e88283d](https://github.com/BonnierNews/dn-design-system/commit/e88283d374e212257ad6f90b1946265827caca69))
|
|
13
|
+
|
|
14
|
+
## [8.9.4](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@8.9.3...@bonniernews/dn-design-system-web@8.9.4) (2023-12-04)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **web:** set game header icon size ([#1133](https://github.com/BonnierNews/dn-design-system/issues/1133)) ([45438f8](https://github.com/BonnierNews/dn-design-system/commit/45438f89abba4a6a9fec630ad4c6b43999cfeb1d))
|
|
20
|
+
|
|
7
21
|
## [8.9.3](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@8.9.2...@bonniernews/dn-design-system-web@8.9.3) (2023-12-04)
|
|
8
22
|
|
|
9
23
|
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
@use "../../foundations/helpers/forward.helpers.scss" as *;
|
|
2
2
|
@use "../../assets/teaser/teaser.scss" as *;
|
|
3
3
|
|
|
4
|
+
$ds-game-header__icon-size: 105px;
|
|
5
|
+
|
|
4
6
|
.ds-game-header {
|
|
5
7
|
width: 100%;
|
|
6
8
|
|
|
@@ -28,6 +30,11 @@
|
|
|
28
30
|
}
|
|
29
31
|
.ds-game-header__media {
|
|
30
32
|
margin-right: ds-spacing($ds-s-100);
|
|
33
|
+
width: $ds-game-header__icon-size;
|
|
34
|
+
|
|
35
|
+
> .picture {
|
|
36
|
+
background: none;
|
|
37
|
+
}
|
|
31
38
|
}
|
|
32
39
|
|
|
33
40
|
.ds-game-header__description {
|
|
@@ -11,9 +11,11 @@
|
|
|
11
11
|
|parameter | type | required | options | default | description |
|
|
12
12
|
|:--- | :--- | :--- | :--- | :--- | :--- |
|
|
13
13
|
|title | String | yes | | | H1 Title |
|
|
14
|
-
|
|
|
14
|
+
|vignetteText | String | no | | | Heading of the link box |
|
|
15
|
+
|vignetteTargetUrl | String | no | | | Target URL for the vignette |
|
|
15
16
|
|mediaHtml | String | no | | | Main image |
|
|
16
17
|
|descriptionHtml | String | no | | | Intended use is text, links |
|
|
18
|
+
|theme | String | no | nyheter, kultur, ekonomi, sport, sthlm | (empty) | The theme-class to apply to the vignette |
|
|
17
19
|
|toggle | Bool | no | true, false | false | Show/hide toggle button |
|
|
18
20
|
|toggleText | text | no | | | `text` parameter to ToggleButton (only if `toggle` is enabled) |
|
|
19
21
|
|toggleSelectedText | text | no | | | `selectedText` parameter to ToggleButton (only if `toggle` is enabled) |
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
{%- set classes = [
|
|
9
9
|
componentClassName,
|
|
10
|
+
'ds-theme--' + params.theme if params.theme,
|
|
10
11
|
params.classNames if params.classNames
|
|
11
12
|
] | join(" ") %}
|
|
12
13
|
|
|
@@ -19,8 +20,12 @@
|
|
|
19
20
|
<div class="{{ componentClassName }}__content">
|
|
20
21
|
<div class="{{ componentClassName }}__bar">
|
|
21
22
|
<div class="{{ componentClassName }}__heading">
|
|
22
|
-
{% if params.
|
|
23
|
-
|
|
23
|
+
{% if params.vignetteText %}
|
|
24
|
+
{% if params.vignetteTargetUrl %}
|
|
25
|
+
<a href="{{ params.vignetteTargetUrl }}" class="{{ componentClassName }}__vignette">{{ params.vignetteText }}</a>
|
|
26
|
+
{% else %}
|
|
27
|
+
<span class="{{ componentClassName }}__vignette">{{ params.vignetteText }}</span>
|
|
28
|
+
{% endif %}
|
|
24
29
|
{% endif %}
|
|
25
30
|
<h1 class="{{ componentClassName }}__title">{{ params.title}}</h1>
|
|
26
31
|
</div>
|
|
@@ -34,8 +34,13 @@
|
|
|
34
34
|
|
|
35
35
|
.ds-tag-header__vignette {
|
|
36
36
|
@include ds-typography($ds-typography-functional-meta02bold);
|
|
37
|
-
color: $ds-color
|
|
37
|
+
color: $ds-theme-color;
|
|
38
38
|
margin-bottom: ds-spacing($ds-s-025);
|
|
39
|
+
display: block;
|
|
40
|
+
text-decoration: none;
|
|
41
|
+
&:hover {
|
|
42
|
+
text-decoration: none;
|
|
43
|
+
}
|
|
39
44
|
}
|
|
40
45
|
|
|
41
46
|
.ds-tag-header__title {
|
package/package.json
CHANGED