@helsenorge/designsystem-react 10.1.0 → 10.3.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/AnchorLink.js +2 -2
- package/AnchorLink.js.map +1 -1
- package/Avatar.js +2 -2
- package/Avatar.js.map +1 -1
- package/Badge.js +3 -3
- package/Badge.js.map +1 -1
- package/Button.js +4 -4
- package/Button.js.map +1 -1
- package/CHANGELOG.md +1392 -801
- package/Checkbox.js +2 -2
- package/Checkbox.js.map +1 -1
- package/Close.js +2 -2
- package/Close.js.map +1 -1
- package/ErrorBoundary.js +2 -2
- package/ErrorBoundary.js.map +1 -1
- package/FormGroup.js +12 -12
- package/FormGroup.js.map +1 -1
- package/FormLayout.js +3 -3
- package/FormLayout.js.map +1 -1
- package/HelpBubble.js +2 -2
- package/HelpBubble.js.map +1 -1
- package/HighlightPanel.js +2 -2
- package/HighlightPanel.js.map +1 -1
- package/Icon.js +3 -3
- package/Icon.js.map +1 -1
- package/Illustration.js +3 -3
- package/Illustration.js.map +1 -1
- package/Input.js +2 -2
- package/Input.js.map +1 -1
- package/Label.js +8 -8
- package/Label.js.map +1 -1
- package/LazyIcon.js +1 -1
- package/LazyIllustration.js +3 -3
- package/LazyIllustration.js.map +1 -1
- package/LinkList.js +6 -6
- package/LinkList.js.map +1 -1
- package/ListHeader.js +7 -7
- package/ListHeader.js.map +1 -1
- package/Panel.js +2 -2
- package/Panel.js.map +1 -1
- package/PopOver.js +2 -2
- package/PopOver.js.map +1 -1
- package/RadioButton.js +2 -2
- package/RadioButton.js.map +1 -1
- package/Select.js +2 -2
- package/Select.js.map +1 -1
- package/Slider.js +3 -3
- package/Slider.js.map +1 -1
- package/Spacer.js +2 -2
- package/Spacer.js.map +1 -1
- package/StatusDot.js +1 -1
- package/StepButtons.js +4 -4
- package/StepButtons.js.map +1 -1
- package/TabList.js +4 -4
- package/TabList.js.map +1 -1
- package/Table.js +2 -2
- package/Table.js.map +1 -1
- package/TableBody.js +2 -2
- package/TableBody.js.map +1 -1
- package/TableExpandedRow.js +2 -2
- package/TableExpandedRow.js.map +1 -1
- package/TableHead.js +2 -2
- package/TableHead.js.map +1 -1
- package/TableRow.js +2 -2
- package/TableRow.js.map +1 -1
- package/Textarea.js +2 -2
- package/Textarea.js.map +1 -1
- package/Title.js +2 -2
- package/Title.js.map +1 -1
- package/TooltipWord.js +2 -2
- package/TooltipWord.js.map +1 -1
- package/Trigger.js +3 -3
- package/Trigger.js.map +1 -1
- package/components/AnchorLink/styles.module.scss +8 -9
- package/components/Avatar/styles.module.scss +9 -9
- package/components/Badge/styles.module.scss +9 -9
- package/components/Button/styles.module.scss +68 -57
- package/components/Checkbox/styles.module.scss +103 -103
- package/components/Chip/styles.module.scss +22 -22
- package/components/Close/styles.module.scss +4 -4
- package/components/DictionaryTrigger/index.js +2 -2
- package/components/DictionaryTrigger/index.js.map +1 -1
- package/components/DictionaryTrigger/styles.module.scss +5 -5
- package/components/Drawer/Drawer.d.ts +41 -0
- package/components/Drawer/Drawer.test.d.ts +1 -0
- package/components/Drawer/index.d.ts +3 -0
- package/components/Drawer/index.js +350 -0
- package/components/Drawer/index.js.map +1 -0
- package/components/Drawer/styles.module.scss +127 -0
- package/components/Drawer/styles.module.scss.d.ts +16 -0
- package/components/Dropdown/index.js +3 -3
- package/components/Dropdown/index.js.map +1 -1
- package/components/Dropdown/styles.module.scss +51 -51
- package/components/Duolist/index.js +6 -5
- 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 +12 -12
- package/components/ErrorWrapper/styles.module.scss +11 -21
- package/components/ErrorWrapper/styles.module.scss.d.ts +0 -1
- package/components/Expander/styles.module.scss +46 -46
- package/components/ExpanderHierarchy/expander.module.scss +29 -29
- package/components/ExpanderHierarchy/index.js +5 -5
- package/components/ExpanderHierarchy/index.js.map +1 -1
- package/components/ExpanderHierarchy/styles.module.scss +4 -5
- package/components/ExpanderList/index.js +8 -8
- package/components/ExpanderList/index.js.map +1 -1
- package/components/ExpanderList/styles.module.scss +30 -30
- 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 +13 -13
- package/components/HelpPanel/styles.module.scss +2 -2
- package/components/HelpQuestion/index.js +2 -2
- package/components/HelpQuestion/index.js.map +1 -1
- package/components/HelpQuestion/styles.module.scss +19 -19
- package/components/HighlightPanel/styles.module.scss +22 -54
- package/components/HighlightPanel/styles.module.scss.d.ts +1 -2
- package/components/HorizontalScroll/styles.module.scss +4 -3
- package/components/Icons/EuropeanHealthCard.js +1 -1
- package/components/Icons/GroupTwins.js +1 -1
- package/components/Icons/Inbox.js +1 -1
- package/components/Icons/LawBook.js +1 -1
- package/components/Icons/PersonCancel.js +1 -1
- package/components/Icons/PersonWithBrain.js +1 -1
- package/components/Icons/Puzzle.js +1 -1
- package/components/Icons/Snapchat.js +1 -1
- package/components/Illustrations/IllustrationNames.d.ts +1 -1
- package/components/Illustrations/IllustrationNames.js +4 -2
- package/components/Illustrations/IllustrationNames.js.map +1 -1
- package/components/Illustrations/ReadLetters.d.ts +9 -0
- package/components/Illustrations/ReadLetters.js +11 -0
- package/components/Illustrations/ReadLetters.js.map +1 -0
- package/components/Illustrations/ReadLettersMedium.d.ts +4 -0
- package/components/Illustrations/ReadLettersMedium.js +110 -0
- package/components/Illustrations/ReadLettersMedium.js.map +1 -0
- package/components/Illustrations/Support2.d.ts +9 -0
- package/components/Illustrations/Support2.js +11 -0
- package/components/Illustrations/Support2.js.map +1 -0
- package/components/Illustrations/Support2Medium.d.ts +4 -0
- package/components/Illustrations/Support2Medium.js +232 -0
- package/components/Illustrations/Support2Medium.js.map +1 -0
- package/components/Input/styles.module.scss +12 -12
- package/components/Label/styles.module.scss +28 -24
- package/components/Label/styles.module.scss.d.ts +3 -1
- package/components/LinkList/styles.module.scss +33 -33
- package/components/List/styles.module.scss +7 -7
- package/components/ListHeader/styles.module.scss +8 -8
- package/components/Loader/styles.module.scss +14 -14
- package/components/MaxCharacters/styles.module.scss +11 -11
- package/components/Modal/index.js +71 -82
- package/components/Modal/index.js.map +1 -1
- package/components/Modal/styles.module.scss +45 -39
- package/components/NotificationPanel/index.js +3 -3
- package/components/NotificationPanel/index.js.map +1 -1
- package/components/NotificationPanel/styles.module.scss +33 -33
- package/components/Panel/styles.module.scss +45 -45
- package/components/PanelList/index.js +5 -5
- package/components/PanelList/index.js.map +1 -1
- package/components/PanelList/styles.module.scss +5 -5
- package/components/PopMenu/index.js +5 -5
- package/components/PopMenu/index.js.map +1 -1
- package/components/PopMenu/styles.module.scss +15 -15
- package/components/PopOver/styles.module.scss +13 -14
- package/components/PopOver/styles.module.scss.d.ts +0 -3
- package/components/Portal/index.js +3 -3
- package/components/Portal/index.js.map +1 -1
- package/components/Progressbar/styles.module.scss +4 -4
- package/components/PromoPanel/index.js +2 -2
- package/components/PromoPanel/index.js.map +1 -1
- package/components/PromoPanel/styles.module.scss +22 -22
- package/components/RadioButton/styles.module.scss +99 -99
- package/components/Select/styles.module.scss +21 -21
- package/components/ServiceMessage/styles.module.scss +49 -49
- package/components/SharingStatus/styles.module.scss +13 -13
- package/components/Slider/styles.module.scss +24 -24
- package/components/Spacer/styles.module.scss +14 -14
- package/components/StatusDot/styles.module.scss +22 -22
- package/components/Step/styles.module.scss +3 -3
- package/components/StepButtons/styles.module.scss +9 -9
- package/components/Stepper/styles.module.scss +23 -15
- package/components/StickyNote/styles.module.scss +3 -3
- package/components/Table/styles.module.scss +32 -32
- package/components/Tabs/TabList/styles.module.scss +1 -1
- package/components/Tabs/TabPanel/styles.module.scss +5 -5
- package/components/Tabs/index.js +3 -3
- package/components/Tabs/index.js.map +1 -1
- package/components/Tabs/styles.module.scss +1 -1
- package/components/Tag/styles.module.scss +16 -16
- package/components/TagList/index.js +2 -2
- package/components/TagList/index.js.map +1 -1
- package/components/TagList/styles.module.scss +4 -4
- package/components/Textarea/styles.module.scss +9 -9
- package/components/Tile/index.js +6 -6
- package/components/Tile/index.js.map +1 -1
- package/components/Tile/styles.module.scss +25 -25
- package/components/Title/styles.module.scss +8 -8
- package/components/Toggle/index.js +3 -3910
- package/components/Toggle/index.js.map +1 -1
- package/components/Toggle/styles.module.scss +14 -14
- package/components/Tooltip/TooltipWord/styles.module.scss +4 -4
- package/components/Tooltip/index.js +2 -2
- package/components/Tooltip/index.js.map +1 -1
- package/components/Trigger/styles.module.scss +21 -21
- package/components/Validation/index.js +6 -6
- package/components/Validation/index.js.map +1 -1
- package/components/Validation/styles.module.scss +10 -10
- package/constants.d.ts +1 -0
- package/constants.js +1 -0
- package/constants.js.map +1 -1
- package/hoc/withBreakpoint/withBreakpoint.js +2 -2
- package/hoc/withBreakpoint/withBreakpoint.js.map +1 -1
- package/hooks/useBreakpoint.d.ts +0 -4
- package/hooks/useBreakpoint.js +23 -18
- package/hooks/useBreakpoint.js.map +1 -1
- package/hooks/useEventListenerState.js +3 -3
- package/hooks/useEventListenerState.js.map +1 -1
- package/hooks/useReturnFocusOnUnmount.d.ts +5 -0
- package/hooks/useReturnFocusOnUnmount.js +20 -0
- package/hooks/useReturnFocusOnUnmount.js.map +1 -0
- package/package.json +1 -1
- package/scss/_body.scss +5 -6
- package/scss/_breakpoints.scss +8 -2
- package/scss/_font-mixins.scss +57 -2
- package/scss/_fonts.scss +0 -2
- package/scss/_input.scss +53 -50
- package/scss/_print.scss +2 -2
- package/scss/layout.module.scss +2 -2
- package/scss/typography.module.scss +62 -37
- package/scss/typography.module.scss.d.ts +6 -0
- package/scss/typography.stories.tsx +24 -0
- package/theme/index.js +2 -2
- package/use-animate.js +3952 -0
- package/use-animate.js.map +1 -0
- package/utils/accessibility.d.ts +1 -0
- package/utils/accessibility.js +6 -1
- package/utils/accessibility.js.map +1 -1
- package/utils/component.js +4 -4
- package/utils/component.js.map +1 -1
|
@@ -1,25 +1,31 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@
|
|
5
|
-
@
|
|
6
|
-
@
|
|
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 *;
|
|
7
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' 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
73
|
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
68
|
-
outline-color:
|
|
74
|
+
outline-color: palette.$neutral500;
|
|
69
75
|
}
|
|
70
76
|
}
|
|
71
77
|
}
|
|
@@ -79,13 +85,13 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
|
|
|
79
85
|
|
|
80
86
|
:disabled > & {
|
|
81
87
|
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
82
|
-
color:
|
|
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,11 +140,11 @@ $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
150
|
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
@@ -153,14 +159,14 @@ $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
172
|
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
@@ -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
235
|
@media (min-width: map.get($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
247
|
@media (min-width: map.get($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
|
}
|
|
@@ -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,7 +329,7 @@ $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;
|
|
@@ -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 */
|
|
@@ -365,6 +371,11 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
|
|
|
365
371
|
}
|
|
366
372
|
|
|
367
373
|
@include on-dark;
|
|
374
|
+
|
|
375
|
+
@include tiny-screens-media-query {
|
|
376
|
+
min-height: spacers.getSpacer(l);
|
|
377
|
+
padding: 0 spacers.getSpacer(xs);
|
|
378
|
+
}
|
|
368
379
|
}
|
|
369
380
|
|
|
370
381
|
.diagonal {
|
|
@@ -376,13 +387,13 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
|
|
|
376
387
|
|
|
377
388
|
&__line {
|
|
378
389
|
display: block;
|
|
379
|
-
border-bottom: getSpacer(4xs) dashed
|
|
390
|
+
border-bottom: spacers.getSpacer(4xs) dashed palette.$neutral500;
|
|
380
391
|
transform-origin: top left;
|
|
381
392
|
transform: rotate(37.4deg);
|
|
382
393
|
}
|
|
383
394
|
|
|
384
395
|
&--on-dark &__line {
|
|
385
|
-
border-color:
|
|
396
|
+
border-color: palette.$white;
|
|
386
397
|
|
|
387
398
|
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
388
399
|
border-color: $dark-mode-disabled-transparrent;
|