@bonniernews/dn-design-system-web 3.0.0-alpha.81 → 3.0.0-alpha.83
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
|
@@ -3,6 +3,24 @@
|
|
|
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
|
+
## [3.0.0-alpha.83](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@3.0.0-alpha.82...@bonniernews/dn-design-system-web@3.0.0-alpha.83) (2023-06-02)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **web:** fix the flashing dot ([#861](https://github.com/BonnierNews/dn-design-system/issues/861)) ([992a108](https://github.com/BonnierNews/dn-design-system/commit/992a108d4ddbc78b2af488885aee8a972a050b29))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## [3.0.0-alpha.82](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@3.0.0-alpha.81...@bonniernews/dn-design-system-web@3.0.0-alpha.82) (2023-06-02)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* **web:** remove world map from teaser-onsite ([#852](https://github.com/BonnierNews/dn-design-system/issues/852)) ([ba0df65](https://github.com/BonnierNews/dn-design-system/commit/ba0df650d5f80aca6ca4ea5fff6b04477243a177))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
6
24
|
## [3.0.0-alpha.81](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@3.0.0-alpha.80...@bonniernews/dn-design-system-web@3.0.0-alpha.81) (2023-06-01)
|
|
7
25
|
|
|
8
26
|
**Note:** Version bump only for package @bonniernews/dn-design-system-web
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
|
|
4
4
|
{% macro getDotOrGrade(params) %}
|
|
5
5
|
{% set gradeHtml = GetGrade({ grade: params.grade, type: "single" }) | trim if params.grade else "" %}
|
|
6
|
-
{{ gradeHtml if gradeHtml.length else TeaserDot({ flashing: params.
|
|
6
|
+
{{ gradeHtml if gradeHtml.length else TeaserDot({ flashing: params.flashing }) }}
|
|
7
7
|
{% endmacro %}
|
|
@@ -10,14 +10,6 @@ Also known as "På Plats-puffen".
|
|
|
10
10
|
|
|
11
11
|
In the CMS title will be set to a location like "Kiev, Ukraina" or "USA" and text is usually set to some author names like "Jan Banan och Kalle Kula"
|
|
12
12
|
|
|
13
|
-
The worldMap has to be set by the parent page as a CSS variable. This is done in the StoryBook and will have to be done from the production website codebase.
|
|
14
|
-
|
|
15
|
-
```
|
|
16
|
-
:root {
|
|
17
|
-
--ds-onsite-background-image-url: url("https://i.imgur.com/GJh7Fbl.png");
|
|
18
|
-
}
|
|
19
|
-
```
|
|
20
|
-
|
|
21
13
|
## Parameters
|
|
22
14
|
|
|
23
15
|
|parameter | type | required | options | default | description |
|
|
@@ -36,7 +28,7 @@ The worldMap has to be set by the parent page as a CSS variable. This is done in
|
|
|
36
28
|
|
|
37
29
|
### Nunjucks
|
|
38
30
|
|
|
39
|
-
These are copy paste friendly examples to
|
|
31
|
+
These are copy paste friendly examples to quickly get started using a component.
|
|
40
32
|
|
|
41
33
|
```html
|
|
42
34
|
{% from '@bonniernews/dn-design-system-web/components/teaser-onsite/teaser-onsite.njk' import TeaserOnSite %}
|
|
@@ -49,5 +41,5 @@ These are copy paste friendly examples to quickliy get started using a component
|
|
|
49
41
|
|
|
50
42
|
### SCSS
|
|
51
43
|
```scss
|
|
52
|
-
@use "@bonniernews/dn-design-system-web/components/teaser-onsite/teaser-onsite"
|
|
44
|
+
@use "@bonniernews/dn-design-system-web/components/teaser-onsite/teaser-onsite";
|
|
53
45
|
```
|
|
@@ -3,12 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
.ds-teaser.ds-teaser--onsite {
|
|
5
5
|
@include ds-spacing-layout($ds-sl-teaser-vertical $ds-sl-teaser-horizontal);
|
|
6
|
-
|
|
7
|
-
--ds-onsite-background-image-url
|
|
8
|
-
); //Set by parent context (like Storybook or Bang)
|
|
9
|
-
background-position: 100%;
|
|
10
|
-
background-repeat: no-repeat;
|
|
11
|
-
overflow: hidden;
|
|
6
|
+
display: flex;
|
|
12
7
|
|
|
13
8
|
.ds-teaser__title {
|
|
14
9
|
color: $ds-theme-color;
|
|
@@ -17,7 +12,11 @@
|
|
|
17
12
|
|
|
18
13
|
@include ds-hover(true) {
|
|
19
14
|
.ds-teaser__title {
|
|
20
|
-
|
|
15
|
+
text-decoration: none;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.ds-teaser__text {
|
|
19
|
+
@include ds-underline();
|
|
21
20
|
}
|
|
22
21
|
}
|
|
23
22
|
|
|
@@ -27,7 +26,6 @@
|
|
|
27
26
|
}
|
|
28
27
|
|
|
29
28
|
.ds-teaser__media {
|
|
30
|
-
float: left;
|
|
31
29
|
margin-right: ds-spacing-component($ds-sc-x4);
|
|
32
30
|
width: 56px;
|
|
33
31
|
height: 56px;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bonniernews/dn-design-system-web",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.83",
|
|
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",
|