@bonniernews/dn-design-system-web 11.2.0 → 11.2.1
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.2.1](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@11.2.0...@bonniernews/dn-design-system-web@11.2.1) (2024-02-07)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* **web:** footer should take attributes ([#1190](https://github.com/BonnierNews/dn-design-system/issues/1190)) ([6dc0d2b](https://github.com/BonnierNews/dn-design-system/commit/6dc0d2b64c224c41c8759111d6de497c69a57f44))
|
|
13
|
+
|
|
7
14
|
## [11.2.0](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@11.1.3...@bonniernews/dn-design-system-web@11.2.0) (2024-02-07)
|
|
8
15
|
|
|
9
16
|
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
|rudolf | Object | yes | | | Ex. { imgUrl: "images/rudolf.png", text: "Punkten efter Dagens Nyheter har funnits med.." } |
|
|
17
17
|
|channels | Array > Object | no | | | Ex. [{ href: "?channel=mobile", text: "Mobil", classNames: "hidden-mobile", attributes: {rel: "nofollow"} }] |
|
|
18
18
|
|classNames | String | no | | | Ex. "my-special-class" |
|
|
19
|
+
|attributes | Object | no | | | Ex. { target: "_blank", "data-test": "lorem ipsum" } |
|
|
19
20
|
|forcePx | bool | no | true, false | false | Fixed pixel value is used for typography to prevent scaling based on html font-size
|
|
20
21
|
|
|
21
22
|
## Minimum requirement example
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
"ds-force-px" if params.forcePx,
|
|
8
8
|
params.classNames if params.classNames
|
|
9
9
|
] | join(" ") %}
|
|
10
|
-
|
|
11
|
-
<footer class="{{ classes }}">
|
|
10
|
+
{%- set attributes = getAttributes(params.attributes) %}
|
|
11
|
+
<footer class="{{ classes }}" {{- attributes | safe }}>
|
|
12
12
|
<div class="{{ componentClassName + '__inner'}}">
|
|
13
13
|
<div class="{{ componentClassName + '__link-grid'}}">
|
|
14
14
|
{% for group in params.linkGroups %}
|
package/package.json
CHANGED