@helsenorge/designsystem-react 10.2.0 → 10.2.1-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/CHANGELOG.md +25 -0
- package/components/AnchorLink/styles.module.scss +7 -9
- package/components/Avatar/styles.module.scss +9 -9
- package/components/Badge/styles.module.scss +9 -9
- package/components/Button/styles.module.scss +77 -71
- package/components/Checkbox/styles.module.scss +104 -104
- package/components/Chip/styles.module.scss +21 -22
- 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/index.js +2 -1
- package/components/Duolist/index.js.map +1 -1
- package/components/Duolist/styles.module.scss +57 -35
- package/components/Duolist/styles.module.scss.d.ts +1 -0
- package/components/EmptyState/styles.module.scss +16 -16
- package/components/ErrorWrapper/styles.module.scss +12 -22
- package/components/ErrorWrapper/styles.module.scss.d.ts +0 -1
- package/components/Expander/styles.module.scss +53 -53
- package/components/ExpanderHierarchy/expander.module.scss +35 -35
- package/components/ExpanderHierarchy/styles.module.scss +4 -5
- package/components/ExpanderList/styles.module.scss +32 -32
- package/components/EyebrowHeader/styles.module.scss +0 -2
- package/components/FormGroup/styles.module.scss +9 -9
- package/components/FormLayout/styles.module.scss +4 -5
- 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 +4 -3
- 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 +14 -15
- package/components/PopOver/styles.module.scss.d.ts +0 -3
- 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 +24 -16
- 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/package.json +1 -1
- package/scss/_body.scss +5 -6
- package/scss/_breakpoints.scss +2 -2
- package/scss/_font-mixins.scss +22 -22
- package/scss/_fonts.scss +0 -2
- package/scss/_input.scss +54 -51
- 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 +47 -46
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,28 @@
|
|
|
1
|
+
## [10.2.0](https://github.com/helsenorge/designsystem/branchCompare?baseVersion=GTv10.1.0&targetVersion=GTv10.2.0) (2025-02-18)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
- nytt komponent drawer ([563a44e](https://github.com/helsenorge/designsystem/commit/563a44ee979ec777cdaea4a02134e3187000b3b9)), closes
|
|
6
|
+
[#339100](https://github.com/helsenorge/designsystem/issues/339100)
|
|
7
|
+
- oppdatering på fontstack spesifikasjon
|
|
8
|
+
([07f2f01](https://github.com/helsenorge/designsystem/commit/07f2f0197099c5d820d0c6caf727b898c86a2c6d)), closes
|
|
9
|
+
[#344729](https://github.com/helsenorge/designsystem/issues/344729)
|
|
10
|
+
- **illustration:** nye illustrasjoner
|
|
11
|
+
([e3bc97d](https://github.com/helsenorge/designsystem/commit/e3bc97d4b9e0cbf4e4d5a38afd587e4da5a29b22)), closes
|
|
12
|
+
[#339457](https://github.com/helsenorge/designsystem/issues/339457)
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
- usebreakpoint oppdateres live igjen
|
|
17
|
+
([fb93380](https://github.com/helsenorge/designsystem/commit/fb93380c21fa31f974224b977cfd82e7077d9f87)), closes
|
|
18
|
+
[#345242](https://github.com/helsenorge/designsystem/issues/345242)
|
|
19
|
+
- **highlightpanel:** ikke rendre tittel to ganger og fiks bakgrunnsfarge i large size
|
|
20
|
+
([73e0a71](https://github.com/helsenorge/designsystem/commit/73e0a7182f9473ddce3ff6db8cf5ad758d517d86)), closes
|
|
21
|
+
[#337117](https://github.com/helsenorge/designsystem/issues/337117) [#340928](https://github.com/helsenorge/designsystem/issues/340928)
|
|
22
|
+
- **modal:** returnerer fokus ved lukk og 400 prosent zoom fiks for høyde
|
|
23
|
+
([7695152](https://github.com/helsenorge/designsystem/commit/7695152fc6ce8a995ec61636b5de8b47ad0dd6ef)), closes
|
|
24
|
+
[#344549](https://github.com/helsenorge/designsystem/issues/344549)
|
|
25
|
+
|
|
1
26
|
## [10.1.0](https://github.com/helsenorge/designsystem/branchCompare?baseVersion=GTv10.0.3&targetVersion=GTv10.1.0) (2025-02-11)
|
|
2
27
|
|
|
3
28
|
### Features
|
|
@@ -1,21 +1,19 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@
|
|
3
|
-
@import '../../scss/breakpoints';
|
|
4
|
-
@import '../../scss/palette';
|
|
2
|
+
@use '../../scss/palette' as palette;
|
|
5
3
|
|
|
6
4
|
$underline-width: 0.0625rem;
|
|
7
5
|
$focus-width: 0.15rem;
|
|
8
6
|
|
|
9
7
|
@mixin anchorlink-hover {
|
|
10
8
|
cursor: pointer;
|
|
11
|
-
color:
|
|
12
|
-
background-color:
|
|
13
|
-
text-decoration-color:
|
|
9
|
+
color: palette.$blueberry700;
|
|
10
|
+
background-color: palette.$blueberry60010;
|
|
11
|
+
text-decoration-color: palette.$blueberry600;
|
|
14
12
|
}
|
|
15
13
|
|
|
16
14
|
@mixin anchorlink-focus {
|
|
17
15
|
outline: none;
|
|
18
|
-
border: $focus-width solid
|
|
16
|
+
border: $focus-width solid palette.$black;
|
|
19
17
|
}
|
|
20
18
|
|
|
21
19
|
@mixin anchorlink {
|
|
@@ -24,11 +22,11 @@ $focus-width: 0.15rem;
|
|
|
24
22
|
overflow-wrap: break-word;
|
|
25
23
|
word-break: break-word;
|
|
26
24
|
text-align: left;
|
|
27
|
-
color:
|
|
25
|
+
color: palette.$blueberry600;
|
|
28
26
|
border: $focus-width solid transparent;
|
|
29
27
|
text-decoration: underline;
|
|
30
28
|
text-underline-offset: 0.16rem;
|
|
31
|
-
text-decoration-color:
|
|
29
|
+
text-decoration-color: palette.$blueberry400;
|
|
32
30
|
text-decoration-thickness: $underline-width;
|
|
33
31
|
padding: 0.1rem;
|
|
34
32
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
1
|
+
@use '../../scss/palette' as palette;
|
|
2
|
+
@use '../../scss/font-settings' as 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: palette.$blueberry500;
|
|
10
|
+
color: palette.$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: palette.$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:
|
|
32
|
-
line-height:
|
|
31
|
+
font-size: font-settings.$font-size-md;
|
|
32
|
+
line-height: font-settings.$lineheight-size-md;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
&--small {
|
|
36
36
|
width: 3rem;
|
|
37
37
|
height: 3rem;
|
|
38
|
-
font-size:
|
|
39
|
-
line-height:
|
|
38
|
+
font-size: font-settings.$font-size-lg;
|
|
39
|
+
line-height: font-settings.$lineheight-size-lg;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use '../../scss/palette' as 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: palette.$white;
|
|
14
|
+
background-color: palette.$black;
|
|
15
15
|
border: 1px solid;
|
|
16
16
|
|
|
17
17
|
&--blueberry {
|
|
18
|
-
background-color:
|
|
19
|
-
border-color:
|
|
18
|
+
background-color: palette.$blueberry500;
|
|
19
|
+
border-color: palette.$blueberry600;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
&--cherry {
|
|
23
|
-
background-color:
|
|
24
|
-
border-color:
|
|
23
|
+
background-color: palette.$cherry500;
|
|
24
|
+
border-color: palette.$cherry600;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
&--neutral {
|
|
28
|
-
color:
|
|
28
|
+
color: palette.$black;
|
|
29
29
|
background-color: transparent;
|
|
30
|
-
border-color:
|
|
30
|
+
border-color: palette.$neutral600;
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -1,25 +1,31 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@
|
|
5
|
-
@
|
|
6
|
-
@
|
|
7
|
-
@import '../../scss/supernova/styles/colors';
|
|
2
|
+
@use '../../scss/spacers' as spacers;
|
|
3
|
+
@use '../../scss/palette' as palette;
|
|
4
|
+
@use '../../scss/font-settings' as font-settings;
|
|
5
|
+
@use '../../scss/screen-reader' as *;
|
|
6
|
+
@use '../../scss/breakpoints' as breakpoints;
|
|
7
|
+
@import '../../scss/supernova/styles/colors.css';
|
|
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' getSpacer(xs) getSpacer(s) getSpacer(xs) getSpacer(m) 0 getSpacer(3xs) 0
|
|
12
|
-
|
|
13
|
-
'
|
|
14
|
-
|
|
15
|
-
'
|
|
16
|
-
|
|
17
|
-
'
|
|
18
|
-
|
|
11
|
+
'left-icon' 'normal' spacers.getSpacer(xs) spacers.getSpacer(s) spacers.getSpacer(xs) spacers.getSpacer(m) 0 spacers.getSpacer(3xs) 0
|
|
12
|
+
spacers.getSpacer(2xs),
|
|
13
|
+
'right-icon' 'normal' spacers.getSpacer(s) spacers.getSpacer(xs) spacers.getSpacer(m) spacers.getSpacer(xs) spacers.getSpacer(3xs) 0
|
|
14
|
+
spacers.getSpacer(2xs) 0,
|
|
15
|
+
'left-icon' 'large' spacers.getSpacer(xs) spacers.getSpacer(m) spacers.getSpacer(s) spacers.getSpacer(l) 0 spacers.getSpacer(2xs) 0
|
|
16
|
+
spacers.getSpacer(xs),
|
|
17
|
+
'right-icon' 'large' spacers.getSpacer(m) spacers.getSpacer(xs) spacers.getSpacer(l) spacers.getSpacer(s) spacers.getSpacer(2xs) 0
|
|
18
|
+
spacers.getSpacer(xs) 0,
|
|
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,
|
|
19
25
|
'only-icon' 'normal' 0.062rem 0.062rem 0.375rem 0.375rem 0 0 0 0,
|
|
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;
|
|
26
|
+
'only-icon' 'large' 0.312rem 0.312rem spacers.getSpacer(3xs) spacers.getSpacer(3xs) 0 0 0 0,
|
|
27
|
+
'both-icons' 'normal' spacers.getSpacer(xs) spacers.getSpacer(xs) spacers.getSpacer(xs) spacers.getSpacer(xs) 0 0 0 0,
|
|
28
|
+
'both-icons' 'large' spacers.getSpacer(xs) spacers.getSpacer(xs) spacers.getSpacer(xs) spacers.getSpacer(xs) 0 0 0 0;
|
|
23
29
|
|
|
24
30
|
// Brukes til å aktivere hover styling uten at button hovres
|
|
25
31
|
@mixin outline-borderless-hover {
|
|
@@ -34,11 +40,11 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
|
|
|
34
40
|
}
|
|
35
41
|
|
|
36
42
|
@mixin focus-shadow {
|
|
37
|
-
box-shadow: 0 0 0 getSpacer(3xs)
|
|
43
|
+
box-shadow: 0 0 0 spacers.getSpacer(3xs) palette.$black;
|
|
38
44
|
}
|
|
39
45
|
|
|
40
46
|
@mixin focus-shadow-on-dark {
|
|
41
|
-
box-shadow: 0 0 0 getSpacer(3xs)
|
|
47
|
+
box-shadow: 0 0 0 spacers.getSpacer(3xs) palette.$white;
|
|
42
48
|
}
|
|
43
49
|
|
|
44
50
|
@mixin outline-borderless-background($background-color, $hover-background-color) {
|
|
@@ -54,18 +60,18 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
|
|
|
54
60
|
}
|
|
55
61
|
|
|
56
62
|
@mixin outline($ouline-color, $hover-outline-color) {
|
|
57
|
-
outline: getSpacer(4xs) solid $ouline-color;
|
|
58
|
-
outline-offset: getSpacer(4xs) * -1;
|
|
63
|
+
outline: spacers.getSpacer(4xs) solid $ouline-color;
|
|
64
|
+
outline-offset: spacers.getSpacer(4xs) * -1;
|
|
59
65
|
|
|
60
66
|
&:hover {
|
|
61
67
|
box-shadow: none;
|
|
62
68
|
}
|
|
63
69
|
|
|
64
70
|
:disabled > & {
|
|
65
|
-
outline-color:
|
|
71
|
+
outline-color: palette.$neutral700;
|
|
66
72
|
|
|
67
|
-
@media (min-width: map.get(
|
|
68
|
-
outline-color:
|
|
73
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
74
|
+
outline-color: palette.$neutral500;
|
|
69
75
|
}
|
|
70
76
|
}
|
|
71
77
|
}
|
|
@@ -78,14 +84,14 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
|
|
|
78
84
|
}
|
|
79
85
|
|
|
80
86
|
:disabled > & {
|
|
81
|
-
@media (min-width: map.get(
|
|
82
|
-
color:
|
|
87
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
88
|
+
color: palette.$neutral700;
|
|
83
89
|
}
|
|
84
90
|
}
|
|
85
91
|
}
|
|
86
92
|
|
|
87
93
|
@mixin fill-on-dark($background-color) {
|
|
88
|
-
background-color:
|
|
94
|
+
background-color: palette.$white;
|
|
89
95
|
|
|
90
96
|
&:hover {
|
|
91
97
|
box-shadow: none;
|
|
@@ -102,7 +108,7 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
|
|
|
102
108
|
&:hover {
|
|
103
109
|
@include focus-shadow-on-dark;
|
|
104
110
|
|
|
105
|
-
background-color:
|
|
111
|
+
background-color: palette.$white;
|
|
106
112
|
}
|
|
107
113
|
}
|
|
108
114
|
|
|
@@ -116,7 +122,7 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
|
|
|
116
122
|
color: $color;
|
|
117
123
|
|
|
118
124
|
:disabled > & {
|
|
119
|
-
color:
|
|
125
|
+
color: palette.$neutral700;
|
|
120
126
|
}
|
|
121
127
|
}
|
|
122
128
|
|
|
@@ -125,7 +131,7 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
|
|
|
125
131
|
@include fill-on-dark(var(--color-action-background-ondark-hover));
|
|
126
132
|
}
|
|
127
133
|
&--on-dark#{&}--destructive {
|
|
128
|
-
@include fill-on-dark(
|
|
134
|
+
@include fill-on-dark(palette.$cherry50);
|
|
129
135
|
}
|
|
130
136
|
&--on-dark#{&}--outline,
|
|
131
137
|
&--on-dark#{&}--borderless,
|
|
@@ -134,14 +140,14 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
|
|
|
134
140
|
background-color: transparent;
|
|
135
141
|
|
|
136
142
|
&:hover {
|
|
137
|
-
background-color:
|
|
143
|
+
background-color: palette.$inverted-hover;
|
|
138
144
|
}
|
|
139
145
|
}
|
|
140
146
|
&--on-dark#{&}--outline {
|
|
141
|
-
outline-color:
|
|
147
|
+
outline-color: palette.$white;
|
|
142
148
|
|
|
143
149
|
:disabled > & {
|
|
144
|
-
@media (min-width: map.get(
|
|
150
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
145
151
|
outline-color: $dark-mode-disabled-transparrent;
|
|
146
152
|
}
|
|
147
153
|
}
|
|
@@ -153,17 +159,17 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
|
|
|
153
159
|
}
|
|
154
160
|
|
|
155
161
|
&--on-dark &__text {
|
|
156
|
-
@include on-dark-text(
|
|
162
|
+
@include on-dark-text(palette.$blueberry600);
|
|
157
163
|
}
|
|
158
164
|
&--on-dark#{&}--destructive &__text {
|
|
159
|
-
@include on-dark-text(
|
|
165
|
+
@include on-dark-text(palette.$cherry600);
|
|
160
166
|
}
|
|
161
167
|
&--on-dark#{&}--outline &__text,
|
|
162
168
|
&--on-dark#{&}--borderless &__text {
|
|
163
|
-
color:
|
|
169
|
+
color: palette.$white;
|
|
164
170
|
|
|
165
171
|
:disabled > & {
|
|
166
|
-
@media (min-width: map.get(
|
|
172
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
167
173
|
color: $dark-mode-disabled-transparrent;
|
|
168
174
|
}
|
|
169
175
|
}
|
|
@@ -195,9 +201,9 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
|
|
|
195
201
|
|
|
196
202
|
.button {
|
|
197
203
|
display: inline-flex;
|
|
198
|
-
background-color:
|
|
199
|
-
padding: 0 getSpacer(m);
|
|
200
|
-
font-size:
|
|
204
|
+
background-color: palette.$blueberry500;
|
|
205
|
+
padding: 0 spacers.getSpacer(m);
|
|
206
|
+
font-size: font-settings.$font-size-sm;
|
|
201
207
|
font-weight: 600;
|
|
202
208
|
font-family: inherit;
|
|
203
209
|
line-height: 1.375rem;
|
|
@@ -211,37 +217,37 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
|
|
|
211
217
|
letter-spacing: unset;
|
|
212
218
|
|
|
213
219
|
&:hover {
|
|
214
|
-
background-color:
|
|
215
|
-
box-shadow: 0 0 0 getSpacer(3xs)
|
|
220
|
+
background-color: palette.$blueberry700;
|
|
221
|
+
box-shadow: 0 0 0 spacers.getSpacer(3xs) palette.$blueberry700;
|
|
216
222
|
}
|
|
217
223
|
|
|
218
224
|
:disabled > & {
|
|
219
225
|
pointer-events: none;
|
|
220
|
-
outline: getSpacer(4xs) dashed
|
|
221
|
-
outline-offset: getSpacer(4xs) * -1;
|
|
222
|
-
background-color:
|
|
226
|
+
outline: spacers.getSpacer(4xs) dashed palette.$neutral700;
|
|
227
|
+
outline-offset: spacers.getSpacer(4xs) * -1;
|
|
228
|
+
background-color: palette.$neutral200;
|
|
223
229
|
}
|
|
224
230
|
|
|
225
231
|
:disabled > & &__text {
|
|
226
|
-
color:
|
|
232
|
+
color: palette.$neutral800;
|
|
227
233
|
}
|
|
228
234
|
|
|
229
|
-
@media (min-width: map.get(
|
|
235
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
230
236
|
min-height: 3.125rem;
|
|
231
|
-
padding: 0 getSpacer(l);
|
|
232
|
-
font-size:
|
|
237
|
+
padding: 0 spacers.getSpacer(l);
|
|
238
|
+
font-size: font-settings.$font-size-md;
|
|
233
239
|
line-height: 1.5rem;
|
|
234
240
|
}
|
|
235
241
|
|
|
236
242
|
&--large {
|
|
237
243
|
min-height: 3.5rem;
|
|
238
|
-
padding: 0 getSpacer(l);
|
|
244
|
+
padding: 0 spacers.getSpacer(l);
|
|
239
245
|
font-size: 1.3125rem;
|
|
240
246
|
|
|
241
|
-
@media (min-width: map.get(
|
|
247
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
242
248
|
min-height: 4.5rem;
|
|
243
|
-
padding: 0 getSpacer(xl);
|
|
244
|
-
font-size:
|
|
249
|
+
padding: 0 spacers.getSpacer(xl);
|
|
250
|
+
font-size: font-settings.$font-size-lg;
|
|
245
251
|
line-height: 1.5rem;
|
|
246
252
|
}
|
|
247
253
|
}
|
|
@@ -251,7 +257,7 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
|
|
|
251
257
|
padding-left: $pl;
|
|
252
258
|
padding-right: $pr;
|
|
253
259
|
|
|
254
|
-
@media (min-width: map.get(
|
|
260
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
255
261
|
padding-left: $pld;
|
|
256
262
|
padding-right: $prd;
|
|
257
263
|
}
|
|
@@ -263,7 +269,7 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
|
|
|
263
269
|
margin-left: $svgml;
|
|
264
270
|
margin-right: $svgmr;
|
|
265
271
|
|
|
266
|
-
@media (min-width: map.get(
|
|
272
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
267
273
|
margin-left: $svgmld;
|
|
268
274
|
margin-right: $svgmrd;
|
|
269
275
|
}
|
|
@@ -271,11 +277,11 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
|
|
|
271
277
|
}
|
|
272
278
|
|
|
273
279
|
&--destructive {
|
|
274
|
-
background-color:
|
|
280
|
+
background-color: palette.$cherry500;
|
|
275
281
|
|
|
276
282
|
&:hover {
|
|
277
|
-
background-color:
|
|
278
|
-
box-shadow: 0 0 0 getSpacer(3xs)
|
|
283
|
+
background-color: palette.$cherry700;
|
|
284
|
+
box-shadow: 0 0 0 spacers.getSpacer(3xs) palette.$cherry700;
|
|
279
285
|
}
|
|
280
286
|
}
|
|
281
287
|
|
|
@@ -285,19 +291,19 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
|
|
|
285
291
|
}
|
|
286
292
|
&--outline#{&}--destructive,
|
|
287
293
|
&--borderless#{&}--destructive {
|
|
288
|
-
@include outline-borderless-background(transparent,
|
|
294
|
+
@include outline-borderless-background(transparent, palette.$cherry50);
|
|
289
295
|
}
|
|
290
296
|
|
|
291
297
|
&--outline {
|
|
292
|
-
@include outline(
|
|
298
|
+
@include outline(palette.$blueberry700, palette.$blueberry50);
|
|
293
299
|
}
|
|
294
300
|
&--outline#{&}--destructive {
|
|
295
|
-
@include outline(
|
|
301
|
+
@include outline(palette.$cherry700, palette.$cherry50);
|
|
296
302
|
}
|
|
297
303
|
|
|
298
304
|
/* stylelint-disable-next-line */
|
|
299
305
|
&--borderless:not(.button--only-icon) {
|
|
300
|
-
padding: 0 getSpacer(3xs);
|
|
306
|
+
padding: 0 spacers.getSpacer(3xs);
|
|
301
307
|
}
|
|
302
308
|
|
|
303
309
|
/* stylelint-disable-next-line */
|
|
@@ -323,14 +329,14 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
|
|
|
323
329
|
|
|
324
330
|
/* stylelint-disable-next-line */
|
|
325
331
|
&__text {
|
|
326
|
-
color:
|
|
332
|
+
color: palette.$white;
|
|
327
333
|
margin: 0 auto 0 0;
|
|
328
334
|
position: relative;
|
|
329
335
|
display: flex;
|
|
330
336
|
align-items: center;
|
|
331
337
|
justify-content: center;
|
|
332
338
|
|
|
333
|
-
@media (min-width: map.get(
|
|
339
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
334
340
|
margin: 0 auto 0 0;
|
|
335
341
|
}
|
|
336
342
|
|
|
@@ -356,7 +362,7 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
|
|
|
356
362
|
}
|
|
357
363
|
&--outline#{&}--destructive &__text,
|
|
358
364
|
&--borderless#{&}--destructive &__text {
|
|
359
|
-
@include text-color(
|
|
365
|
+
@include text-color(palette.$cherry600, palette.$cherry700);
|
|
360
366
|
}
|
|
361
367
|
|
|
362
368
|
/* stylelint-disable-next-line */
|
|
@@ -366,9 +372,9 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
|
|
|
366
372
|
|
|
367
373
|
@include on-dark;
|
|
368
374
|
|
|
369
|
-
@include tiny-screens-media-query {
|
|
370
|
-
min-height: getSpacer(l);
|
|
371
|
-
padding: 0 getSpacer(xs);
|
|
375
|
+
@include breakpoints.tiny-screens-media-query {
|
|
376
|
+
min-height: spacers.getSpacer(l);
|
|
377
|
+
padding: 0 spacers.getSpacer(xs);
|
|
372
378
|
}
|
|
373
379
|
}
|
|
374
380
|
|
|
@@ -381,15 +387,15 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
|
|
|
381
387
|
|
|
382
388
|
&__line {
|
|
383
389
|
display: block;
|
|
384
|
-
border-bottom: getSpacer(4xs) dashed
|
|
390
|
+
border-bottom: spacers.getSpacer(4xs) dashed palette.$neutral500;
|
|
385
391
|
transform-origin: top left;
|
|
386
392
|
transform: rotate(37.4deg);
|
|
387
393
|
}
|
|
388
394
|
|
|
389
395
|
&--on-dark &__line {
|
|
390
|
-
border-color:
|
|
396
|
+
border-color: palette.$white;
|
|
391
397
|
|
|
392
|
-
@media (min-width: map.get(
|
|
398
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
393
399
|
border-color: $dark-mode-disabled-transparrent;
|
|
394
400
|
}
|
|
395
401
|
}
|