@helsenorge/designsystem-react 10.6.1 → 10.6.3
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 +15 -0
- package/components/AnchorLink/styles.module.scss +9 -7
- package/components/Avatar/styles.module.scss +9 -9
- package/components/Badge/styles.module.scss +9 -9
- package/components/Button/styles.module.scss +71 -77
- package/components/Checkbox/styles.module.scss +104 -104
- package/components/Chip/styles.module.scss +22 -21
- package/components/Close/styles.module.scss +5 -5
- package/components/DictionaryTrigger/styles.module.scss +5 -5
- package/components/Drawer/styles.module.scss +27 -27
- package/components/Dropdown/styles.module.scss +55 -55
- package/components/Duolist/styles.module.scss +4 -5
- package/components/EmptyState/styles.module.scss +16 -16
- package/components/ErrorWrapper/styles.module.scss +2 -2
- package/components/Expander/styles.module.scss +53 -53
- package/components/ExpanderHierarchy/expander.module.scss +35 -35
- package/components/ExpanderHierarchy/styles.module.scss +5 -4
- package/components/ExpanderList/index.js +12 -5
- package/components/ExpanderList/index.js.map +1 -1
- package/components/ExpanderList/styles.module.scss +32 -32
- package/components/EyebrowHeader/styles.module.scss +2 -0
- package/components/FormGroup/styles.module.scss +9 -9
- package/components/FormLayout/styles.module.scss +5 -4
- package/components/HelpBubble/styles.module.scss +14 -14
- package/components/HelpPanel/styles.module.scss +2 -2
- package/components/HelpQuestion/styles.module.scss +20 -20
- package/components/HighlightPanel/styles.module.scss +20 -20
- package/components/HorizontalScroll/styles.module.scss +3 -4
- package/components/Input/styles.module.scss +14 -14
- package/components/Label/styles.module.scss +16 -16
- package/components/LinkList/styles.module.scss +35 -35
- package/components/ListHeader/styles.module.scss +8 -8
- package/components/Loader/styles.module.scss +14 -14
- package/components/MaxCharacters/styles.module.scss +12 -12
- package/components/Modal/styles.module.scss +49 -49
- package/components/NotificationPanel/styles.module.scss +40 -40
- package/components/Panel/styles.module.scss +60 -60
- package/components/PanelList/styles.module.scss +6 -6
- package/components/PopMenu/styles.module.scss +16 -16
- package/components/PopOver/styles.module.scss +15 -14
- package/components/PopOver/styles.module.scss.d.ts +3 -0
- package/components/Progressbar/styles.module.scss +4 -4
- package/components/PromoPanel/styles.module.scss +31 -31
- package/components/RadioButton/styles.module.scss +100 -100
- package/components/Select/styles.module.scss +23 -23
- package/components/ServiceMessage/styles.module.scss +48 -48
- package/components/SharingStatus/styles.module.scss +13 -13
- package/components/Slider/styles.module.scss +25 -25
- package/components/Spacer/styles.module.scss +14 -14
- package/components/StatusDot/styles.module.scss +24 -24
- package/components/Step/styles.module.scss +3 -3
- package/components/StepButtons/styles.module.scss +11 -11
- package/components/Stepper/styles.module.scss +16 -24
- package/components/StickyNote/styles.module.scss +3 -3
- package/components/Table/styles.module.scss +31 -31
- package/components/Tabs/TabList/styles.module.scss +2 -2
- package/components/Tabs/TabPanel/styles.module.scss +7 -7
- package/components/Tabs/styles.module.scss +3 -3
- package/components/Tag/styles.module.scss +16 -16
- package/components/TagList/styles.module.scss +4 -4
- package/components/Textarea/styles.module.scss +9 -9
- package/components/Tile/styles.module.scss +31 -31
- package/components/Title/styles.module.scss +8 -8
- package/components/Toggle/styles.module.scss +18 -18
- package/components/Tooltip/TooltipWord/styles.module.scss +4 -4
- package/components/Trigger/styles.module.scss +21 -21
- package/components/Validation/styles.module.scss +11 -11
- package/hooks/useBreakpoint.js +3 -1
- package/hooks/useBreakpoint.js.map +1 -1
- package/package.json +1 -1
- package/scss/_body.scss +6 -5
- package/scss/_breakpoints.scss +2 -2
- package/scss/_font-mixins.scss +22 -22
- package/scss/_fonts.scss +2 -0
- package/scss/_input.scss +51 -54
- package/scss/_print.scss +5 -5
- package/scss/_reset.scss +1 -1
- package/scss/helsenorge.scss +7 -7
- package/scss/layout.module.scss +2 -2
- package/scss/typography.module.scss +46 -47
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
## [10.6.2](https://github.com/helsenorge/designsystem/branchCompare?baseVersion=GTv10.6.1&targetVersion=GTv10.6.2) (2025-03-14)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Reverts
|
|
5
|
+
|
|
6
|
+
* tar i bruk sass use" ([b4fc044](https://github.com/helsenorge/designsystem/commit/b4fc044c68aee56fdbe4ad93f8397f87bae5a0c3))
|
|
7
|
+
|
|
8
|
+
## [10.6.1](https://github.com/helsenorge/designsystem/branchCompare?baseVersion=GTv10.6.0&targetVersion=GTv10.6.1) (2025-03-14)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **expanderlist:** nedre focus outline forsvinner ([f345142](https://github.com/helsenorge/designsystem/commit/f345142968f86db4b1b3aeb33cfce7f9c237af32))
|
|
14
|
+
* **expanderlist:** nedre focus outline forsvinner" ([c8fde30](https://github.com/helsenorge/designsystem/commit/c8fde305783f79eeb0bb24587cb19a282a60f3f7)), closes [#347177](https://github.com/helsenorge/designsystem/issues/347177)
|
|
15
|
+
|
|
1
16
|
## [10.6.0](https://github.com/helsenorge/designsystem/branchCompare?baseVersion=GTv10.5.0&targetVersion=GTv10.6.0) (2025-03-12)
|
|
2
17
|
|
|
3
18
|
|
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@
|
|
2
|
+
@import '../../scss/spacers';
|
|
3
|
+
@import '../../scss/breakpoints';
|
|
4
|
+
@import '../../scss/palette';
|
|
3
5
|
|
|
4
6
|
$underline-width: 0.0625rem;
|
|
5
7
|
$focus-width: 0.15rem;
|
|
6
8
|
|
|
7
9
|
@mixin anchorlink-hover {
|
|
8
10
|
cursor: pointer;
|
|
9
|
-
color:
|
|
10
|
-
background-color:
|
|
11
|
-
text-decoration-color:
|
|
11
|
+
color: $blueberry700;
|
|
12
|
+
background-color: $blueberry60010;
|
|
13
|
+
text-decoration-color: $blueberry600;
|
|
12
14
|
}
|
|
13
15
|
|
|
14
16
|
@mixin anchorlink-focus {
|
|
15
17
|
outline: none;
|
|
16
|
-
border: $focus-width solid
|
|
18
|
+
border: $focus-width solid $black;
|
|
17
19
|
}
|
|
18
20
|
|
|
19
21
|
@mixin anchorlink {
|
|
@@ -22,11 +24,11 @@ $focus-width: 0.15rem;
|
|
|
22
24
|
overflow-wrap: break-word;
|
|
23
25
|
word-break: break-word;
|
|
24
26
|
text-align: left;
|
|
25
|
-
color:
|
|
27
|
+
color: $blueberry600;
|
|
26
28
|
border: $focus-width solid transparent;
|
|
27
29
|
text-decoration: underline;
|
|
28
30
|
text-underline-offset: 0.16rem;
|
|
29
|
-
text-decoration-color:
|
|
31
|
+
text-decoration-color: $blueberry400;
|
|
30
32
|
text-decoration-thickness: $underline-width;
|
|
31
33
|
padding: 0.1rem;
|
|
32
34
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
1
|
+
@import '../../scss/palette';
|
|
2
|
+
@import '../../scss/font-settings';
|
|
3
3
|
|
|
4
4
|
.avatar {
|
|
5
5
|
display: flex;
|
|
6
6
|
justify-content: center;
|
|
7
7
|
align-items: center;
|
|
8
8
|
font-weight: 600;
|
|
9
|
-
background-color:
|
|
10
|
-
color:
|
|
9
|
+
background-color: $blueberry500;
|
|
10
|
+
color: $white;
|
|
11
11
|
|
|
12
12
|
&--circle {
|
|
13
13
|
border-radius: 50%;
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
&--black {
|
|
21
|
-
background-color:
|
|
21
|
+
background-color: $neutral900;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
&--selected#{&}--black {
|
|
@@ -28,14 +28,14 @@
|
|
|
28
28
|
&--xsmall {
|
|
29
29
|
width: 2.375rem;
|
|
30
30
|
height: 2.375rem;
|
|
31
|
-
font-size: font-
|
|
32
|
-
line-height:
|
|
31
|
+
font-size: $font-size-md;
|
|
32
|
+
line-height: $lineheight-size-md;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
&--small {
|
|
36
36
|
width: 3rem;
|
|
37
37
|
height: 3rem;
|
|
38
|
-
font-size: font-
|
|
39
|
-
line-height:
|
|
38
|
+
font-size: $font-size-lg;
|
|
39
|
+
line-height: $lineheight-size-lg;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@
|
|
1
|
+
@import '../../scss/palette';
|
|
2
2
|
|
|
3
3
|
.badge {
|
|
4
4
|
display: inline-flex;
|
|
@@ -10,23 +10,23 @@
|
|
|
10
10
|
height: 1.375rem;
|
|
11
11
|
border-radius: 1rem;
|
|
12
12
|
padding: 0 0.375rem;
|
|
13
|
-
color:
|
|
14
|
-
background-color:
|
|
13
|
+
color: $white;
|
|
14
|
+
background-color: $black;
|
|
15
15
|
border: 1px solid;
|
|
16
16
|
|
|
17
17
|
&--blueberry {
|
|
18
|
-
background-color:
|
|
19
|
-
border-color:
|
|
18
|
+
background-color: $blueberry500;
|
|
19
|
+
border-color: $blueberry600;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
&--cherry {
|
|
23
|
-
background-color:
|
|
24
|
-
border-color:
|
|
23
|
+
background-color: $cherry500;
|
|
24
|
+
border-color: $cherry600;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
&--neutral {
|
|
28
|
-
color:
|
|
28
|
+
color: $black;
|
|
29
29
|
background-color: transparent;
|
|
30
|
-
border-color:
|
|
30
|
+
border-color: $neutral600;
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -1,31 +1,25 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@
|
|
5
|
-
@
|
|
6
|
-
@
|
|
7
|
-
@import '../../scss/supernova/styles/colors
|
|
2
|
+
@import '../../scss/spacers';
|
|
3
|
+
@import '../../scss/breakpoints';
|
|
4
|
+
@import '../../scss/palette';
|
|
5
|
+
@import '../../scss/font-settings';
|
|
6
|
+
@import '../../scss/screen-reader';
|
|
7
|
+
@import '../../scss/supernova/styles/colors';
|
|
8
8
|
|
|
9
9
|
$dark-mode-disabled-transparrent: #ffffffb3;
|
|
10
10
|
$with-icons: // icon-class, size-class, padding-left, padding-right, padding-left desktop, padding-right desktop, svg-margin-left, svg-margin-right, svg-margin-left desktop, svg-margin-right desktop
|
|
11
|
-
'left-icon' 'normal'
|
|
12
|
-
|
|
13
|
-
'
|
|
14
|
-
|
|
15
|
-
'
|
|
16
|
-
|
|
17
|
-
'
|
|
18
|
-
|
|
19
|
-
'arrow' 'normal' spacers.getSpacer(s) spacers.getSpacer(xs) spacers.getSpacer(m) spacers.getSpacer(xs) spacers.getSpacer(m) 0
|
|
20
|
-
spacers.getSpacer(l) 0,
|
|
21
|
-
'arrow' 'large' spacers.getSpacer(m) spacers.getSpacer(xs) spacers.getSpacer(l) spacers.getSpacer(xs) spacers.getSpacer(l) 0
|
|
22
|
-
spacers.getSpacer(xl) 0,
|
|
23
|
-
'arrow--both-icons' 'normal' 0 0 0 0 spacers.getSpacer(s) 0 spacers.getSpacer(m) 0,
|
|
24
|
-
'arrow--both-icons' 'large' 0 0 0 0 spacers.getSpacer(m) 0 spacers.getSpacer(l) 0,
|
|
11
|
+
'left-icon' 'normal' getSpacer(xs) getSpacer(s) getSpacer(xs) getSpacer(m) 0 getSpacer(3xs) 0 getSpacer(2xs),
|
|
12
|
+
'right-icon' 'normal' getSpacer(s) getSpacer(xs) getSpacer(m) getSpacer(xs) getSpacer(3xs) 0 getSpacer(2xs) 0,
|
|
13
|
+
'left-icon' 'large' getSpacer(xs) getSpacer(m) getSpacer(s) getSpacer(l) 0 getSpacer(2xs) 0 getSpacer(xs),
|
|
14
|
+
'right-icon' 'large' getSpacer(m) getSpacer(xs) getSpacer(l) getSpacer(s) getSpacer(2xs) 0 getSpacer(xs) 0,
|
|
15
|
+
'arrow' 'normal' getSpacer(s) getSpacer(xs) getSpacer(m) getSpacer(xs) getSpacer(m) 0 getSpacer(l) 0,
|
|
16
|
+
'arrow' 'large' getSpacer(m) getSpacer(xs) getSpacer(l) getSpacer(xs) getSpacer(l) 0 getSpacer(xl) 0,
|
|
17
|
+
'arrow--both-icons' 'normal' 0 0 0 0 getSpacer(s) 0 getSpacer(m) 0,
|
|
18
|
+
'arrow--both-icons' 'large' 0 0 0 0 getSpacer(m) 0 getSpacer(l) 0,
|
|
25
19
|
'only-icon' 'normal' 0.062rem 0.062rem 0.375rem 0.375rem 0 0 0 0,
|
|
26
|
-
'only-icon' 'large' 0.312rem 0.312rem
|
|
27
|
-
'both-icons' 'normal'
|
|
28
|
-
'both-icons' 'large'
|
|
20
|
+
'only-icon' 'large' 0.312rem 0.312rem getSpacer(3xs) getSpacer(3xs) 0 0 0 0,
|
|
21
|
+
'both-icons' 'normal' getSpacer(xs) getSpacer(xs) getSpacer(xs) getSpacer(xs) 0 0 0 0,
|
|
22
|
+
'both-icons' 'large' getSpacer(xs) getSpacer(xs) getSpacer(xs) getSpacer(xs) 0 0 0 0;
|
|
29
23
|
|
|
30
24
|
// Brukes til å aktivere hover styling uten at button hovres
|
|
31
25
|
@mixin outline-borderless-hover {
|
|
@@ -40,11 +34,11 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
|
|
|
40
34
|
}
|
|
41
35
|
|
|
42
36
|
@mixin focus-shadow {
|
|
43
|
-
box-shadow: 0 0 0
|
|
37
|
+
box-shadow: 0 0 0 getSpacer(3xs) $black;
|
|
44
38
|
}
|
|
45
39
|
|
|
46
40
|
@mixin focus-shadow-on-dark {
|
|
47
|
-
box-shadow: 0 0 0
|
|
41
|
+
box-shadow: 0 0 0 getSpacer(3xs) $white;
|
|
48
42
|
}
|
|
49
43
|
|
|
50
44
|
@mixin outline-borderless-background($background-color, $hover-background-color) {
|
|
@@ -60,18 +54,18 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
|
|
|
60
54
|
}
|
|
61
55
|
|
|
62
56
|
@mixin outline($ouline-color, $hover-outline-color) {
|
|
63
|
-
outline:
|
|
64
|
-
outline-offset:
|
|
57
|
+
outline: getSpacer(4xs) solid $ouline-color;
|
|
58
|
+
outline-offset: getSpacer(4xs) * -1;
|
|
65
59
|
|
|
66
60
|
&:hover {
|
|
67
61
|
box-shadow: none;
|
|
68
62
|
}
|
|
69
63
|
|
|
70
64
|
:disabled > & {
|
|
71
|
-
outline-color:
|
|
65
|
+
outline-color: $neutral700;
|
|
72
66
|
|
|
73
|
-
@media (min-width: map.get(
|
|
74
|
-
outline-color:
|
|
67
|
+
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
68
|
+
outline-color: $neutral500;
|
|
75
69
|
}
|
|
76
70
|
}
|
|
77
71
|
}
|
|
@@ -84,14 +78,14 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
|
|
|
84
78
|
}
|
|
85
79
|
|
|
86
80
|
:disabled > & {
|
|
87
|
-
@media (min-width: map.get(
|
|
88
|
-
color:
|
|
81
|
+
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
82
|
+
color: $neutral700;
|
|
89
83
|
}
|
|
90
84
|
}
|
|
91
85
|
}
|
|
92
86
|
|
|
93
87
|
@mixin fill-on-dark($background-color) {
|
|
94
|
-
background-color:
|
|
88
|
+
background-color: $white;
|
|
95
89
|
|
|
96
90
|
&:hover {
|
|
97
91
|
box-shadow: none;
|
|
@@ -108,7 +102,7 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
|
|
|
108
102
|
&:hover {
|
|
109
103
|
@include focus-shadow-on-dark;
|
|
110
104
|
|
|
111
|
-
background-color:
|
|
105
|
+
background-color: $white;
|
|
112
106
|
}
|
|
113
107
|
}
|
|
114
108
|
|
|
@@ -122,7 +116,7 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
|
|
|
122
116
|
color: $color;
|
|
123
117
|
|
|
124
118
|
:disabled > & {
|
|
125
|
-
color:
|
|
119
|
+
color: $neutral700;
|
|
126
120
|
}
|
|
127
121
|
}
|
|
128
122
|
|
|
@@ -131,7 +125,7 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
|
|
|
131
125
|
@include fill-on-dark(var(--color-action-background-ondark-hover));
|
|
132
126
|
}
|
|
133
127
|
&--on-dark#{&}--destructive {
|
|
134
|
-
@include fill-on-dark(
|
|
128
|
+
@include fill-on-dark($cherry50);
|
|
135
129
|
}
|
|
136
130
|
&--on-dark#{&}--outline,
|
|
137
131
|
&--on-dark#{&}--borderless,
|
|
@@ -140,14 +134,14 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
|
|
|
140
134
|
background-color: transparent;
|
|
141
135
|
|
|
142
136
|
&:hover {
|
|
143
|
-
background-color:
|
|
137
|
+
background-color: $inverted-hover;
|
|
144
138
|
}
|
|
145
139
|
}
|
|
146
140
|
&--on-dark#{&}--outline {
|
|
147
|
-
outline-color:
|
|
141
|
+
outline-color: $white;
|
|
148
142
|
|
|
149
143
|
:disabled > & {
|
|
150
|
-
@media (min-width: map.get(
|
|
144
|
+
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
151
145
|
outline-color: $dark-mode-disabled-transparrent;
|
|
152
146
|
}
|
|
153
147
|
}
|
|
@@ -159,17 +153,17 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
|
|
|
159
153
|
}
|
|
160
154
|
|
|
161
155
|
&--on-dark &__text {
|
|
162
|
-
@include on-dark-text(
|
|
156
|
+
@include on-dark-text($blueberry600);
|
|
163
157
|
}
|
|
164
158
|
&--on-dark#{&}--destructive &__text {
|
|
165
|
-
@include on-dark-text(
|
|
159
|
+
@include on-dark-text($cherry600);
|
|
166
160
|
}
|
|
167
161
|
&--on-dark#{&}--outline &__text,
|
|
168
162
|
&--on-dark#{&}--borderless &__text {
|
|
169
|
-
color:
|
|
163
|
+
color: $white;
|
|
170
164
|
|
|
171
165
|
:disabled > & {
|
|
172
|
-
@media (min-width: map.get(
|
|
166
|
+
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
173
167
|
color: $dark-mode-disabled-transparrent;
|
|
174
168
|
}
|
|
175
169
|
}
|
|
@@ -201,9 +195,9 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
|
|
|
201
195
|
|
|
202
196
|
.button {
|
|
203
197
|
display: inline-flex;
|
|
204
|
-
background-color:
|
|
205
|
-
padding: 0
|
|
206
|
-
font-size: font-
|
|
198
|
+
background-color: $blueberry500;
|
|
199
|
+
padding: 0 getSpacer(m);
|
|
200
|
+
font-size: $font-size-sm;
|
|
207
201
|
font-weight: 600;
|
|
208
202
|
font-family: inherit;
|
|
209
203
|
line-height: 1.375rem;
|
|
@@ -217,37 +211,37 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
|
|
|
217
211
|
letter-spacing: unset;
|
|
218
212
|
|
|
219
213
|
&:hover {
|
|
220
|
-
background-color:
|
|
221
|
-
box-shadow: 0 0 0
|
|
214
|
+
background-color: $blueberry700;
|
|
215
|
+
box-shadow: 0 0 0 getSpacer(3xs) $blueberry700;
|
|
222
216
|
}
|
|
223
217
|
|
|
224
218
|
:disabled > & {
|
|
225
219
|
pointer-events: none;
|
|
226
|
-
outline:
|
|
227
|
-
outline-offset:
|
|
228
|
-
background-color:
|
|
220
|
+
outline: getSpacer(4xs) dashed $neutral700;
|
|
221
|
+
outline-offset: getSpacer(4xs) * -1;
|
|
222
|
+
background-color: $neutral200;
|
|
229
223
|
}
|
|
230
224
|
|
|
231
225
|
:disabled > & &__text {
|
|
232
|
-
color:
|
|
226
|
+
color: $neutral800;
|
|
233
227
|
}
|
|
234
228
|
|
|
235
|
-
@media (min-width: map.get(
|
|
229
|
+
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
236
230
|
min-height: 3.125rem;
|
|
237
|
-
padding: 0
|
|
238
|
-
font-size: font-
|
|
231
|
+
padding: 0 getSpacer(l);
|
|
232
|
+
font-size: $font-size-md;
|
|
239
233
|
line-height: 1.5rem;
|
|
240
234
|
}
|
|
241
235
|
|
|
242
236
|
&--large {
|
|
243
237
|
min-height: 3.5rem;
|
|
244
|
-
padding: 0
|
|
238
|
+
padding: 0 getSpacer(l);
|
|
245
239
|
font-size: 1.3125rem;
|
|
246
240
|
|
|
247
|
-
@media (min-width: map.get(
|
|
241
|
+
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
248
242
|
min-height: 4.5rem;
|
|
249
|
-
padding: 0
|
|
250
|
-
font-size: font-
|
|
243
|
+
padding: 0 getSpacer(xl);
|
|
244
|
+
font-size: $font-size-lg;
|
|
251
245
|
line-height: 1.5rem;
|
|
252
246
|
}
|
|
253
247
|
}
|
|
@@ -257,7 +251,7 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
|
|
|
257
251
|
padding-left: $pl;
|
|
258
252
|
padding-right: $pr;
|
|
259
253
|
|
|
260
|
-
@media (min-width: map.get(
|
|
254
|
+
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
261
255
|
padding-left: $pld;
|
|
262
256
|
padding-right: $prd;
|
|
263
257
|
}
|
|
@@ -269,7 +263,7 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
|
|
|
269
263
|
margin-left: $svgml;
|
|
270
264
|
margin-right: $svgmr;
|
|
271
265
|
|
|
272
|
-
@media (min-width: map.get(
|
|
266
|
+
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
273
267
|
margin-left: $svgmld;
|
|
274
268
|
margin-right: $svgmrd;
|
|
275
269
|
}
|
|
@@ -277,11 +271,11 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
|
|
|
277
271
|
}
|
|
278
272
|
|
|
279
273
|
&--destructive {
|
|
280
|
-
background-color:
|
|
274
|
+
background-color: $cherry500;
|
|
281
275
|
|
|
282
276
|
&:hover {
|
|
283
|
-
background-color:
|
|
284
|
-
box-shadow: 0 0 0
|
|
277
|
+
background-color: $cherry700;
|
|
278
|
+
box-shadow: 0 0 0 getSpacer(3xs) $cherry700;
|
|
285
279
|
}
|
|
286
280
|
}
|
|
287
281
|
|
|
@@ -291,19 +285,19 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
|
|
|
291
285
|
}
|
|
292
286
|
&--outline#{&}--destructive,
|
|
293
287
|
&--borderless#{&}--destructive {
|
|
294
|
-
@include outline-borderless-background(transparent,
|
|
288
|
+
@include outline-borderless-background(transparent, $cherry50);
|
|
295
289
|
}
|
|
296
290
|
|
|
297
291
|
&--outline {
|
|
298
|
-
@include outline(
|
|
292
|
+
@include outline($blueberry700, $blueberry50);
|
|
299
293
|
}
|
|
300
294
|
&--outline#{&}--destructive {
|
|
301
|
-
@include outline(
|
|
295
|
+
@include outline($cherry700, $cherry50);
|
|
302
296
|
}
|
|
303
297
|
|
|
304
298
|
/* stylelint-disable-next-line */
|
|
305
299
|
&--borderless:not(.button--only-icon) {
|
|
306
|
-
padding: 0
|
|
300
|
+
padding: 0 getSpacer(3xs);
|
|
307
301
|
}
|
|
308
302
|
|
|
309
303
|
/* stylelint-disable-next-line */
|
|
@@ -329,14 +323,14 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
|
|
|
329
323
|
|
|
330
324
|
/* stylelint-disable-next-line */
|
|
331
325
|
&__text {
|
|
332
|
-
color:
|
|
326
|
+
color: $white;
|
|
333
327
|
margin: 0 auto 0 0;
|
|
334
328
|
position: relative;
|
|
335
329
|
display: flex;
|
|
336
330
|
align-items: center;
|
|
337
331
|
justify-content: center;
|
|
338
332
|
|
|
339
|
-
@media (min-width: map.get(
|
|
333
|
+
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
340
334
|
margin: 0 auto 0 0;
|
|
341
335
|
}
|
|
342
336
|
|
|
@@ -362,7 +356,7 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
|
|
|
362
356
|
}
|
|
363
357
|
&--outline#{&}--destructive &__text,
|
|
364
358
|
&--borderless#{&}--destructive &__text {
|
|
365
|
-
@include text-color(
|
|
359
|
+
@include text-color($cherry600, $cherry700);
|
|
366
360
|
}
|
|
367
361
|
|
|
368
362
|
/* stylelint-disable-next-line */
|
|
@@ -372,9 +366,9 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
|
|
|
372
366
|
|
|
373
367
|
@include on-dark;
|
|
374
368
|
|
|
375
|
-
@include
|
|
376
|
-
min-height:
|
|
377
|
-
padding: 0
|
|
369
|
+
@include tiny-screens-media-query {
|
|
370
|
+
min-height: getSpacer(l);
|
|
371
|
+
padding: 0 getSpacer(xs);
|
|
378
372
|
}
|
|
379
373
|
}
|
|
380
374
|
|
|
@@ -387,15 +381,15 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
|
|
|
387
381
|
|
|
388
382
|
&__line {
|
|
389
383
|
display: block;
|
|
390
|
-
border-bottom:
|
|
384
|
+
border-bottom: getSpacer(4xs) dashed $neutral500;
|
|
391
385
|
transform-origin: top left;
|
|
392
386
|
transform: rotate(37.4deg);
|
|
393
387
|
}
|
|
394
388
|
|
|
395
389
|
&--on-dark &__line {
|
|
396
|
-
border-color:
|
|
390
|
+
border-color: $white;
|
|
397
391
|
|
|
398
|
-
@media (min-width: map.get(
|
|
392
|
+
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
399
393
|
border-color: $dark-mode-disabled-transparrent;
|
|
400
394
|
}
|
|
401
395
|
}
|