@bonniernews/dn-design-system-web 9.1.1 → 10.0.0-beta.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 +27 -0
- package/components/blocked-content/blocked-content.js +1 -1
- package/components/blocked-content/blocked-content.njk +0 -1
- package/components/buddy-menu/buddy-menu.scss +2 -2
- package/components/button/README.md +0 -1
- package/components/button/button.njk +6 -11
- package/components/button/button.scss +141 -216
- package/components/button-toggle/README.md +0 -1
- package/components/button-toggle/button-toggle.njk +5 -8
- package/components/button-toggle/button-toggle.scss +115 -144
- package/components/byline/byline.njk +1 -2
- package/components/factbox/factbox.njk +2 -4
- package/components/factbox/factbox.scss +2 -2
- package/components/floating-button/floating-button.njk +5 -9
- package/components/floating-button/floating-button.scss +46 -53
- package/components/group-header/group-header.scss +21 -6
- package/components/icon-button/icon-button.njk +6 -8
- package/components/icon-button/icon-button.scss +93 -111
- package/components/icon-button-toggle/icon-button-toggle.scss +3 -5
- package/components/list-item/list-item.njk +0 -1
- package/components/modal/modal.scss +2 -2
- package/components/pictogram/pictogram.njk +1 -1
- package/components/teaser-list-swipe/teaser-list-swipe.scss +2 -2
- package/components/text-button/README.md +0 -1
- package/components/text-button/text-button.njk +7 -12
- package/components/text-button/text-button.scss +45 -61
- package/components/text-button-toggle/README.md +0 -1
- package/components/text-button-toggle/text-button-toggle.njk +7 -10
- package/components/text-button-toggle/text-button-toggle.scss +50 -60
- package/foundations/helpers/metrics.scss +1 -0
- package/package.json +1 -1
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
@use "../icon-sprite/icon-sprite.scss";
|
|
3
3
|
@use "../spinner/spinner.scss" as *;
|
|
4
4
|
|
|
5
|
-
$ds-text-btn-toggle__min-clickable-area: 0;
|
|
6
5
|
$ds-text-btn-toggle__underline-offset: 2px;
|
|
7
6
|
$ds-text-btn-toggle__icon-size: 24px;
|
|
8
7
|
|
|
@@ -21,13 +20,12 @@ $ds-text-btn-toggle__icon-size: 24px;
|
|
|
21
20
|
|
|
22
21
|
.ds-text-btn-toggle {
|
|
23
22
|
cursor: pointer;
|
|
24
|
-
background-color: transparent;
|
|
25
23
|
border: 0;
|
|
26
|
-
min-width: $ds-text-btn-toggle__min-clickable-area;
|
|
27
|
-
min-height: $ds-text-btn-toggle__min-clickable-area;
|
|
28
24
|
display: inline-flex;
|
|
29
25
|
align-items: center;
|
|
30
26
|
justify-content: center;
|
|
27
|
+
background-color: transparent;
|
|
28
|
+
border-radius: ds-border-radius(x1);
|
|
31
29
|
padding: 0;
|
|
32
30
|
position: relative;
|
|
33
31
|
|
|
@@ -36,11 +34,8 @@ $ds-text-btn-toggle__icon-size: 24px;
|
|
|
36
34
|
}
|
|
37
35
|
|
|
38
36
|
&:focus-visible {
|
|
39
|
-
outline:
|
|
40
|
-
|
|
41
|
-
outline: ds-border-width(x2) solid $ds-color-border-focus-02;
|
|
42
|
-
outline-offset: 2px;
|
|
43
|
-
}
|
|
37
|
+
outline: ds-border-width(x2) solid $ds-color-border-focus-02;
|
|
38
|
+
outline-offset: 2px;
|
|
44
39
|
}
|
|
45
40
|
|
|
46
41
|
@at-root a#{&} {
|
|
@@ -49,69 +44,68 @@ $ds-text-btn-toggle__icon-size: 24px;
|
|
|
49
44
|
text-decoration: none;
|
|
50
45
|
}
|
|
51
46
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
border-radius: inherit;
|
|
63
|
-
pointer-events: none;
|
|
64
|
-
position: absolute;
|
|
65
|
-
top: 0;
|
|
66
|
-
left: 0;
|
|
67
|
-
bottom: 0;
|
|
68
|
-
right: 0;
|
|
69
|
-
}
|
|
47
|
+
&::before {
|
|
48
|
+
content: "";
|
|
49
|
+
border-radius: inherit;
|
|
50
|
+
pointer-events: none;
|
|
51
|
+
position: absolute;
|
|
52
|
+
top: 0;
|
|
53
|
+
left: 0;
|
|
54
|
+
bottom: 0;
|
|
55
|
+
right: 0;
|
|
56
|
+
}
|
|
70
57
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
fill: currentColor;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
58
|
+
&::after {
|
|
59
|
+
content: "";
|
|
60
|
+
position: absolute;
|
|
61
|
+
min-width: $ds-btn__min-clickable-area;
|
|
62
|
+
min-height: $ds-btn__min-clickable-area;
|
|
63
|
+
width: 100%;
|
|
64
|
+
}
|
|
81
65
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
66
|
+
.ds-icon {
|
|
67
|
+
display: flex;
|
|
68
|
+
height: ds-px-to-rem($ds-text-btn-toggle__icon-size);
|
|
69
|
+
width: ds-px-to-rem($ds-text-btn-toggle__icon-size);
|
|
70
|
+
margin: ds-spacing(0 $ds-s-050 0 0);
|
|
71
|
+
color: $ds-color-icon-primary;
|
|
72
|
+
svg {
|
|
73
|
+
fill: currentColor;
|
|
89
74
|
}
|
|
75
|
+
}
|
|
90
76
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
display: none;
|
|
77
|
+
.ds-text-btn-toggle__text {
|
|
78
|
+
@include ds-typography($ds-typography-functional-body02regular);
|
|
79
|
+
@at-root .ds-force-px#{&} {
|
|
80
|
+
@include ds-typography($ds-typography-functional-body02regular, true);
|
|
96
81
|
}
|
|
82
|
+
color: $ds-color-text-primary;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.ds-text-btn-toggle__off {
|
|
86
|
+
display: flex;
|
|
87
|
+
}
|
|
88
|
+
.ds-text-btn-toggle__on {
|
|
89
|
+
display: none;
|
|
97
90
|
}
|
|
98
91
|
|
|
99
92
|
@include ds-hover() {
|
|
100
|
-
&:hover:not(.ds-loading) .ds-text-btn-
|
|
101
|
-
|
|
93
|
+
&:hover:not(.ds-loading):not(:disabled) .ds-text-btn-toggle__text {
|
|
94
|
+
text-decoration: underline;
|
|
95
|
+
text-underline-offset: $ds-text-btn-toggle__underline-offset;
|
|
102
96
|
}
|
|
103
97
|
}
|
|
104
|
-
&:active:not(.ds-loading)
|
|
105
|
-
|
|
98
|
+
&:active:not(:disabled):not(.ds-loading) {
|
|
99
|
+
opacity: $ds-opacity-component-disabled;
|
|
106
100
|
}
|
|
107
|
-
&:disabled:not(.ds-loading)
|
|
101
|
+
&:disabled:not(.ds-loading) {
|
|
108
102
|
@include ds-text-btn-toggle-disabled;
|
|
109
103
|
}
|
|
110
104
|
|
|
111
105
|
@include ds-loading();
|
|
112
106
|
}
|
|
113
107
|
|
|
114
|
-
.ds-text-btn-toggle--selected
|
|
108
|
+
.ds-text-btn-toggle--selected {
|
|
115
109
|
.ds-text-btn-toggle__on {
|
|
116
110
|
display: flex;
|
|
117
111
|
}
|
|
@@ -121,12 +115,8 @@ $ds-text-btn-toggle__icon-size: 24px;
|
|
|
121
115
|
}
|
|
122
116
|
|
|
123
117
|
.ds-force-px {
|
|
124
|
-
&.ds-text-btn-toggle .ds-
|
|
118
|
+
&.ds-text-btn-toggle .ds-icon {
|
|
125
119
|
height: $ds-text-btn-toggle__icon-size;
|
|
126
120
|
width: $ds-text-btn-toggle__icon-size;
|
|
127
121
|
}
|
|
128
122
|
}
|
|
129
|
-
|
|
130
|
-
.ds-text-btn-toggle--condensed .ds-text-btn-toggle__inner {
|
|
131
|
-
padding: ds-spacing($ds-s-025);
|
|
132
|
-
}
|
package/package.json
CHANGED