@bonniernews/dn-design-system-web 15.0.1 → 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,26 @@ 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
+
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)
21
+
22
+
23
+ ### Features
24
+
25
+ * **web:** add isDarkColor arg to gameheader ([#1278](https://github.com/BonnierNews/dn-design-system/issues/1278)) ([a24dd15](https://github.com/BonnierNews/dn-design-system/commit/a24dd1531f8c9ff31d61df2cd860995e3dc764c9))
26
+
7
27
  ## [15.0.1](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@15.0.0...@bonniernews/dn-design-system-web@15.0.1) (2024-04-04)
8
28
 
9
29
 
@@ -14,6 +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
+ |textColor | String | no | | | Hex code or supported color name. If not given, it defaults to static-black. |
17
18
  |classNames | String | no | | | Ex. "my-special-class" |
18
19
  |attributes | Object | no | | | Ex. { target: "_blank", "data-test": "lorem ipsum" } |
19
20
 
@@ -10,13 +10,12 @@
10
10
  ] | join(" ") %}
11
11
 
12
12
  <div class="{{ classes }}" {{- attributes | safe }}>
13
- <div class="{{ componentClassName }}__top ds-light" style="background-color: {{params.backgroundColor}}">
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
- <h1 class="{{ componentClassName }}__title">{{ params.title}}</h1>
16
-
15
+ <h1 class="{{ componentClassName }}__title">{{ params.title }}</h1>
17
16
  {% if params.media %}
18
17
  <div class="{{ componentClassName + '__media'}}">
19
- {{ params.media | safe }}
18
+ {{ params.media | safe }}
20
19
  </div>
21
20
  {% endif %}
22
21
  </div>
@@ -25,7 +24,7 @@
25
24
  {% if params.descriptionHtml %}
26
25
  <div class="{{ componentClassName }}__description">
27
26
  <div class="{{ componentClassName }}__description-content">
28
- {{ params.descriptionHtml | safe }}
27
+ {{ params.descriptionHtml | safe }}
29
28
  </div>
30
29
  </div>
31
30
  {% endif %}
@@ -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,9 +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);
28
- color: $ds-color-text-primary;
29
+ color: inherit;
29
30
  margin: 0;
30
31
  }
32
+
31
33
  .ds-game-header__media {
32
34
  margin-right: ds-spacing($ds-s-100);
33
35
  width: $ds-game-header__icon-size;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bonniernews/dn-design-system-web",
3
- "version": "15.0.1",
3
+ "version": "15.2.0",
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",