@bonniernews/dn-design-system-web 15.1.0 → 15.2.0
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,19 @@ All changes to @bonniernews/dn-design-system-web will be documented in this file
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
+
## [15.2.0](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@15.1.0...@bonniernews/dn-design-system-web@15.2.0) (2024-05-02)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* **web:** use a given textColor for GameHeaders instead of only dark or light ([#1283](https://github.com/BonnierNews/dn-design-system/issues/1283)) ([39264e1](https://github.com/BonnierNews/dn-design-system/commit/39264e1f148ec34d6106aadaffa9a06eab5e0b5e))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Maintenance
|
|
16
|
+
|
|
17
|
+
* **deps:** bump sass from 1.57.1 to 1.76.0 ([#1280](https://github.com/BonnierNews/dn-design-system/issues/1280)) ([86efe4b](https://github.com/BonnierNews/dn-design-system/commit/86efe4bd9838ab35ebfe3b365b3e2f4667733fab))
|
|
18
|
+
* prerelease packages ([0bae6c1](https://github.com/BonnierNews/dn-design-system/commit/0bae6c1c153e879fa896db3b72fd0c48bd6be27d))
|
|
19
|
+
|
|
7
20
|
## [15.1.0](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@15.0.1...@bonniernews/dn-design-system-web@15.1.0) (2024-04-29)
|
|
8
21
|
|
|
9
22
|
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|media | String | no | | | URL to icon displayed on the header |
|
|
15
15
|
|descriptionHtml | String | no | | | Intended use is text, links and inlined icons |
|
|
16
16
|
|backgroundColor | String | no | | | Hex code or supported color name |
|
|
17
|
-
|
|
|
17
|
+
|textColor | String | no | | | Hex code or supported color name. If not given, it defaults to static-black. |
|
|
18
18
|
|classNames | String | no | | | Ex. "my-special-class" |
|
|
19
19
|
|attributes | Object | no | | | Ex. { target: "_blank", "data-test": "lorem ipsum" } |
|
|
20
20
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
] | join(" ") %}
|
|
11
11
|
|
|
12
12
|
<div class="{{ classes }}" {{- attributes | safe }}>
|
|
13
|
-
<div class="{{ componentClassName }}__top {
|
|
13
|
+
<div class="{{ componentClassName }}__top" style="{% if params.textColor %}color: {{ params.textColor }}; {% endif %}{% if params.backgroundColor %}background-color: {{ params.backgroundColor }}{% endif %}">
|
|
14
14
|
<div class="{{ componentClassName }}__top-content">
|
|
15
15
|
<h1 class="{{ componentClassName }}__title">{{ params.title }}</h1>
|
|
16
16
|
{% if params.media %}
|
|
@@ -8,6 +8,7 @@ $ds-game-header__icon-size: 105px;
|
|
|
8
8
|
|
|
9
9
|
.ds-game-header__top {
|
|
10
10
|
background-color: $ds-color-surface-background;
|
|
11
|
+
color: $ds-color-static-black;
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
.ds-game-header__top-content {
|
|
@@ -25,17 +26,10 @@ $ds-game-header__icon-size: 105px;
|
|
|
25
26
|
|
|
26
27
|
.ds-game-header__title {
|
|
27
28
|
@include ds-typography($ds-typography-functional-heading03bold);
|
|
29
|
+
color: inherit;
|
|
28
30
|
margin: 0;
|
|
29
31
|
}
|
|
30
32
|
|
|
31
|
-
.ds-game-header--darkbg {
|
|
32
|
-
color: $ds-color-static-white;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.ds-game-header--lightbg {
|
|
36
|
-
color: $ds-color-static-black;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
33
|
.ds-game-header__media {
|
|
40
34
|
margin-right: ds-spacing($ds-s-100);
|
|
41
35
|
width: $ds-game-header__icon-size;
|
package/package.json
CHANGED