@bonniernews/dn-design-system-web 25.0.5 → 25.0.6-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/assets/form-field/form-field.scss +6 -6
- package/assets/teaser/teaser.scss +5 -5
- package/components/article-top-image/article-top-image.scss +1 -1
- package/components/badge/badge.scss +5 -5
- package/components/blocked-content/blocked-content.scss +9 -9
- package/components/buddy-menu/buddy-menu.scss +15 -15
- package/components/button/button.scss +49 -33
- package/components/checkbox/checkbox.scss +9 -9
- package/components/disclaimer/disclaimer.scss +10 -10
- package/components/divider/divider.scss +3 -3
- package/components/empty-state/empty-state.scss +3 -3
- package/components/factbox/factbox.scss +13 -13
- package/components/footer/footer.scss +16 -16
- package/components/game-header/game-header.scss +6 -6
- package/components/group-header/group-header.scss +6 -6
- package/components/image-caption/image-caption.scss +3 -3
- package/components/link-box/link-box-item.scss +4 -4
- package/components/link-box/link-box.scss +1 -1
- package/components/list-item/list-item.scss +24 -24
- package/components/modal/modal.scss +4 -4
- package/components/pagination/pagination.scss +4 -4
- package/components/pictogram/pictogram.scss +3 -3
- package/components/profile-header/profile-header.scss +7 -7
- package/components/quote/quote.scss +2 -2
- package/components/radio-button/radio-button.scss +9 -9
- package/components/spinner/spinner.scss +14 -14
- package/components/switch/switch.scss +13 -13
- package/components/tag-header/tag-header.scss +8 -8
- package/components/teaser-centered/teaser-centered.scss +1 -1
- package/components/teaser-footer/teaser-footer.scss +5 -5
- package/components/teaser-image/teaser-image.scss +4 -4
- package/components/teaser-large/teaser-large.scss +7 -6
- package/components/teaser-list-vertical/teaser-list-vertical.scss +8 -8
- package/components/teaser-longlife/teaser-longlife.scss +7 -7
- package/components/teaser-native/teaser-native.scss +19 -19
- package/components/teaser-onsite/teaser-onsite.scss +2 -2
- package/components/teaser-package/teaser-package.scss +2 -2
- package/components/teaser-right-now/teaser-right-now.scss +1 -1
- package/components/teaser-slideshow/teaser-slideshow.scss +3 -3
- package/components/teaser-split/teaser-split.scss +5 -5
- package/components/teaser-standard/teaser-standard.scss +5 -5
- package/components/teaser-swipe-card/teaser-swipe-card.scss +10 -10
- package/components/teaser-tipsa/teaser-tipsa.scss +2 -2
- package/components/text-button/text-button.scss +7 -7
- package/components/text-button-toggle/text-button-toggle.scss +7 -7
- package/components/text-input/text-input.scss +22 -23
- package/components/tooltip/tooltip.scss +5 -5
- package/components/video-caption/video-caption.scss +4 -4
- package/components/vip-badge/vip-badge.scss +10 -10
- package/foundations/colors.scss +6 -18
- package/foundations/cssVariables.scss +1 -0
- package/foundations/gradients.scss +25 -0
- package/foundations/helpers/colors.scss +10 -18
- package/foundations/helpers/forward.helpers.scss +1 -0
- package/foundations/helpers/gradients.scss +33 -0
- package/foundations/helpers/hover.scss +2 -2
- package/foundations/helpers/links.scss +4 -3
- package/foundations/helpers/metrics.scss +4 -6
- package/foundations/helpers/shadows.scss +5 -5
- package/foundations/helpers/typography.scss +11 -12
- package/foundations/shadows.scss +4 -4
- package/foundations/variables/border-width.scss +5 -0
- package/foundations/variables/colorsCssVariables.scss +84 -82
- package/foundations/variables/colorsDnDark.scss +89 -0
- package/foundations/variables/colorsDnLight.scss +89 -0
- package/foundations/variables/gradientsDnDark.scss +46 -0
- package/foundations/variables/gradientsDnLight.scss +46 -0
- package/foundations/variables/gradientsList.scss +4 -0
- package/foundations/variables/radius.scss +6 -0
- package/foundations/variables/shadowsDnDark.scss +30 -0
- package/foundations/variables/shadowsDnLight.scss +30 -0
- package/foundations/variables/shadowsList.scss +4 -0
- package/foundations/variables/spacingBase.scss +1 -0
- package/foundations/variables/spacingBaseList.scss +1 -0
- package/foundations/variables/spacingDetail.scss +3 -16
- package/foundations/variables/spacingDetailList.scss +3 -16
- package/foundations/variables/spacingDetailScreenLarge.scss +3 -16
- package/foundations/variables/typographyLetterSpacing.scss +1 -1
- package/foundations/variables/typographyLineHeight.scss +3 -3
- package/foundations/variables/typographyList.scss +53 -0
- package/foundations/variables/typographyScreenExtraLarge.scss +381 -0
- package/foundations/variables/typographyScreenLarge.scss +381 -0
- package/foundations/variables/{typographyTokensScreenSmall.scss → typographyScreenSmall.scss} +267 -309
- package/package.json +2 -2
- package/preact/components/icon-with-wrapper/icon-with-wrapper.js +86 -84
- package/preact/components/icon-with-wrapper/icon-with-wrapper.js.map +3 -3
- package/types-lib/ds-color.d.ts +97 -93
- package/variables/colors-dark-mode.json +109 -0
- package/variables/colors-light-mode.json +109 -0
- package/variables/gradients-dark-mode.json +58 -0
- package/variables/gradients-light-mode.json +58 -0
- package/variables/typography-list.json +55 -0
- package/foundations/variables/colorsDnDarkTokens.scss +0 -88
- package/foundations/variables/colorsDnLightTokens.scss +0 -87
- package/foundations/variables/decorations.scss +0 -1
- package/foundations/variables/metrics.scss +0 -12
- package/foundations/variables/shadowsDnDarkTokens.scss +0 -34
- package/foundations/variables/shadowsDnLightTokens.scss +0 -34
- package/foundations/variables/shadowsTokensList.scss +0 -4
- package/foundations/variables/typographyTokensList.scss +0 -59
- package/foundations/variables/typographyTokensScreenExtraLarge.scss +0 -422
- package/foundations/variables/typographyTokensScreenLarge.scss +0 -422
- package/tokens/colors-dark-mode.json +0 -106
- package/tokens/colors-light-mode.json +0 -105
- package/tokens/typography-list.json +0 -61
- package/variables/shadows-css-variables.json +0 -6
- /package/{tokens → variables}/icon-list.json +0 -0
|
@@ -6,8 +6,8 @@ $ds-form-field__error-icon-size: 20px;
|
|
|
6
6
|
.ds-form-field__help-text {
|
|
7
7
|
margin-top: ds-spacing($ds-s-050);
|
|
8
8
|
margin-bottom: 0;
|
|
9
|
-
color: $ds-color-text-primary-
|
|
10
|
-
@include ds-typography($ds-typography-
|
|
9
|
+
color: $ds-color-text-primary-subtle;
|
|
10
|
+
@include ds-typography($ds-typography-functional-body-sm);
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
.ds-form-field__error-message {
|
|
@@ -27,11 +27,11 @@ $ds-form-field__error-icon-size: 20px;
|
|
|
27
27
|
line-height: 0;
|
|
28
28
|
flex-shrink: 0;
|
|
29
29
|
svg {
|
|
30
|
-
fill: $ds-color-
|
|
30
|
+
fill: $ds-color-text-critical;
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
span {
|
|
34
|
-
@include ds-typography($ds-typography-
|
|
34
|
+
@include ds-typography($ds-typography-functional-body-sm);
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
|
|
@@ -50,12 +50,12 @@ $ds-form-field__error-icon-size: 20px;
|
|
|
50
50
|
width: $ds-form-field__error-icon-size;
|
|
51
51
|
}
|
|
52
52
|
span {
|
|
53
|
-
@include ds-typography($ds-typography-
|
|
53
|
+
@include ds-typography($ds-typography-functional-body-sm, true);
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
.ds-form-field__help-text {
|
|
59
|
-
@include ds-typography($ds-typography-
|
|
59
|
+
@include ds-typography($ds-typography-functional-body-sm, true);
|
|
60
60
|
}
|
|
61
61
|
}
|
|
@@ -16,7 +16,7 @@ $ds-teaser-standard-image-width-desktop: 196px;
|
|
|
16
16
|
|
|
17
17
|
.ds-teaser {
|
|
18
18
|
display: block;
|
|
19
|
-
background-color: $ds-color-surface-
|
|
19
|
+
background-color: $ds-color-surface-primary;
|
|
20
20
|
text-decoration: none;
|
|
21
21
|
position: relative;
|
|
22
22
|
|
|
@@ -31,7 +31,7 @@ $ds-teaser-standard-image-width-desktop: 196px;
|
|
|
31
31
|
.ds-teaser__vignette {
|
|
32
32
|
display: block;
|
|
33
33
|
margin-bottom: ds-spacing($ds-s-025);
|
|
34
|
-
@include ds-typography($ds-typography-
|
|
34
|
+
@include ds-typography($ds-typography-functional-label-sm) {
|
|
35
35
|
color: $ds-theme-color;
|
|
36
36
|
}
|
|
37
37
|
}
|
|
@@ -57,7 +57,7 @@ $ds-teaser-standard-image-width-desktop: 196px;
|
|
|
57
57
|
.ds-teaser__text {
|
|
58
58
|
// Should be replaced with dynamic spacing layout token when available
|
|
59
59
|
margin: ds-spacing($ds-s-050 0 0);
|
|
60
|
-
@include ds-typography($ds-typography-
|
|
60
|
+
@include ds-typography($ds-typography-detail-medryckare) {
|
|
61
61
|
color: $ds-color-text-primary;
|
|
62
62
|
}
|
|
63
63
|
@include ds-mq-smallest-breakpoint(tablet) {
|
|
@@ -68,7 +68,7 @@ $ds-teaser-standard-image-width-desktop: 196px;
|
|
|
68
68
|
.ds-teaser__sticker {
|
|
69
69
|
display: inline;
|
|
70
70
|
color: $ds-theme-color;
|
|
71
|
-
@include ds-typography($ds-typography-
|
|
71
|
+
@include ds-typography($ds-typography-functional-label-sm);
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
.ds-teaser__media {
|
|
@@ -77,7 +77,7 @@ $ds-teaser-standard-image-width-desktop: 196px;
|
|
|
77
77
|
box-sizing: border-box;
|
|
78
78
|
|
|
79
79
|
&--rounded {
|
|
80
|
-
border-radius: ds-border-radius(
|
|
80
|
+
border-radius: ds-border-radius(012);
|
|
81
81
|
overflow: hidden;
|
|
82
82
|
}
|
|
83
83
|
}
|
|
@@ -7,8 +7,8 @@ $ds-badge__min-size: 8px;
|
|
|
7
7
|
box-sizing: content-box;
|
|
8
8
|
|
|
9
9
|
.ds-badge__inner {
|
|
10
|
-
background-color: $ds-color-
|
|
11
|
-
border: $ds-color-border-
|
|
10
|
+
background-color: $ds-color-surface-brand;
|
|
11
|
+
border: $ds-color-border-primaryinvert-strongest ds-border-width(xs) solid;
|
|
12
12
|
border-radius: 100px;
|
|
13
13
|
display: inline-flex;
|
|
14
14
|
align-items: center;
|
|
@@ -16,15 +16,15 @@ $ds-badge__min-size: 8px;
|
|
|
16
16
|
min-height: ds-px-to-rem($ds-badge__min-size);
|
|
17
17
|
min-width: ds-px-to-rem($ds-badge__min-size);
|
|
18
18
|
padding: ds-spacing($ds-s-025, rem);
|
|
19
|
-
@include ds-typography($ds-typography-
|
|
20
|
-
color: $ds-color-
|
|
19
|
+
@include ds-typography($ds-typography-functional-meta-md, $lineHeight: 0, $fontWeight: $ds-fontweight-semibold) {
|
|
20
|
+
color: $ds-color-neutral-white;
|
|
21
21
|
}
|
|
22
22
|
@at-root .ds-force-px#{&} {
|
|
23
23
|
min-height: $ds-badge__min-size;
|
|
24
24
|
min-width: $ds-badge__min-size;
|
|
25
25
|
padding: ds-spacing($ds-s-025);
|
|
26
26
|
@include ds-typography(
|
|
27
|
-
$ds-typography-
|
|
27
|
+
$ds-typography-functional-meta-md,
|
|
28
28
|
$forcePx: true,
|
|
29
29
|
$lineHeight: 0,
|
|
30
30
|
$fontWeight: $ds-fontweight-semibold
|
|
@@ -2,24 +2,24 @@
|
|
|
2
2
|
@use "../button/button.scss" as *;
|
|
3
3
|
|
|
4
4
|
.ds-blocked-content {
|
|
5
|
-
background-color: $ds-color-surface-
|
|
5
|
+
background-color: $ds-color-surface-primary;
|
|
6
6
|
margin: 0;
|
|
7
7
|
padding: ds-spacing($ds-s-100 0 $ds-s-200);
|
|
8
8
|
|
|
9
9
|
.ds-blocked-content__inner {
|
|
10
10
|
text-align: center;
|
|
11
|
-
border: ds-border-width(
|
|
12
|
-
border-radius: ds-border-radius(
|
|
11
|
+
border: ds-border-width(xxs) solid $ds-color-border-primary;
|
|
12
|
+
border-radius: ds-border-radius(012);
|
|
13
13
|
padding: ds-spacing($ds-s-200 $ds-s-100 $ds-s-100);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
.ds-blocked-content__body {
|
|
17
17
|
margin: ds-spacing(0 0 $ds-s-200);
|
|
18
|
-
@include ds-typography($ds-typography-
|
|
18
|
+
@include ds-typography($ds-typography-functional-body-md) {
|
|
19
19
|
color: $ds-color-text-primary;
|
|
20
20
|
}
|
|
21
21
|
@at-root .ds-force-px#{&} {
|
|
22
|
-
@include ds-typography($ds-typography-
|
|
22
|
+
@include ds-typography($ds-typography-functional-body-md, true);
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
|
|
@@ -33,17 +33,17 @@
|
|
|
33
33
|
.ds-blocked-content__title {
|
|
34
34
|
margin: ds-spacing(0 0 $ds-s-050);
|
|
35
35
|
@include ds-typography(
|
|
36
|
-
$ds-typography-
|
|
37
|
-
$lineHeight: $ds-lineheight-
|
|
36
|
+
$ds-typography-functional-heading-xxs,
|
|
37
|
+
$lineHeight: $ds-lineheight-md,
|
|
38
38
|
$fontWeight: $ds-fontweight-semibold
|
|
39
39
|
) {
|
|
40
40
|
color: $ds-color-text-primary;
|
|
41
41
|
}
|
|
42
42
|
@at-root .ds-force-px#{&} {
|
|
43
43
|
@include ds-typography(
|
|
44
|
-
$ds-typography-
|
|
44
|
+
$ds-typography-functional-heading-xxs,
|
|
45
45
|
$forcePx: true,
|
|
46
|
-
$lineHeight: $ds-lineheight-
|
|
46
|
+
$lineHeight: $ds-lineheight-md,
|
|
47
47
|
$fontWeight: $ds-fontweight-semibold
|
|
48
48
|
);
|
|
49
49
|
}
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
.ds-buddy-menu__inner {
|
|
27
|
-
background-color: $ds-color-surface-elevated;
|
|
28
|
-
border-radius: ds-border-radius(
|
|
29
|
-
box-shadow: ds-shadow-get-box-shadow($ds-shadow-elevation-
|
|
27
|
+
background-color: $ds-color-surface-primary-elevated;
|
|
28
|
+
border-radius: ds-border-radius(025);
|
|
29
|
+
box-shadow: ds-shadow-get-box-shadow($ds-shadow-elevation-sm);
|
|
30
30
|
position: relative;
|
|
31
31
|
z-index: 1;
|
|
32
32
|
}
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
.ds-buddy-menu__greeting {
|
|
51
51
|
margin: ds-spacing(0 0 $ds-s-100);
|
|
52
52
|
display: block;
|
|
53
|
-
@include ds-typography($ds-typography-
|
|
53
|
+
@include ds-typography($ds-typography-functional-heading-sm) {
|
|
54
54
|
color: $ds-color-text-primary;
|
|
55
55
|
}
|
|
56
56
|
}
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
.ds-buddy-menu__addons-title,
|
|
59
59
|
.ds-buddy-menu__links-title {
|
|
60
60
|
margin: ds-spacing(0 0 $ds-s-025);
|
|
61
|
-
@include ds-typography($ds-typography-
|
|
61
|
+
@include ds-typography($ds-typography-functional-body-md, $fontWeight: $ds-fontweight-semibold) {
|
|
62
62
|
color: $ds-color-text-primary;
|
|
63
63
|
}
|
|
64
64
|
}
|
|
@@ -71,21 +71,21 @@
|
|
|
71
71
|
margin: ds-spacing(0 0 $ds-s-100);
|
|
72
72
|
a {
|
|
73
73
|
@include ds-link($ds-link-list);
|
|
74
|
-
@include ds-typography($ds-typography-
|
|
75
|
-
color: $ds-color-text-primary-
|
|
74
|
+
@include ds-typography($ds-typography-functional-body-md) {
|
|
75
|
+
color: $ds-color-text-primary-subtle;
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
.ds-buddy-menu__account-level {
|
|
80
80
|
margin: ds-spacing(0 0 $ds-s-100);
|
|
81
81
|
display: block;
|
|
82
|
-
@include ds-typography($ds-typography-
|
|
83
|
-
color: $ds-color-text-primary-
|
|
82
|
+
@include ds-typography($ds-typography-functional-body-md) {
|
|
83
|
+
color: $ds-color-text-primary-subtle;
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
.ds-buddy-menu__links-list {
|
|
87
|
-
border-bottom-left-radius: ds-border-radius(
|
|
88
|
-
border-bottom-right-radius: ds-border-radius(
|
|
87
|
+
border-bottom-left-radius: ds-border-radius(025);
|
|
88
|
+
border-bottom-right-radius: ds-border-radius(025);
|
|
89
89
|
overflow: hidden;
|
|
90
90
|
margin: 0;
|
|
91
91
|
padding: ds-spacing(0 $ds-s-100);
|
|
@@ -93,18 +93,18 @@
|
|
|
93
93
|
|
|
94
94
|
&.ds-force-px {
|
|
95
95
|
.ds-buddy-menu__greeting {
|
|
96
|
-
@include ds-typography($ds-typography-
|
|
96
|
+
@include ds-typography($ds-typography-functional-heading-sm, true);
|
|
97
97
|
}
|
|
98
98
|
.ds-buddy-menu__account-title,
|
|
99
99
|
.ds-buddy-menu__addons-title,
|
|
100
100
|
.ds-buddy-menu__links-title {
|
|
101
|
-
@include ds-typography($ds-typography-
|
|
101
|
+
@include ds-typography($ds-typography-functional-body-md, $forcePx: true, $fontWeight: $ds-fontweight-semibold);
|
|
102
102
|
}
|
|
103
103
|
.ds-buddy-menu__addons-list a {
|
|
104
|
-
@include ds-typography($ds-typography-
|
|
104
|
+
@include ds-typography($ds-typography-functional-body-md, true);
|
|
105
105
|
}
|
|
106
106
|
.ds-buddy-menu__account-level {
|
|
107
|
-
@include ds-typography($ds-typography-
|
|
107
|
+
@include ds-typography($ds-typography-functional-body-md, true);
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
@use "../icon-sprite/icon-sprite.scss";
|
|
3
3
|
@use "../spinner/spinner.scss" as *;
|
|
4
4
|
|
|
5
|
-
$ds-btn-outlined__border-width: ds-border-width(
|
|
5
|
+
$ds-btn-outlined__border-width: ds-border-width(xxs);
|
|
6
6
|
@function _btn-brdr($value, $rem: false) {
|
|
7
7
|
$value: (ds-strip-unit($value) - ds-strip-unit($ds-btn-outlined__border-width)) * 1px;
|
|
8
8
|
@if $rem {
|
|
@@ -12,14 +12,14 @@ $ds-btn-outlined__border-width: ds-border-width(x1);
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.ds-btn {
|
|
15
|
-
--ds-btn__background-color: #{$ds-color-surface-
|
|
15
|
+
--ds-btn__background-color: #{$ds-color-surface-primary};
|
|
16
16
|
--ds-btn__border-color: transparent;
|
|
17
|
-
--ds-btn__outline-color: #{$ds-color-border-
|
|
17
|
+
--ds-btn__outline-color: #{$ds-color-border-primary-strongest};
|
|
18
18
|
--ds-btn__icon-size: #{ds-px-to-rem(24px)};
|
|
19
19
|
|
|
20
20
|
cursor: pointer;
|
|
21
21
|
border: $ds-btn-outlined__border-width solid var(--ds-btn__border-color);
|
|
22
|
-
border-radius: ds-border-radius(
|
|
22
|
+
border-radius: ds-border-radius(012);
|
|
23
23
|
position: relative;
|
|
24
24
|
background-color: var(--ds-btn__background-color);
|
|
25
25
|
color: var(--ds-btn__color);
|
|
@@ -34,11 +34,11 @@ $ds-btn-outlined__border-width: ds-border-width(x1);
|
|
|
34
34
|
&.ds-btn--primary {
|
|
35
35
|
&.ds-btn--default,
|
|
36
36
|
&.ds-btn--elevated {
|
|
37
|
-
--ds-btn__background-color: #{$ds-color-
|
|
38
|
-
--ds-btn__color: #{$ds-color-text-
|
|
37
|
+
--ds-btn__background-color: #{$ds-color-surface-primaryinvert};
|
|
38
|
+
--ds-btn__color: #{$ds-color-text-primaryinvert};
|
|
39
39
|
}
|
|
40
40
|
&.ds-btn--outline {
|
|
41
|
-
--ds-btn__border-color: #{$ds-color-
|
|
41
|
+
--ds-btn__border-color: #{$ds-color-border-primary-strongest};
|
|
42
42
|
--ds-btn__color: #{$ds-color-text-primary};
|
|
43
43
|
}
|
|
44
44
|
&.ds-btn--transparent {
|
|
@@ -49,11 +49,11 @@ $ds-btn-outlined__border-width: ds-border-width(x1);
|
|
|
49
49
|
&.ds-btn--secondary {
|
|
50
50
|
&.ds-btn--default,
|
|
51
51
|
&.ds-btn--elevated {
|
|
52
|
-
--ds-btn__background-color: #{$ds-color-
|
|
52
|
+
--ds-btn__background-color: #{$ds-color-surface-primary-raised-strong};
|
|
53
53
|
--ds-btn__color: #{$ds-color-text-primary};
|
|
54
54
|
}
|
|
55
55
|
&.ds-btn--outline {
|
|
56
|
-
--ds-btn__border-color: #{$ds-color-border-primary-
|
|
56
|
+
--ds-btn__border-color: #{$ds-color-border-primary-strong};
|
|
57
57
|
--ds-btn__color: #{$ds-color-text-primary};
|
|
58
58
|
}
|
|
59
59
|
&.ds-btn--transparent {
|
|
@@ -62,14 +62,14 @@ $ds-btn-outlined__border-width: ds-border-width(x1);
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
&.ds-btn--brand {
|
|
65
|
-
--ds-btn__outline-color: #{$ds-color-border-
|
|
65
|
+
--ds-btn__outline-color: #{$ds-color-border-brand};
|
|
66
66
|
&.ds-btn--default,
|
|
67
67
|
&.ds-btn--elevated {
|
|
68
|
-
--ds-btn__background-color: #{$ds-color-
|
|
69
|
-
--ds-btn__color: #{$ds-color-
|
|
68
|
+
--ds-btn__background-color: #{$ds-color-surface-brand};
|
|
69
|
+
--ds-btn__color: #{$ds-color-neutral-white};
|
|
70
70
|
}
|
|
71
71
|
&.ds-btn--outline {
|
|
72
|
-
--ds-btn__border-color: #{$ds-color-
|
|
72
|
+
--ds-btn__border-color: #{$ds-color-surface-brand};
|
|
73
73
|
--ds-btn__color: #{$ds-color-text-brand};
|
|
74
74
|
}
|
|
75
75
|
&.ds-btn--transparent {
|
|
@@ -78,27 +78,27 @@ $ds-btn-outlined__border-width: ds-border-width(x1);
|
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
&.ds-btn--staticWhite {
|
|
81
|
-
--ds-btn__outline-color: #{$ds-color-
|
|
81
|
+
--ds-btn__outline-color: #{$ds-color-neutral-white};
|
|
82
82
|
&.ds-btn--default,
|
|
83
83
|
&.ds-btn--elevated {
|
|
84
|
-
--ds-btn__background-color: #{$ds-color-
|
|
85
|
-
--ds-btn__color: #{$ds-color-
|
|
84
|
+
--ds-btn__background-color: #{$ds-color-neutral-white};
|
|
85
|
+
--ds-btn__color: #{$ds-color-neutral-black};
|
|
86
86
|
}
|
|
87
87
|
&.ds-btn--outline {
|
|
88
88
|
--ds-btn__background-color: transparent;
|
|
89
|
-
--ds-btn__border-color: #{$ds-color-
|
|
90
|
-
--ds-btn__color: #{$ds-color-
|
|
89
|
+
--ds-btn__border-color: #{$ds-color-neutral-white};
|
|
90
|
+
--ds-btn__color: #{$ds-color-neutral-white};
|
|
91
91
|
}
|
|
92
92
|
&.ds-btn--transparent {
|
|
93
|
-
--ds-btn__color: #{$ds-color-
|
|
93
|
+
--ds-btn__color: #{$ds-color-neutral-white};
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
&.ds-btn--toggle.ds-btn--selected:not(.ds-btn--icon-only) {
|
|
98
98
|
--ds-btn__background-color: transparent;
|
|
99
99
|
--ds-btn__color: #{$ds-color-text-primary};
|
|
100
|
-
--ds-btn__border-color: #{$ds-color-
|
|
101
|
-
--ds-btn__outline-color: #{$ds-color-border-
|
|
100
|
+
--ds-btn__border-color: #{$ds-color-border-primary-strongest};
|
|
101
|
+
--ds-btn__outline-color: #{$ds-color-border-primary-strongest};
|
|
102
102
|
}
|
|
103
103
|
&.ds-btn--transparent {
|
|
104
104
|
--ds-btn__background-color: transparent;
|
|
@@ -109,42 +109,54 @@ $ds-btn-outlined__border-width: ds-border-width(x1);
|
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
&.ds-btn--elevated {
|
|
112
|
-
box-shadow: ds-shadow-get-box-shadow($ds-shadow-elevation-
|
|
112
|
+
box-shadow: ds-shadow-get-box-shadow($ds-shadow-elevation-md);
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
&.ds-btn--small {
|
|
116
116
|
--ds-btn__icon-size: #{ds-px-to-rem(20px)};
|
|
117
117
|
--ds-btn__icon-padding: #{_btn-brdr(ds-spacing($ds-s-050), true)};
|
|
118
118
|
padding: _btn-brdr(ds-spacing($ds-s-025), true) _btn-brdr(ds-spacing($ds-s-075), true);
|
|
119
|
-
@include ds-typography($ds-typography-
|
|
119
|
+
@include ds-typography($token: $ds-typography-functional-body-sm, $fontWeight: $ds-fontweight-semibold);
|
|
120
120
|
@at-root .ds-force-px#{&} {
|
|
121
121
|
--ds-btn__icon-size: 20px;
|
|
122
122
|
--ds-btn__icon-padding: #{_btn-brdr(ds-spacing($ds-s-050))};
|
|
123
123
|
padding: _btn-brdr(ds-spacing($ds-s-025)) _btn-brdr(ds-spacing($ds-s-075));
|
|
124
|
-
@include ds-typography(
|
|
124
|
+
@include ds-typography(
|
|
125
|
+
$token: $ds-typography-functional-body-sm,
|
|
126
|
+
$fontWeight: $ds-fontweight-semibold,
|
|
127
|
+
$forcePx: true
|
|
128
|
+
);
|
|
125
129
|
}
|
|
126
130
|
}
|
|
127
131
|
|
|
128
132
|
&.ds-btn--medium {
|
|
129
133
|
--ds-btn__icon-padding: #{_btn-brdr(ds-spacing($ds-s-100), true)};
|
|
130
134
|
padding: _btn-brdr(ds-spacing($ds-s-050), true) _btn-brdr(ds-spacing($ds-s-125), true);
|
|
131
|
-
@include ds-typography($ds-typography-
|
|
135
|
+
@include ds-typography($token: $ds-typography-functional-body-md, $fontWeight: $ds-fontweight-semibold);
|
|
132
136
|
@at-root .ds-force-px#{&} {
|
|
133
137
|
--ds-btn__icon-padding: #{_btn-brdr(ds-spacing($ds-s-100))};
|
|
134
138
|
padding: _btn-brdr(ds-spacing($ds-s-050)) _btn-brdr(ds-spacing($ds-s-125));
|
|
135
|
-
@include ds-typography(
|
|
139
|
+
@include ds-typography(
|
|
140
|
+
$token: $ds-typography-functional-body-md,
|
|
141
|
+
$fontWeight: $ds-fontweight-semibold,
|
|
142
|
+
$forcePx: true
|
|
143
|
+
);
|
|
136
144
|
}
|
|
137
145
|
}
|
|
138
146
|
|
|
139
147
|
&.ds-btn--large {
|
|
140
148
|
--ds-btn__icon-padding: #{_btn-brdr(ds-spacing($ds-s-125), true)};
|
|
141
149
|
padding: _btn-brdr(ds-spacing($ds-s-075), true) _btn-brdr(ds-spacing($ds-s-150), true);
|
|
142
|
-
@include ds-typography($ds-typography-
|
|
150
|
+
@include ds-typography($token: $ds-typography-functional-body-md, $fontWeight: $ds-fontweight-semibold);
|
|
143
151
|
|
|
144
152
|
@at-root .ds-force-px#{&} {
|
|
145
153
|
--ds-btn__icon-padding: #{_btn-brdr(ds-spacing($ds-s-125))};
|
|
146
154
|
padding: _btn-brdr(ds-spacing($ds-s-075)) _btn-brdr(ds-spacing($ds-s-150));
|
|
147
|
-
@include ds-typography(
|
|
155
|
+
@include ds-typography(
|
|
156
|
+
$token: $ds-typography-functional-body-md,
|
|
157
|
+
$fontWeight: $ds-fontweight-semibold,
|
|
158
|
+
$forcePx: true
|
|
159
|
+
);
|
|
148
160
|
}
|
|
149
161
|
}
|
|
150
162
|
|
|
@@ -152,12 +164,16 @@ $ds-btn-outlined__border-width: ds-border-width(x1);
|
|
|
152
164
|
--ds-btn__icon-size: #{ds-px-to-rem(32px)};
|
|
153
165
|
--ds-btn__icon-padding: #{_btn-brdr(ds-spacing($ds-s-200), true) - ds-px-to-rem(4px)};
|
|
154
166
|
padding: _btn-brdr(ds-spacing($ds-s-075), true) _btn-brdr(ds-spacing($ds-s-200), true);
|
|
155
|
-
@include ds-typography($ds-typography-
|
|
167
|
+
@include ds-typography($token: $ds-typography-functional-body-lg, $fontWeight: $ds-fontweight-semibold);
|
|
156
168
|
@at-root .ds-force-px#{&} {
|
|
157
169
|
--ds-btn__icon-size: 32px;
|
|
158
170
|
--ds-btn__icon-padding: #{_btn-brdr(ds-spacing($ds-s-200)) - 4px};
|
|
159
171
|
padding: _btn-brdr(ds-spacing($ds-s-075)) _btn-brdr(ds-spacing($ds-s-200));
|
|
160
|
-
@include ds-typography(
|
|
172
|
+
@include ds-typography(
|
|
173
|
+
$token: $ds-typography-functional-body-lg,
|
|
174
|
+
$fontWeight: $ds-fontweight-semibold,
|
|
175
|
+
$forcePx: true
|
|
176
|
+
);
|
|
161
177
|
}
|
|
162
178
|
}
|
|
163
179
|
|
|
@@ -166,7 +182,7 @@ $ds-btn-outlined__border-width: ds-border-width(x1);
|
|
|
166
182
|
}
|
|
167
183
|
|
|
168
184
|
&:focus-visible {
|
|
169
|
-
outline: ds-border-width(
|
|
185
|
+
outline: ds-border-width(xs) solid var(--ds-btn__outline-color);
|
|
170
186
|
outline-offset: 2px;
|
|
171
187
|
}
|
|
172
188
|
|
|
@@ -299,9 +315,9 @@ $ds-btn-outlined__border-width: ds-border-width(x1);
|
|
|
299
315
|
// we have to override spinner styling since spinner variant is based on "off" button variant
|
|
300
316
|
&.ds-btn--selected.ds-loading:not(.ds-btn--icon-only) {
|
|
301
317
|
.ds-spinner__inner {
|
|
302
|
-
border-top-color: $ds-color-
|
|
318
|
+
border-top-color: $ds-color-text-primary;
|
|
303
319
|
&::before {
|
|
304
|
-
border-color: $ds-color-
|
|
320
|
+
border-color: $ds-color-text-primary;
|
|
305
321
|
}
|
|
306
322
|
}
|
|
307
323
|
}
|
|
@@ -21,7 +21,7 @@ $ds-checkbox__icon-size: 24px;
|
|
|
21
21
|
&::before {
|
|
22
22
|
content: "";
|
|
23
23
|
position: absolute;
|
|
24
|
-
border-radius: ds-border-radius(
|
|
24
|
+
border-radius: ds-border-radius(012);
|
|
25
25
|
top: 0;
|
|
26
26
|
left: 0;
|
|
27
27
|
right: 0;
|
|
@@ -38,11 +38,11 @@ $ds-checkbox__icon-size: 24px;
|
|
|
38
38
|
|
|
39
39
|
.ds-checkbox__text {
|
|
40
40
|
margin: ds-spacing(0 0 0 $ds-s-050, rem);
|
|
41
|
-
@include ds-typography($ds-typography-
|
|
41
|
+
@include ds-typography($ds-typography-functional-body-md);
|
|
42
42
|
|
|
43
43
|
@at-root .ds-force-px#{&} {
|
|
44
44
|
margin: ds-spacing(0 0 0 $ds-s-050);
|
|
45
|
-
@include ds-typography($ds-typography-
|
|
45
|
+
@include ds-typography($ds-typography-functional-body-md, true);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
|
|
@@ -52,7 +52,7 @@ $ds-checkbox__icon-size: 24px;
|
|
|
52
52
|
position: relative;
|
|
53
53
|
height: ds-px-to-rem($ds-checkbox__icon-size);
|
|
54
54
|
width: ds-px-to-rem($ds-checkbox__icon-size);
|
|
55
|
-
color: $ds-color-
|
|
55
|
+
color: $ds-color-text-primary;
|
|
56
56
|
@at-root .ds-force-px#{&} {
|
|
57
57
|
height: $ds-checkbox__icon-size;
|
|
58
58
|
width: $ds-checkbox__icon-size;
|
|
@@ -87,8 +87,8 @@ $ds-checkbox__icon-size: 24px;
|
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
&:focus-visible + .ds-checkbox__inner {
|
|
90
|
-
border-radius: ds-border-radius(
|
|
91
|
-
outline: ds-border-width(
|
|
90
|
+
border-radius: ds-border-radius(012);
|
|
91
|
+
outline: ds-border-width(xs) solid $ds-color-border-primary-strongest;
|
|
92
92
|
outline-offset: 2px;
|
|
93
93
|
}
|
|
94
94
|
}
|
|
@@ -96,7 +96,7 @@ $ds-checkbox__icon-size: 24px;
|
|
|
96
96
|
&.ds-form-field__error,
|
|
97
97
|
.invalid {
|
|
98
98
|
.ds-checkbox__inner .ds-checkbox__icon {
|
|
99
|
-
color: $ds-color-
|
|
99
|
+
color: $ds-color-text-critical;
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
.ds-form-field__error-message {
|
|
@@ -116,10 +116,10 @@ $ds-checkbox__icon-size: 24px;
|
|
|
116
116
|
.ds-checkbox input:disabled + .ds-checkbox__inner {
|
|
117
117
|
cursor: not-allowed;
|
|
118
118
|
.ds-checkbox__icon {
|
|
119
|
-
color: $ds-color-
|
|
119
|
+
color: $ds-color-text-primary-disabled;
|
|
120
120
|
}
|
|
121
121
|
.ds-checkbox__text {
|
|
122
|
-
color: $ds-color-text-disabled;
|
|
122
|
+
color: $ds-color-text-primary-disabled;
|
|
123
123
|
}
|
|
124
124
|
&::before {
|
|
125
125
|
background-color: unset;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
@use "../icon-sprite/icon-sprite.scss";
|
|
3
3
|
|
|
4
4
|
$ds-disclaimer__icon-size: 20px;
|
|
5
|
-
$ds-btn-outlined__border-width: ds-border-width(
|
|
5
|
+
$ds-btn-outlined__border-width: ds-border-width(xxs);
|
|
6
6
|
|
|
7
7
|
.ds-disclaimer {
|
|
8
8
|
padding-bottom: ds-spacing($ds-s-100);
|
|
@@ -10,7 +10,7 @@ $ds-btn-outlined__border-width: ds-border-width(x1);
|
|
|
10
10
|
|
|
11
11
|
.ds-disclaimer__body-html,
|
|
12
12
|
.ds-disclaimer__icon-wrapper {
|
|
13
|
-
background-color: $ds-color-surface-raised;
|
|
13
|
+
background-color: $ds-color-surface-primary-raised-soft;
|
|
14
14
|
padding: ds-spacing($ds-s-075 $ds-s-100);
|
|
15
15
|
}
|
|
16
16
|
|
|
@@ -22,12 +22,12 @@ $ds-btn-outlined__border-width: ds-border-width(x1);
|
|
|
22
22
|
.ds-disclaimer__body-html {
|
|
23
23
|
margin: 0;
|
|
24
24
|
flex-grow: 1;
|
|
25
|
-
@include ds-typography($ds-typography-
|
|
26
|
-
color: $ds-color-text-primary-
|
|
25
|
+
@include ds-typography($ds-typography-functional-body-sm) {
|
|
26
|
+
color: $ds-color-text-primary-subtle;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
@at-root .ds-force-px#{&} {
|
|
30
|
-
@include ds-typography($ds-typography-
|
|
30
|
+
@include ds-typography($ds-typography-functional-body-sm, true);
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
a {
|
|
@@ -35,11 +35,11 @@ $ds-btn-outlined__border-width: ds-border-width(x1);
|
|
|
35
35
|
}
|
|
36
36
|
b,
|
|
37
37
|
strong {
|
|
38
|
-
@include ds-typography($ds-typography-
|
|
38
|
+
@include ds-typography($ds-typography-functional-body-sm, $fontWeight: $ds-fontweight-semibold) {
|
|
39
39
|
color: $ds-color-text-primary;
|
|
40
40
|
}
|
|
41
41
|
@at-root .ds-force-px#{&} {
|
|
42
|
-
@include ds-typography($ds-typography-
|
|
42
|
+
@include ds-typography($ds-typography-functional-body-sm, $forcePx: true, $fontWeight: $ds-fontweight-semibold);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
}
|
|
@@ -50,7 +50,7 @@ $ds-btn-outlined__border-width: ds-border-width(x1);
|
|
|
50
50
|
height: ds-px-to-rem($ds-disclaimer__icon-size);
|
|
51
51
|
width: ds-px-to-rem($ds-disclaimer__icon-size);
|
|
52
52
|
margin: 0;
|
|
53
|
-
color: $ds-color-
|
|
53
|
+
color: $ds-color-text-primary;
|
|
54
54
|
@at-root .ds-force-px#{&} {
|
|
55
55
|
height: $ds-disclaimer__icon-size;
|
|
56
56
|
width: $ds-disclaimer__icon-size;
|
|
@@ -72,14 +72,14 @@ $ds-btn-outlined__border-width: ds-border-width(x1);
|
|
|
72
72
|
&.ds-disclaimer--native {
|
|
73
73
|
.ds-disclaimer__body-html,
|
|
74
74
|
.ds-disclaimer__icon-wrapper {
|
|
75
|
-
background-color: $ds-color-
|
|
75
|
+
background-color: $ds-color-surface-ad-yellow;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
.ds-icon,
|
|
79
79
|
.ds-disclaimer__body-html,
|
|
80
80
|
.ds-disclaimer__body-html b,
|
|
81
81
|
.ds-disclaimer__body-html strong {
|
|
82
|
-
color: $ds-color-
|
|
82
|
+
color: $ds-color-neutral-black;
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
margin: 0 auto;
|
|
9
9
|
border: none;
|
|
10
10
|
background-color: $ds-color-border-primary;
|
|
11
|
-
height: ds-border-width(
|
|
11
|
+
height: ds-border-width(xxs);
|
|
12
12
|
width: 100%;
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
background-color: $ds-color-border-primary;
|
|
18
18
|
}
|
|
19
19
|
.ds-divider--medium hr {
|
|
20
|
-
background-color: $ds-color-border-primary-
|
|
20
|
+
background-color: $ds-color-border-primary-strong;
|
|
21
21
|
}
|
|
22
22
|
.ds-divider--strong hr {
|
|
23
|
-
background-color: $ds-color-border-primary-
|
|
23
|
+
background-color: $ds-color-border-primary-strongest;
|
|
24
24
|
}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
h2 {
|
|
15
15
|
margin: 0;
|
|
16
|
-
@include ds-typography($ds-typography-
|
|
16
|
+
@include ds-typography($ds-typography-functional-heading-sm) {
|
|
17
17
|
color: $ds-color-text-primary;
|
|
18
18
|
}
|
|
19
19
|
}
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
.ds-empty-state__body {
|
|
22
22
|
display: block;
|
|
23
23
|
margin-top: ds-spacing($ds-s-025);
|
|
24
|
-
@include ds-typography($ds-typography-
|
|
25
|
-
color: $ds-color-text-primary-
|
|
24
|
+
@include ds-typography($ds-typography-functional-body-md) {
|
|
25
|
+
color: $ds-color-text-primary-subtle;
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
}
|