@bonniernews/dn-design-system-web 3.0.0-alpha.1 → 3.0.0-alpha.11

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.
Files changed (50) hide show
  1. package/CHANGELOG.md +91 -0
  2. package/README.md +1 -1
  3. package/assets/article-image/article-image.njk +34 -0
  4. package/assets/article-image/article-image.scss +6 -0
  5. package/assets/form-field/form-field.scss +4 -4
  6. package/components/article-body-image/README.md +42 -0
  7. package/components/article-body-image/article-body-image.njk +19 -0
  8. package/components/article-body-image/article-body-image.scss +8 -0
  9. package/components/article-top-image/README.md +40 -0
  10. package/components/article-top-image/article-top-image.njk +19 -0
  11. package/components/article-top-image/article-top-image.scss +6 -0
  12. package/components/badge/badge.scss +4 -4
  13. package/components/blocked-content/blocked-content.scss +6 -6
  14. package/components/buddy-menu/buddy-menu.scss +13 -13
  15. package/components/button/button.scss +21 -19
  16. package/components/button-toggle/button-toggle.scss +21 -21
  17. package/components/byline/byline.scss +11 -8
  18. package/components/checkbox/checkbox.scss +9 -9
  19. package/components/disclaimer/disclaimer.scss +7 -6
  20. package/components/divider/divider.scss +1 -1
  21. package/components/factbox/factbox.scss +11 -9
  22. package/components/footer/footer.scss +11 -11
  23. package/components/icon-button/icon-button.scss +3 -3
  24. package/components/icon-button-toggle/icon-button-toggle.scss +3 -3
  25. package/components/image-caption/README.md +38 -0
  26. package/components/image-caption/image-caption.njk +25 -0
  27. package/components/image-caption/image-caption.scss +16 -0
  28. package/components/list-item/list-item.scss +9 -9
  29. package/components/quote/quote.scss +2 -2
  30. package/components/radio-button/radio-button.scss +9 -9
  31. package/components/switch/switch.scss +2 -2
  32. package/components/text-button/text-button.scss +6 -6
  33. package/components/text-button-toggle/text-button-toggle.scss +3 -3
  34. package/components/text-input/text-input.scss +19 -19
  35. package/components/thematic-break/thematic-break.scss +1 -1
  36. package/components/video-caption/README.md +37 -0
  37. package/components/video-caption/video-caption.njk +24 -0
  38. package/components/video-caption/video-caption.scss +18 -0
  39. package/foundations/helpers/README-spacing.md +48 -10
  40. package/foundations/helpers/spacing.scss +5 -3
  41. package/foundations/typography/fontDefinitions.scss +82 -51
  42. package/foundations/variables/spacingComponentList.scss +10 -0
  43. package/foundations/variables/spacingLayoutLargeScreen.scss +2 -9
  44. package/foundations/variables/spacingLayoutList.scss +8 -0
  45. package/foundations/variables/typographyTokensList.scss +31 -30
  46. package/foundations/variables/typographyTokensScreenLarge.scss +115 -109
  47. package/foundations/variables/typographyTokensScreenSmall.scss +128 -122
  48. package/package.json +1 -1
  49. package/tokens/spacing-component-list.json +12 -0
  50. package/tokens/spacing-layout-list.json +10 -0
