@bonniernews/dn-design-system-web 3.0.0-alpha.78 → 3.0.0-alpha.79

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,15 @@
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.79](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@3.0.0-alpha.78...@bonniernews/dn-design-system-web@3.0.0-alpha.79) (2023-06-01)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **web:** put back the flag on right now ([#853](https://github.com/BonnierNews/dn-design-system/issues/853)) ([591d8c5](https://github.com/BonnierNews/dn-design-system/commit/591d8c50c9460a507356abad3e667085c3c1a1ff))
12
+
13
+
14
+
6
15
  ## [3.0.0-alpha.78](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@3.0.0-alpha.77...@bonniernews/dn-design-system-web@3.0.0-alpha.78) (2023-06-01)
7
16
 
8
17
 
@@ -27,7 +27,7 @@ These are copy paste friendly examples to quickliy get started using a component
27
27
  {% from '@bonniernews/dn-design-system-web/components/teaser-right-now/teaser-right-now.njk' import TeaserRightNow %}
28
28
 
29
29
  {{ TeaserRightNow({
30
- title: "Tågtrafiken avstängd mellan Malmö och Göteborg",
30
+ title: "Tågtrafiken är avstängd mellan Malmö och Göteborg",
31
31
  })}}
32
32
  ```
33
33
 
@@ -19,9 +19,10 @@
19
19
  class="{{ classes }}"
20
20
  {{- attributes | safe }}>
21
21
 
22
+ <span class="ds-teaser__right-now-sticker">Just nu</span>
22
23
  <div class="{{ componentClassName + '__content'}}">
23
24
  <h2 class="ds-teaser__title">
24
- <span class="ds-teaser__right-now-sticker">Just nu:</span> {{ params.title | safe }}
25
+ {{ params.title | safe }}
25
26
  </h2>
26
27
  </div>
27
28
  </a>
@@ -1,16 +1,57 @@
1
1
  @use "../../foundations/helpers/forward.helpers.scss" as *;
2
2
  @use "../../assets/teaser/teaser.scss";
3
+ @use "sass:math";
3
4
 
4
5
  .ds-teaser.ds-teaser--right-now {
6
+ display: flex;
7
+ flex-direction: row;
8
+ align-items: center;
9
+ @include ds-spacing-layout($ds-sl-teaser-vertical $ds-sl-teaser-horizontal);
10
+
5
11
  .ds-teaser__content {
6
- @include ds-spacing-layout($ds-sl-teaser-vertical $ds-sl-teaser-horizontal);
12
+ padding-left: ds-spacing-component($ds-sc-x3);
13
+ flex: 1;
7
14
  }
8
15
 
9
16
  .ds-teaser__title {
10
- @include ds-typography($ds-typography-expressive-heading01bold);
17
+ @include ds-typography($ds-typography-functional-heading01bold);
18
+ }
19
+
20
+ @include ds-hover(true) {
21
+ .ds-teaser__title {
22
+ @include ds-underline(2px, 1px);
23
+ }
11
24
  }
12
25
 
13
26
  .ds-teaser__right-now-sticker {
14
- color: $ds-theme-color;
27
+ $flag-height: ds-spacing-component($ds-sc-x8);
28
+ $flag-height-half: math.div($flag-height, 2);
29
+ $flag-color: $ds-color-static-yellow;
30
+
31
+ position: relative;
32
+ display: flex;
33
+ justify-content: center;
34
+ align-items: center;
35
+
36
+ @include ds-typography($ds-typography-detailarticle-label);
37
+
38
+ height: $flag-height;
39
+ padding: ds-spacing-component(0 $ds-sc-x1 0 $ds-sc-x2);
40
+ margin-right: $flag-height-half;
41
+
42
+ background-color: $flag-color;
43
+ color: $ds-color-static-black;
44
+
45
+ &::after {
46
+ display: block;
47
+ content: "";
48
+ position: absolute;
49
+ right: -#{$flag-height-half};
50
+ top: 0;
51
+
52
+ border-left: $flag-height-half solid $flag-color;
53
+ border-top: $flag-height-half solid transparent;
54
+ border-bottom: $flag-height-half solid transparent;
55
+ }
15
56
  }
16
57
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bonniernews/dn-design-system-web",
3
- "version": "3.0.0-alpha.78",
3
+ "version": "3.0.0-alpha.79",
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",