@bonniernews/dn-design-system-web 6.0.8 → 7.0.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 +22 -0
- package/components/teaser-native/teaser-native.scss +1 -1
- package/components/teaser-tipsa/teaser-tipsa.scss +2 -1
- package/foundations/base.scss +1 -2
- package/foundations/cssVariables.scss +3 -0
- package/foundations/fontFamily.scss +10 -0
- package/foundations/helpers/fontFamily.scss +3 -0
- package/foundations/helpers/forward.helpers.scss +1 -0
- package/foundations/helpers/typography.scss +3 -28
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
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
|
+
## 7.0.1 (2023-10-20)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **web:** correct spacing in TeaserTipsa ([#1058](https://github.com/BonnierNews/dn-design-system/issues/1058)) ([56a8865](https://github.com/BonnierNews/dn-design-system/commit/56a8865ae0cdf96a86e9c6f4f45fcc0a75104841))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## 7.0.0 (2023-10-11)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### ⚠ BREAKING CHANGES
|
|
19
|
+
|
|
20
|
+
* **web:** Fonts now depend on css variables, if you do not load the base file it's required to load the file cssVariables.scss. This file replaces colors.scss and shadows.scss.
|
|
21
|
+
|
|
22
|
+
### Code Refactoring
|
|
23
|
+
|
|
24
|
+
* **web:** use css var for font family ([#1056](https://github.com/BonnierNews/dn-design-system/issues/1056)) ([665989b](https://github.com/BonnierNews/dn-design-system/commit/665989b0b51c4ab73e1806e86ae72b21df27ee71))
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
## 6.0.8 (2023-10-10)
|
|
7
29
|
|
|
8
30
|
**Note:** Version bump only for package @bonniernews/dn-design-system-web
|
|
@@ -15,11 +15,12 @@
|
|
|
15
15
|
|
|
16
16
|
@include ds-hover(true) {
|
|
17
17
|
.ds-teaser__title {
|
|
18
|
-
@include ds-underline(2px,
|
|
18
|
+
@include ds-underline(2px, 2px);
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
.ds-teaser__text {
|
|
23
23
|
@include ds-typography($ds-typography-functional-body02regular);
|
|
24
|
+
margin-top: ds-spacing-component($ds-sc-x2);
|
|
24
25
|
}
|
|
25
26
|
}
|
package/foundations/base.scss
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--ds-font--sans: DNSans, Helvetica, Arial, sans-serif;
|
|
3
|
+
--ds-font--serif: DNSerif, Times, "Times New Roman", serif;
|
|
4
|
+
--ds-font--arial: Arial, Helvetica, sans-serif;
|
|
5
|
+
|
|
6
|
+
@supports (font-variation-settings: normal) {
|
|
7
|
+
--ds-font--sans: DNSansVF, Helvetica, Arial, sans-serif;
|
|
8
|
+
--ds-font--serif: DNSerifVF, Times, "Times New Roman", serif;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -8,35 +8,10 @@
|
|
|
8
8
|
@use "../variables/typographyTokensScreenSmall.scss" as *;
|
|
9
9
|
@use "../variables/typographyTokensScreenLarge.scss" as *;
|
|
10
10
|
@use "../variables/typographyTokensScreenExtraLarge.scss" as *;
|
|
11
|
+
@use "fontFamily.scss" as *;
|
|
11
12
|
@forward "../variables/typographyTokensList.scss";
|
|
12
13
|
@forward "../variables/decorations.scss";
|
|
13
14
|
|
|
14
|
-
$ds-font--arial: Arial, Helvetica, sans-serif;
|
|
15
|
-
|
|
16
|
-
@mixin ds-font-sans() {
|
|
17
|
-
& {
|
|
18
|
-
font-family: DNSans, Helvetica, Arial, sans-serif;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
@supports (font-variation-settings: normal) {
|
|
22
|
-
& {
|
|
23
|
-
font-family: DNSansVF, Helvetica, Arial, sans-serif;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
@mixin ds-font-serif() {
|
|
29
|
-
& {
|
|
30
|
-
font-family: DNSerif, Times, "Times New Roman", serif;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
@supports (font-variation-settings: normal) {
|
|
34
|
-
& {
|
|
35
|
-
font-family: DNSerifVF, Times, "Times New Roman", serif;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
15
|
$dsTypographyKeys: (
|
|
41
16
|
fontFamily: "font-family",
|
|
42
17
|
fontSize: "font-size",
|
|
@@ -143,9 +118,9 @@ $dsSerifWeights: (
|
|
|
143
118
|
|
|
144
119
|
@if $key == "fontFamily" {
|
|
145
120
|
@if $fontFamilyType == "serif" {
|
|
146
|
-
|
|
121
|
+
font-family: $ds-font--serif;
|
|
147
122
|
} @else if $fontFamilyType == "sans" {
|
|
148
|
-
|
|
123
|
+
font-family: $ds-font--sans;
|
|
149
124
|
}
|
|
150
125
|
} @else if $key == "fontWeight" {
|
|
151
126
|
$value: string.to-lower-case($value);
|
package/package.json
CHANGED