@bonniernews/dn-design-system-web 20.6.0 → 20.7.0-beta.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,18 @@ All changes to @bonniernews/dn-design-system-web will be documented in this file
4
4
 
5
5
 
6
6
 
7
+ ## [20.7.0-beta.0](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@20.6.0...@bonniernews/dn-design-system-web@20.7.0-beta.0) (2024-10-17)
8
+
9
+
10
+ ### Features
11
+
12
+ * **web:** one level of bauta with background color ([8f843f7](https://github.com/BonnierNews/dn-design-system/commit/8f843f7f24352feaa89b9c2f332a070845749f0f))
13
+
14
+
15
+ ### Maintenance
16
+
17
+ * **web:** running multiple screenshots via test_ids ([#1426](https://github.com/BonnierNews/dn-design-system/issues/1426)) ([996e498](https://github.com/BonnierNews/dn-design-system/commit/996e49813c9a1124cad803760437fba4420cbce7))
18
+
7
19
  ## [20.6.0](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@20.5.4...@bonniernews/dn-design-system-web@20.6.0) (2024-10-09)
8
20
 
9
21
 
@@ -13,6 +13,7 @@
13
13
  classNamePrefix + (params.type or "icon"),
14
14
  classNamePrefix + params.variant if params.variant,
15
15
  classNamePrefix + 'bottom-border' if params.showBottomBorder,
16
+ 'ds-dark' if params.variant == 'bauta',
16
17
  params.classNames if params.classNames
17
18
  ] | join(" ") %}
18
19
 
@@ -45,7 +46,7 @@
45
46
  {% else %}
46
47
  {{ groupHeaderInner | safe }}
47
48
  {% endif %}
48
- {# there is no static-white toggle btn so it is disabled for bauta/xl for now #}
49
+ {# there is no static-white toggle btn so it is disabled for bauta for now #}
49
50
  {% if params.type == 'toggle' and not params.variant %}
50
51
  {{ ButtonToggle({
51
52
  variant: "brand",
@@ -23,15 +23,7 @@ $ds-group-header__icon-size: 24px;
23
23
  }
24
24
 
25
25
  &--bauta {
26
- --group-header-background: #{$ds-theme-color};
27
- --group-header-color: #{$ds-color-text-on-brand};
28
- --group-header-icon-color: #{$ds-color-icon-on-brand};
29
- }
30
-
31
- &--bautaxl {
32
- --group-header-background: #{$ds-color-static-black};
33
- --group-header-color: #{$ds-color-static-yellow};
34
- --group-header-icon-color: #{$ds-color-icon-on-brand};
26
+ --group-header-background: #{$bauta-surface-color};
35
27
  }
36
28
 
37
29
  &--toggle,
@@ -116,10 +108,6 @@ $ds-group-header__icon-size: 24px;
116
108
  padding-bottom: ds-spacing($ds-s-075) - ds-border-width(x1);
117
109
  }
118
110
 
119
- &--bautaxl .ds-group-header__title {
120
- @include ds-typography($ds-typography-detailbaota-xl-label);
121
- }
122
-
123
111
  .ds-group-header__image {
124
112
  margin-left: ds-spacing($ds-s-100);
125
113
  align-self: center;
@@ -8,7 +8,8 @@
8
8
  componentClassName,
9
9
  classNamePrefix + params.areaType if params.areaType,
10
10
  'ds-theme--' + params.theme if params.theme,
11
- params.classNames if params.classNames
11
+ params.classNames if params.classNames,
12
+ 'ds-dark' if params.areaType == 'bauta'
12
13
  ] | join(" ") %}
13
14
  {%- set attributes = getAttributes(params.attributes) %}
14
15
 
@@ -46,38 +46,23 @@
46
46
  display: none;
47
47
  }
48
48
 
49
- &.ds-teaser-package--bautaxl {
50
- &::after {
51
- background-color: transparent;
49
+ &.ds-teaser-package--bauta {
50
+ background-color: $bauta-surface-color;
51
+
52
+ & .ds-teaser,
53
+ & .ds-teaser--slideshow {
54
+ background-color: $bauta-surface-color;
52
55
  }
53
56
 
54
- .ds-group-header + .ds-teaser--large:not(.ds-teaser--large-italic):not(.ds-teaser--large-big-italic) {
55
- .ds-teaser__title {
56
- @include ds-typography($ds-typography-detailteaser-baotaxl);
57
+ .ds-split-container {
58
+ background-color: $bauta-surface-color;
59
+ &::after {
60
+ background-color: $updated-color-border-primary;
57
61
  }
62
+ }
58
63
 
59
- @include ds-mq-only-breakpoint(mobile) {
60
- background-color: $ds-color-static-black;
61
- .ds-teaser__title,
62
- .ds-teaser__text {
63
- color: $ds-color-static-white;
64
- }
65
- .ds-teaser-dot {
66
- color: $ds-color-static-red-300;
67
- }
68
- .ds-teaser__vignette,
69
- .ds-teaser__sticker {
70
- color: $ds-color-static-red-300;
71
- }
72
- &::after {
73
- background-color: $ds-color-static-transparent-white-10;
74
- }
75
-
76
- & + .ds-teaser::after,
77
- & + .ds-split-container::after {
78
- display: none;
79
- }
80
- }
64
+ & > .ds-teaser::after {
65
+ background-color: $updated-color-border-primary;
81
66
  }
82
67
  }
83
68
  }
@@ -78,7 +78,7 @@
78
78
  {%- set classNamePrefix = componentClassName + "--" %}
79
79
  {%- set classes = [
80
80
  componentClassName,
81
- classNamePrefix + params.areaType if params.areaType == "bauta" or params.areaType == "bautaxl",
81
+ classNamePrefix + params.areaType if params.areaType == "bauta",
82
82
  "ds-theme--" + params.theme if params.theme,
83
83
  params.classNames if params.classNames
84
84
  ] | join(" ") %}
@@ -6,6 +6,11 @@
6
6
  @use "../variables/colorsDnLightTokens";
7
7
  @use "../variables/colorsDnDarkTokens";
8
8
 
9
+ // Temporary variables before we update tokens
10
+ $bauta-surface-color: #360003;
11
+ $updated-color-border-primary: #ffffff19;
12
+ // end of temporary variables
13
+
9
14
  $ds-theme-color: var(--ds-theme-color);
10
15
 
11
16
  @mixin get-dark-color-scheme() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bonniernews/dn-design-system-web",
3
- "version": "20.6.0",
3
+ "version": "20.7.0-beta.0",
4
4
  "description": "DN design system for web.",
5
5
  "main": "index.tsx",
6
6
  "type": "module",