package/CHANGELOG.md CHANGED
@@ -3,6 +3,97 @@
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.11](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@3.0.0-alpha.10...@bonniernews/dn-design-system-web@3.0.0-alpha.11) (2023-03-15)
7
+
8
+ **Note:** Version bump only for package @bonniernews/dn-design-system-web
9
+
10
+
11
+
12
+
13
+
14
+ ## [3.0.0-alpha.10](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@3.0.0-alpha.9...@bonniernews/dn-design-system-web@3.0.0-alpha.10) (2023-03-15)
15
+
16
+
17
+ ### Features
18
+
19
+ * **web:** image caption ([#723](https://github.com/BonnierNews/dn-design-system/issues/723)) ([5247279](https://github.com/BonnierNews/dn-design-system/commit/5247279d3205eef7bc19599e21dbac997994cc92))
20
+
21
+
22
+
23
+ ## [3.0.0-alpha.9](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@3.0.0-alpha.8...@bonniernews/dn-design-system-web@3.0.0-alpha.9) (2023-03-15)
24
+
25
+ **Note:** Version bump only for package @bonniernews/dn-design-system-web
26
+
27
+
28
+
29
+
30
+
31
+ ## [3.0.0-alpha.8](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@3.0.0-alpha.7...@bonniernews/dn-design-system-web@3.0.0-alpha.8) (2023-03-10)
32
+
33
+
34
+ ### Bug Fixes
35
+
36
+ * **web:** treat b as strong ([#722](https://github.com/BonnierNews/dn-design-system/issues/722)) ([8148ce9](https://github.com/BonnierNews/dn-design-system/commit/8148ce98e11827668858a1507ea69b8f122d8a83))
37
+
38
+
39
+
40
+ ## 3.0.0-alpha.7 (2023-03-10)
41
+
42
+ **Note:** Version bump only for package @bonniernews/dn-design-system-web
43
+
44
+
45
+
46
+
47
+
48
+ ## [3.0.0-alpha.6](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@3.0.0-alpha.5...@bonniernews/dn-design-system-web@3.0.0-alpha.6) (2023-03-08)
49
+
50
+
51
+ ### Bug Fixes
52
+
53
+ * **web:** add sass variables for spacing and refactor helper ([#719](https://github.com/BonnierNews/dn-design-system/issues/719)) ([e65417c](https://github.com/BonnierNews/dn-design-system/commit/e65417cbcbe54d6d388e7b7f8b88e33ec7598588))
54
+
55
+
56
+
57
+ ## [3.0.0-alpha.5](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@3.0.0-alpha.4...@bonniernews/dn-design-system-web@3.0.0-alpha.5) (2023-03-08)
58
+
59
+
60
+ ### Features
61
+
62
+ * **web:** video caption component ([#706](https://github.com/BonnierNews/dn-design-system/issues/706)) ([a64278a](https://github.com/BonnierNews/dn-design-system/commit/a64278a64840e2422baed278b7bae29055dabf78))
63
+
64
+
65
+
66
+ ## [3.0.0-alpha.4](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@3.0.0-alpha.3...@bonniernews/dn-design-system-web@3.0.0-alpha.4) (2023-03-08)
67
+
68
+
69
+ ### ⚠ BREAKING CHANGES
70
+
71
+ * typography medium to semibold (#717)
72
+
73
+ ### Miscellaneous Chores
74
+
75
+ * typography medium to semibold ([#717](https://github.com/BonnierNews/dn-design-system/issues/717)) ([964de48](https://github.com/BonnierNews/dn-design-system/commit/964de485f43f18cd3f93ce4f0f82a1ce89219dee))
76
+
77
+
78
+
79
+ ## [3.0.0-alpha.3](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@3.0.0-alpha.2...@bonniernews/dn-design-system-web@3.0.0-alpha.3) (2023-03-08)
80
+
81
+
82
+ ### Features
83
+
84
+ * **web:** article image ([#697](https://github.com/BonnierNews/dn-design-system/issues/697)) ([e3e9cec](https://github.com/BonnierNews/dn-design-system/commit/e3e9cecd96f4d6240854ffc593a082f7d6c66793))
85
+
86
+
87
+
88
+ ## [3.0.0-alpha.2](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@3.0.0-alpha.1...@bonniernews/dn-design-system-web@3.0.0-alpha.2) (2023-03-06)
89
+
90
+
91
+ ### Bug Fixes
92
+
93
+ * **web:** use large screen spacing on tablet ([#718](https://github.com/BonnierNews/dn-design-system/issues/718)) ([42f6dc7](https://github.com/BonnierNews/dn-design-system/commit/42f6dc79c03f2cca823921b07d9ec5855628625a))
94
+
95
+
96
+
6
97
  ## [3.0.0-alpha.1](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@3.0.0-alpha.0...@bonniernews/dn-design-system-web@3.0.0-alpha.1) (2023-03-06)
7
98
 
8
99
 
package/README.md CHANGED
@@ -10,4 +10,4 @@ Storybook latest: [https://designsystem-latest.dn.se/](https://designsystem-late
10
10
 
11
11
  Github: [https://github.com/BonnierNews/dn-design-system/tree/main/web/src](https://github.com/BonnierNews/dn-design-system/tree/main/web/src)
12
12
 
13
- For specific instructions see each component or helper readme.
13
+ For specific instructions see each component or helper readme
@@ -0,0 +1,34 @@
1
+ {% from '@bonniernews/dn-design-system-web/components/image-caption/image-caption.njk' import ImageCaption %}
2
+
3
+ {% macro ArticleImage(params) %}
4
+ {% set macroClassName = "ds-article-image" %}
5
+ {% set additionalClasses = [] %}
6
+
7
+ {% if params.classNames %}
8
+ {% set additionalClasses = (additionalClasses.push(params.classNames), additionalClasses) %}
9
+ {% endif %}
10
+
11
+ {% set classes = macroClassName + " " + additionalClasses | join(" ") %}
12
+
13
+ <figure class="{{ classes }}" {{- params.attributes | safe }}>
14
+ {% if params.fullWidth %}
15
+ <div class="ds-full-width-element">
16
+ {{ params.imageHtml | safe }}
17
+ </div>
18
+ {% else %}
19
+ {{ params.imageHtml | safe }}
20
+ {% endif %}
21
+
22
+ {% if params.caption or params.author %}
23
+ {% set caption = params.caption if params.caption else "" %}
24
+ {% set author = params.author if params.author else "" %}
25
+ {% set imageType = params.imageType if params.imageType else "" %}
26
+ {{ ImageCaption({
27
+ caption: caption,
28
+ author: author,
29
+ imageType: imageType,
30
+ forcePx: params.forcePx
31
+ })}}
32
+ {% endif %}
33
+ </figure>
34
+ {% endmacro %}
@@ -0,0 +1,6 @@
1
+ @use "../../foundations/helpers/forward.helpers.scss" as *;
2
+ @use "../../components/image-caption/image-caption.scss" as *;
3
+
4
+ .ds-article-image {
5
+ margin: 0;
6
+ }
@@ -8,7 +8,7 @@
8
8
  $ds-form-field__error-icon-size: 20px;
9
9
 
10
10
  .ds-form-field__help-text {
11
- margin-top: ds-spacing-component(x2);
11
+ margin-top: ds-spacing-component($ds-sc-x2);
12
12
  margin-bottom: 0;
13
13
  color: $ds-color-text-primary-02;
14
14
  @include ds-typography($ds-typography-functional-body01regular);
@@ -22,9 +22,9 @@ $ds-form-field__error-icon-size: 20px;
22
22
  .invalid {
23
23
  .ds-form-field__error-message {
24
24
  display: flex;
25
- margin-top: ds-spacing-component(x2);
25
+ margin-top: ds-spacing-component($ds-sc-x2);
26
26
  .ds-icon {
27
- margin: 0 ds-px-to-rem(ds-spacing-component(x2)) 0 0;
27
+ margin: 0 ds-px-to-rem(ds-spacing-component($ds-sc-x2)) 0 0;
28
28
  height: ds-px-to-rem($ds-form-field__error-icon-size);
29
29
  width: ds-px-to-rem($ds-form-field__error-icon-size);
30
30
  line-height: 0;
@@ -48,7 +48,7 @@ $ds-form-field__error-icon-size: 20px;
48
48
  .invalid {
49
49
  .ds-form-field__error-message {
50
50
  .ds-icon {
51
- margin: 0 ds-spacing-component(x2) 0 0;
51
+ margin: 0 ds-spacing-component($ds-sc-x2) 0 0;
52
52
  height: $ds-form-field__error-icon-size;
53
53
  width: $ds-form-field__error-icon-size;
54
54
  }
@@ -0,0 +1,42 @@
1
+ - GitHub: [BonnierNews/dn-design-system/../web/src/components/article-body-image](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/article-body-image)
2
+ - Storybook: [ArticleBodyImage > Web](https://designsystem.dn.se/?path=/story/components-app-web-article-components-image-bodyimage-web--article-body-image)
3
+
4
+ ----
5
+
6
+ # ArticleBodyImage
7
+
8
+ ## Parameters
9
+
10
+ |parameter | type | required | options | default | description |
11
+ |:--- | :--- | :--- | :--- | :--- | :--- |
12
+ |imageHtml | String | yes | | | Use to populate figure tag with image information |
13
+ |fullWidth | Bool | no | true, false | false | Image will have styleable wrapping element |
14
+ |caption | String | no | | | Ex "Detta är en bildtext" |
15
+ |imageType | String | no | | | Type of image. Ex "Foto" |
16
+ |author | String | no | | | Ex "Paul Hansen" |
17
+ |attributes | Object | no | | | Ex. { target: "_blank", "data-test": "lorem ipsum" } |
18
+ |classNames | String | no | | | Ex. "my-special-class" |
19
+ |forcePx | Bool | no | true, false | false | Fixed pixel value is used for typography to prevent scaling based on html font-size
20
+
21
+ ## Minimum requirement example
22
+
23
+ ### Nunjucks
24
+
25
+ These are copy paste friendly examples to quickliy get started using a component.
26
+
27
+ ```html
28
+ {% from '@bonniernews/dn-design-system-web/components/article-body-image/article-body-image.njk' import ArticleBodyImage %}
29
+
30
+ {{ ArticleBodyImage({
31
+ imageHtml: exampleArticleBodyImageHtml(),
32
+ fullWidth: true,
33
+ caption: "En bildtext",
34
+ imageType: "Foto",
35
+ author: "Paul Hansen",
36
+ })}}
37
+ ```
38
+
39
+ ### SCSS
40
+ ```scss
41
+ @use "@bonniernews/dn-design-system-web/components/article-body-image/article-body-image";
42
+ ```
@@ -0,0 +1,19 @@
1
+ {% from '@bonniernews/dn-design-system-web/njk-helpers/attributes.njk' import getAttributes %}
2
+ {% from '@bonniernews/dn-design-system-web/assets/article-image/article-image.njk' import ArticleImage %}
3
+ {% set classes = [] %}
4
+
5
+ {% macro ArticleBodyImage(params) %}
6
+ {% set componentClassName = "ds-article-image--body" %}
7
+ {% set additionalClasses = [] %}
8
+ {% set attributes = getAttributes(params.attributes) %}
9
+
10
+ {% if params.classNames %}
11
+ {% set additionalClasses = (additionalClasses.push(params.classNames), additionalClasses) %}
12
+ {% endif %}
13
+
14
+ {% set classes = componentClassName + " " + additionalClasses | join(" ") %}
15
+
16
+ {% set imageParams = { fullWidth: params.fullWidth, caption: params.caption, imageType: params.imageType, author: params.author, imageHtml: params.imageHtml, classNames: classes, attributes: attributes, forcePx: params.forcePx } %}
17
+
18
+ {% call ArticleImage(imageParams) %}{% endcall %}
19
+ {% endmacro %}
@@ -0,0 +1,8 @@
1
+ @use "../../foundations/helpers/forward.helpers.scss" as *;
2
+ @use "../../assets/article-image/article-image.scss" as *;
3
+
4
+ .ds-article-image--body {
5
+ @include ds-spacing-layout(
6
+ $ds-sl-gap-vertical-static-medium 0 $ds-sl-gap-vertical-static-large
7
+ );
8
+ }
@@ -0,0 +1,40 @@
1
+ - GitHub: [BonnierNews/dn-design-system/../web/src/components/article-top-image](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/article-top-image)
2
+ - Storybook: [ArticleTopImage > Web](https://designsystem.dn.se/?path=/story/components-app-web-article-components-image-topimage-web--article-top-image)
3
+
4
+ ----
5
+
6
+ # ArticleTopImage
7
+
8
+ ## Parameters
9
+
10
+ |parameter | type | required | options | default | description |
11
+ |:--- | :--- | :--- | :--- | :--- | :--- |
12
+ |imageHtml | String | yes | | | Use to populate figure tag with image information |
13
+ |caption | String | no | | | Ex "Detta är en bildtext" |
14
+ |imageType | String | no | | | Type of image. Ex "Foto" |
15
+ |author | String | no | | | Ex "Paul Hansen" |
16
+ |attributes | Object | no | | | Ex. { target: "_blank", "data-test": "lorem ipsum" } |
17
+ |classNames | String | no | | | Ex. "my-special-class" |
18
+ |forcePx | Bool | no | true, false | false | Fixed pixel value is used for typography to prevent scaling based on html font-size
19
+
20
+ ## Minimum requirement example
21
+
22
+ ### Nunjucks
23
+
24
+ These are copy paste friendly examples to quickliy get started using a component.
25
+
26
+ ```html
27
+ {% from '@bonniernews/dn-design-system-web/components/article-top-image/article-top-image.njk' import ArticleTopImage %}
28
+
29
+ {{ ArticleTopImage({
30
+ imageHtml: exampleArticleTopImageHtml(),
31
+ caption: "En bildtext",
32
+ imageType: "Foto",
33
+ author: "Beatrice Lundborg",
34
+ })}}
35
+ ```
36
+
37
+ ### SCSS
38
+ ```scss
39
+ @use "@bonniernews/dn-design-system-web/components/article-top-image/article-top-image";
40
+ ```
@@ -0,0 +1,19 @@
1
+ {% from '@bonniernews/dn-design-system-web/njk-helpers/attributes.njk' import getAttributes %}
2
+ {% from '@bonniernews/dn-design-system-web/assets/article-image/article-image.njk' import ArticleImage %}
3
+ {% set classes = [] %}
4
+
5
+ {% macro ArticleTopImage(params) %}
6
+ {% set componentClassName = "ds-article-image--top" %}
7
+ {% set additionalClasses = [] %}
8
+ {% set attributes = getAttributes(params.attributes) %}
9
+
10
+ {% if params.classNames %}
11
+ {% set additionalClasses = (additionalClasses.push(params.classNames), additionalClasses) %}
12
+ {% endif %}
13
+
14
+ {% set classes = componentClassName + " " + additionalClasses | join(" ") %}
15
+
16
+ {% set imageParams = { fullWidth: true, caption: params.caption, imageType: params.imageType, author: params.author, imageHtml: params.imageHtml, classNames: classes, attributes: attributes, forcePx: params.forcePx } %}
17
+
18
+ {% call ArticleImage(imageParams) %}{% endcall %}
19
+ {% endmacro %}
@@ -0,0 +1,6 @@
1
+ @use "../../foundations/helpers/forward.helpers.scss" as *;
2
+ @use "../../assets/article-image/article-image.scss" as *;
3
+
4
+ .ds-article-image--top {
5
+ @include ds-spacing-layout($ds-sl-gap-vertical-static-large, padding-bottom);
6
+ }
@@ -11,7 +11,7 @@ $ds-badge__min-size: 8px;
11
11
  box-sizing: content-box;
12
12
 
13
13
  .ds-badge__inner {
14
- @include ds-typography($ds-typography-functional-meta02medium);
14
+ @include ds-typography($ds-typography-functional-meta02semibold);
15
15
  color: $ds-color-static-white;
16
16
  background-color: $ds-color-component-brand;
17
17
  border: $ds-color-border-secondary ds-metrics-border-width(x2) solid;
@@ -21,12 +21,12 @@ $ds-badge__min-size: 8px;
21
21
  justify-content: center;
22
22
  min-height: ds-px-to-rem($ds-badge__min-size);
23
23
  min-width: ds-px-to-rem($ds-badge__min-size);
24
- padding: 0 ds-px-to-rem(ds-spacing-component(x1));
24
+ padding: 0 ds-px-to-rem(ds-spacing-component($ds-sc-x1));
25
25
  @at-root .ds-force-px#{&} {
26
- @include ds-typography($ds-typography-functional-meta02medium, true);
26
+ @include ds-typography($ds-typography-functional-meta02semibold, true);
27
27
  min-height: $ds-badge__min-size;
28
28
  min-width: $ds-badge__min-size;
29
- padding: 0 ds-spacing-component(x1);
29
+ padding: 0 ds-spacing-component($ds-sc-x1);
30
30
  }
31
31
  }
32
32
 
@@ -5,18 +5,18 @@
5
5
  background-color: $ds-color-surface-background;
6
6
  margin: 0;
7
7
  @include ds-spacing-layout(
8
- gap-vertical-static-medium 0 gap-vertical-static-large
8
+ $ds-sl-gap-vertical-static-medium 0 $ds-sl-gap-vertical-static-large
9
9
  );
10
10
 
11
11
  .ds-blocked-content__inner {
12
12
  text-align: center;
13
13
  border: ds-metrics-border-width(x1) solid $ds-color-border-primary;
14
14
  border-radius: ds-metrics-border-radius(x1);
15
- padding: ds-spacing-component(x8 x4 x4);
15
+ padding: ds-spacing-component($ds-sc-x8 $ds-sc-x4 $ds-sc-x4);
16
16
  }
17
17
 
18
18
  .ds-blocked-content__body {
19
- margin: ds-spacing-component(0 0 x8);
19
+ margin: ds-spacing-component(0 0 $ds-sc-x8);
20
20
  @include ds-typography($ds-typography-functional-body02regular);
21
21
  color: $ds-color-text-primary;
22
22
  @at-root .ds-force-px#{&} {
@@ -24,11 +24,11 @@
24
24
  }
25
25
  }
26
26
  .ds-blocked-content__title {
27
- @include ds-typography($ds-typography-functional-heading01medium);
27
+ @include ds-typography($ds-typography-functional-heading01semibold);
28
28
  color: $ds-color-text-primary;
29
- margin: 0 0 ds-spacing-component(x2);
29
+ margin: 0 0 ds-spacing-component($ds-sc-x2);
30
30
  @at-root .ds-force-px#{&} {
31
- @include ds-typography($ds-typography-functional-heading01medium, true);
31
+ @include ds-typography($ds-typography-functional-heading01semibold, true);
32
32
  }
33
33
  }
34
34
  }
@@ -47,45 +47,45 @@
47
47
  position: relative;
48
48
  }
49
49
  .ds-buddy-menu__header {
50
- padding: ds-spacing-component(x8 x4 x4);
51
- margin: ds-spacing-component(0 0 x4);
50
+ padding: ds-spacing-component($ds-sc-x8 $ds-sc-x4 $ds-sc-x4);
51
+ margin: ds-spacing-component(0 0 $ds-sc-x4);
52
52
  }
53
53
  .ds-buddy-menu__close {
54
54
  position: absolute;
55
- right: ds-spacing-component(x1);
56
- top: ds-spacing-component(x1);
55
+ right: ds-spacing-component($ds-sc-x1);
56
+ top: ds-spacing-component($ds-sc-x1);
57
57
  }
58
58
  .ds-buddy-menu__greeting {
59
59
  @include ds-typography($ds-typography-functional-heading03bold);
60
60
  color: $ds-color-text-primary;
61
- margin: ds-spacing-component(0 0 x4);
61
+ margin: ds-spacing-component(0 0 $ds-sc-x4);
62
62
  display: block;
63
63
  }
64
64
  .ds-buddy-menu__account-title,
65
65
  .ds-buddy-menu__addons-title,
66
66
  .ds-buddy-menu__links-title {
67
- @include ds-typography($ds-typography-functional-body02medium);
67
+ @include ds-typography($ds-typography-functional-body02semibold);
68
68
  color: $ds-color-text-primary;
69
- margin: ds-spacing-component(0 0 x1);
69
+ margin: ds-spacing-component(0 0 $ds-sc-x1);
70
70
  }
71
71
  .ds-buddy-menu__links-title {
72
- padding: ds-spacing-component(0 x4);
72
+ padding: ds-spacing-component(0 $ds-sc-x4);
73
73
  }
74
74
  .ds-buddy-menu__addons-list {
75
75
  padding: 0;
76
- margin: ds-spacing-component(0 0 x4);
76
+ margin: ds-spacing-component(0 0 $ds-sc-x4);
77
77
  list-style: none;
78
78
  a {
79
79
  @include ds-link($ds-link-list);
80
80
  @include ds-typography($ds-typography-functional-body02regular);
81
81
  color: $ds-color-text-primary-02;
82
- margin: ds-spacing-component(0 0 x4);
82
+ margin: ds-spacing-component(0 0 $ds-sc-x4);
83
83
  }
84
84
  }
85
85
  .ds-buddy-menu__account-level {
86
86
  @include ds-typography($ds-typography-functional-body02regular);
87
87
  color: $ds-color-text-primary-02;
88
- margin: ds-spacing-component(0 0 x4);
88
+ margin: ds-spacing-component(0 0 $ds-sc-x4);
89
89
  display: block;
90
90
  }
91
91
  .ds-buddy-menu__links-list {
@@ -103,7 +103,7 @@
103
103
  .ds-buddy-menu__account-title,
104
104
  .ds-buddy-menu__addons-title,
105
105
  .ds-buddy-menu__links-title {
106
- @include ds-typography($ds-typography-functional-body02medium, true);
106
+ @include ds-typography($ds-typography-functional-body02semibold, true);
107
107
  }
108
108
  .ds-buddy-menu__addons-list a {
109
109
  @include ds-typography($ds-typography-functional-body02regular, true);
@@ -114,7 +114,7 @@
114
114
  }
115
115
 
116
116
  .ds-buddy-menu__campaign {
117
- margin: 0 -#{ds-spacing-component(x4)};
117
+ margin: 0 -#{ds-spacing-component($ds-sc-x4)};
118
118
  }
119
119
 
120
120
  &.ds-buddy-menu--skola {
@@ -41,7 +41,7 @@ $ds-btn__icon-size: 24px;
41
41
  border: $ds-btn-outlined__border-width solid;
42
42
  border-radius: ds-metrics-border-radius(x1);
43
43
  /* stylelint-disable-next-line */
44
- padding: ds-spacing-component(x3, rem) - ds-px-to-rem($ds-btn-outlined__border-width) ds-spacing-component(x6, rem) - ds-px-to-rem($ds-btn-outlined__border-width);
44
+ padding: ds-spacing-component($ds-sc-x3, rem) - ds-px-to-rem($ds-btn-outlined__border-width) ds-spacing-component($ds-sc-x6, rem) - ds-px-to-rem($ds-btn-outlined__border-width);
45
45
  position: relative;
46
46
  &::before {
47
47
  content: "";
@@ -80,9 +80,11 @@ $ds-btn__icon-size: 24px;
80
80
 
81
81
  .ds-btn--small .ds-btn__inner {
82
82
  padding: ds-px-to-rem(
83
- ds-spacing-component(x2) - $ds-btn-outlined__border-width
83
+ ds-spacing-component($ds-sc-x2) - $ds-btn-outlined__border-width
84
84
  )
85
- ds-px-to-rem(ds-spacing-component(x5) - $ds-btn-outlined__border-width);
85
+ ds-px-to-rem(
86
+ ds-spacing-component($ds-sc-x5) - $ds-btn-outlined__border-width
87
+ );
86
88
  }
87
89
 
88
90
  @include ds-mq-only-breakpoint(mobile) {
@@ -103,7 +105,7 @@ $ds-btn__icon-size: 24px;
103
105
  display: flex;
104
106
  height: ds-px-to-rem($ds-btn__icon-size);
105
107
  width: ds-px-to-rem($ds-btn__icon-size);
106
- margin: ds-spacing-component(0 0 0 x2, rem);
108
+ margin: ds-spacing-component(0 0 0 $ds-sc-x2, rem);
107
109
  svg {
108
110
  fill: currentColor;
109
111
  }
@@ -113,12 +115,12 @@ $ds-btn__icon-size: 24px;
113
115
  .ds-btn--icon-right {
114
116
  .ds-btn__inner {
115
117
  padding-right: ds-px-to-rem(
116
- ds-spacing-component(x5) - $ds-btn-outlined__border-width
118
+ ds-spacing-component($ds-sc-x5) - $ds-btn-outlined__border-width
117
119
  );
118
120
  }
119
121
  &.ds-btn--small .ds-btn__inner {
120
122
  padding-right: ds-px-to-rem(
121
- ds-spacing-component(x4) - $ds-btn-outlined__border-width
123
+ ds-spacing-component($ds-sc-x4) - $ds-btn-outlined__border-width
122
124
  );
123
125
  }
124
126
  }
@@ -127,15 +129,15 @@ $ds-btn__icon-size: 24px;
127
129
  .ds-btn__inner {
128
130
  flex-direction: row-reverse;
129
131
  padding-left: ds-px-to-rem(
130
- ds-spacing-component(x5) - $ds-btn-outlined__border-width
132
+ ds-spacing-component($ds-sc-x5) - $ds-btn-outlined__border-width
131
133
  );
132
134
  .ds-icon {
133
- margin: ds-spacing-component(0 x2 0 0, rem);
135
+ margin: ds-spacing-component(0 $ds-sc-x2 0 0, rem);
134
136
  }
135
137
  }
136
138
  &.ds-btn--small .ds-btn__inner {
137
139
  padding-left: ds-px-to-rem(
138
- ds-spacing-component(x4) - $ds-btn-outlined__border-width
140
+ ds-spacing-component($ds-sc-x4) - $ds-btn-outlined__border-width
139
141
  );
140
142
  }
141
143
  }
@@ -289,37 +291,37 @@ $ds-btn__icon-size: 24px;
289
291
 
290
292
  .ds-btn.ds-force-px {
291
293
  .ds-btn__inner {
292
- padding: ds-spacing-component(x3) - $ds-btn-outlined__border-width
293
- ds-spacing-component(x6) - $ds-btn-outlined__border-width;
294
+ padding: ds-spacing-component($ds-sc-x3) - $ds-btn-outlined__border-width
295
+ ds-spacing-component($ds-sc-x6) - $ds-btn-outlined__border-width;
294
296
  @include ds-typography($ds-typography-detailstandard-button, true);
295
297
  }
296
298
  &.ds-btn--icon-left .ds-btn__inner,
297
299
  &.ds-btn--icon-right .ds-btn__inner {
298
300
  .ds-icon {
299
- margin: ds-spacing-component(0 0 0 x2);
301
+ margin: ds-spacing-component(0 0 0 $ds-sc-x2);
300
302
  height: $ds-btn__icon-size;
301
303
  width: $ds-btn__icon-size;
302
304
  }
303
305
  }
304
306
  &.ds-btn--icon-right .ds-btn__inner {
305
- padding-right: ds-spacing-component(x5)-$ds-btn-outlined__border-width;
307
+ padding-right: ds-spacing-component($ds-sc-x5)-$ds-btn-outlined__border-width;
306
308
  }
307
309
  &.ds-btn--icon-left .ds-btn__inner {
308
- padding-left: ds-spacing-component(x5)-$ds-btn-outlined__border-width;
310
+ padding-left: ds-spacing-component($ds-sc-x5)-$ds-btn-outlined__border-width;
309
311
  .ds-icon {
310
- margin: ds-spacing-component(0 x2 0 0);
312
+ margin: ds-spacing-component(0 $ds-sc-x2 0 0);
311
313
  }
312
314
  }
313
315
  &.ds-btn--small {
314
316
  .ds-btn__inner {
315
- padding: ds-spacing-component(x2)-$ds-btn-outlined__border-width
316
- ds-spacing-component(x5)-$ds-btn-outlined__border-width;
317
+ padding: ds-spacing-component($ds-sc-x2)-$ds-btn-outlined__border-width
318
+ ds-spacing-component($ds-sc-x5)-$ds-btn-outlined__border-width;
317
319
  }
318
320
  &.ds-btn--icon-right .ds-btn__inner {
319
- padding-right: ds-spacing-component(x4)-$ds-btn-outlined__border-width;
321
+ padding-right: ds-spacing-component($ds-sc-x4)-$ds-btn-outlined__border-width;
320
322
  }
321
323
  &.ds-btn--icon-left .ds-btn__inner {
322
- padding-left: ds-spacing-component(x4)-$ds-btn-outlined__border-width;
324
+ padding-left: ds-spacing-component($ds-sc-x4)-$ds-btn-outlined__border-width;
323
325
  }
324
326
  }
325
327
  }