@danske/sapphire-css 32.2.0 → 33.0.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/build/themes/cjs/default-dark.js +1 -1
- package/build/themes/cjs/default.js +2 -1
- package/build/themes/cjs/index.d.ts +2 -1
- package/build/themes/esm/default-dark.js +1 -1
- package/build/themes/esm/default.js +2 -1
- package/build/themes/esm/index.d.ts +2 -1
- package/components/accordion/accordion.module.css +38 -40
- package/components/avatar/avatar.module.css +61 -51
- package/components/avatar/avatar.module.css.d.ts +4 -4
- package/components/backdrop/backdrop.module.css +3 -3
- package/components/badge/badge.module.css +257 -135
- package/components/badge/badge.module.css.d.ts +3 -3
- package/components/button/button.module.css +200 -400
- package/components/button/button.module.css.d.ts +6 -7
- package/components/buttonGroup/buttonGroup.module.css +6 -6
- package/components/buttonGroup/buttonGroup.module.css.d.ts +2 -2
- package/components/calendar/calendar.module.css +90 -86
- package/components/checkbox/checkbox.module.css +59 -51
- package/components/checkbox/checkbox.module.css.d.ts +2 -2
- package/components/contextualHelp/contextualHelp.module.css +13 -10
- package/components/dateField/dateField.module.css +66 -64
- package/components/dateField/dateField.module.css.d.ts +1 -1
- package/components/dialog/dialog.module.css +13 -13
- package/components/dialog/dialog.module.css.d.ts +4 -4
- package/components/dropzone/dropzone.module.css +29 -23
- package/components/feedbackMessage/feedbackMessage.module.css +15 -15
- package/components/field/field.module.css +16 -16
- package/components/field/field.module.css.d.ts +1 -1
- package/components/fieldGroup/fieldGroup.module.css +4 -4
- package/components/fieldGroup/fieldGroup.module.css.d.ts +1 -1
- package/components/heading/heading.module.css +37 -85
- package/components/icon/icon.module.css +12 -12
- package/components/icon/icon.module.css.d.ts +4 -4
- package/components/iconButton/iconButton.module.css +130 -366
- package/components/iconButton/iconButton.module.css.d.ts +7 -8
- package/components/label/label.module.css +11 -11
- package/components/label/label.module.css.d.ts +1 -1
- package/components/labeledValue/labeledValue.module.css +7 -7
- package/components/labeledValue/labeledValue.module.css.d.ts +2 -2
- package/components/link/link.module.css +22 -22
- package/components/link/link.module.css.d.ts +2 -2
- package/components/list/list.module.css +41 -31
- package/components/listbox/listbox.module.css +80 -66
- package/components/listbox/listbox.module.css.d.ts +2 -2
- package/components/modalLayout/modalLayout.module.css +9 -11
- package/components/notificationBadge/notificationBadge.module.css +23 -25
- package/components/notificationBadge/notificationBadge.module.css.d.ts +3 -3
- package/components/pagination/pagination.module.css +16 -16
- package/components/panel/panel.module.css +4 -4
- package/components/panel/panel.module.css.d.ts +1 -1
- package/components/paragraph/paragraph.module.css +8 -8
- package/components/paragraph/paragraph.module.css.d.ts +2 -2
- package/components/popover/popover.module.css +6 -6
- package/components/radio/radio.module.css +32 -32
- package/components/radio/radio.module.css.d.ts +1 -1
- package/components/searchField/searchField.module.css +41 -45
- package/components/searchField/searchField.module.css.d.ts +1 -2
- package/components/segmentedControl/segmentedControl.module.css +33 -35
- package/components/segmentedControl/segmentedControl.module.css.d.ts +2 -2
- package/components/select/select.module.css +32 -32
- package/components/select/select.module.css.d.ts +1 -1
- package/components/skeleton/skeleton.module.css +6 -8
- package/components/spinner/spinner.module.css +22 -22
- package/components/spinner/spinner.module.css.d.ts +4 -4
- package/components/surface/surface.module.css +3 -7
- package/components/surface/surface.module.css.d.ts +0 -1
- package/components/switch/switch.module.css +45 -39
- package/components/switch/switch.module.css.d.ts +1 -1
- package/components/table/table.module.css +66 -54
- package/components/tabs/tabs.module.css +46 -45
- package/components/tabs/tabs.module.css.d.ts +2 -2
- package/components/tag/tag.module.css +32 -24
- package/components/text/text.module.css +48 -96
- package/components/textField/textField.module.css +78 -72
- package/components/textField/textField.module.css.d.ts +1 -1
- package/components/toast/toast.module.css +17 -19
- package/components/tooltip/tooltip.module.css +12 -12
- package/package.json +3 -3
- package/themes/default-dark.js +1 -1
- package/themes/default.js +2 -1
- package/themes/index.d.ts +2 -1
- package/build/themes/cjs/june-dark.d.ts +0 -5
- package/build/themes/cjs/june-dark.js +0 -13
- package/build/themes/cjs/june.d.ts +0 -5
- package/build/themes/cjs/june.js +0 -13
- package/build/themes/esm/june-dark.d.ts +0 -5
- package/build/themes/esm/june-dark.js +0 -8
- package/build/themes/esm/june.d.ts +0 -5
- package/build/themes/esm/june.js +0 -8
- package/themes/default-dark.css +0 -2
- package/themes/june-dark.css +0 -3
- package/themes/june-dark.d.ts +0 -5
- package/themes/june-dark.js +0 -13
- package/themes/june-dark.scss +0 -3
- package/themes/june.css +0 -3
- package/themes/june.d.ts +0 -5
- package/themes/june.js +0 -13
- package/themes/june.scss +0 -3
|
@@ -27,25 +27,25 @@
|
|
|
27
27
|
-moz-osx-font-smoothing: grayscale;
|
|
28
28
|
|
|
29
29
|
/* sizing */
|
|
30
|
-
height: var(--sapphire-
|
|
31
|
-
width: var(--sapphire-
|
|
30
|
+
height: var(--sapphire-semantic-size-height-control-md);
|
|
31
|
+
width: var(--sapphire-semantic-size-height-control-md);
|
|
32
32
|
flex-shrink: 0; /* When part of flex layout the button will otherwise be squashed */
|
|
33
33
|
|
|
34
34
|
/* shape */
|
|
35
|
-
border-radius: var(--sapphire-
|
|
35
|
+
border-radius: var(--sapphire-semantic-size-height-control-md);
|
|
36
36
|
border-style: solid;
|
|
37
37
|
border-width: 0;
|
|
38
38
|
border-color: transparent;
|
|
39
39
|
|
|
40
40
|
/* typography */
|
|
41
|
-
font-family: var(--sapphire-
|
|
42
|
-
font-weight: var(--sapphire-
|
|
43
|
-
font-size: var(--sapphire-
|
|
41
|
+
font-family: var(--sapphire-semantic-font-name-default);
|
|
42
|
+
font-weight: var(--sapphire-semantic-font-weight-default-semibold);
|
|
43
|
+
font-size: var(--sapphire-semantic-size-font-control-md);
|
|
44
44
|
|
|
45
45
|
/* transition */
|
|
46
46
|
/* we don't want to transition outline-offset */
|
|
47
47
|
transition-property: opacity, background-color, color;
|
|
48
|
-
transition-duration: var(--sapphire-
|
|
48
|
+
transition-duration: var(--sapphire-semantic-time-fade-quick);
|
|
49
49
|
transition-timing-function: ease-in-out;
|
|
50
50
|
cursor: pointer;
|
|
51
51
|
}
|
|
@@ -57,7 +57,7 @@ a.sapphire-icon-button {
|
|
|
57
57
|
/* Disabled state for all variants */
|
|
58
58
|
.sapphire-icon-button:disabled,
|
|
59
59
|
.sapphire-icon-button.is-disabled {
|
|
60
|
-
opacity: var(--sapphire-
|
|
60
|
+
opacity: var(--sapphire-semantic-opacity-disabled);
|
|
61
61
|
cursor: not-allowed;
|
|
62
62
|
}
|
|
63
63
|
|
|
@@ -67,9 +67,9 @@ a.sapphire-icon-button {
|
|
|
67
67
|
}
|
|
68
68
|
.sapphire-icon-button.is-focus,
|
|
69
69
|
.sapphire-icon-button:not(.js-focus):focus-visible {
|
|
70
|
-
outline: var(--sapphire-
|
|
71
|
-
var(--sapphire-
|
|
72
|
-
outline-offset: var(--sapphire-
|
|
70
|
+
outline: var(--sapphire-semantic-size-focus-ring) solid
|
|
71
|
+
var(--sapphire-semantic-color-focus-ring);
|
|
72
|
+
outline-offset: var(--sapphire-semantic-size-focus-ring);
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
/* Button loading */
|
|
@@ -88,122 +88,83 @@ a.sapphire-icon-button {
|
|
|
88
88
|
|
|
89
89
|
/* ### Variant: Primary */
|
|
90
90
|
/* ## Style: Default */
|
|
91
|
-
.sapphire-icon-button--primary
|
|
91
|
+
.sapphire-icon-button--primary {
|
|
92
92
|
background-color: var(
|
|
93
|
-
--sapphire-
|
|
93
|
+
--sapphire-semantic-color-background-action-primary-default
|
|
94
94
|
);
|
|
95
|
-
color: var(--sapphire-
|
|
95
|
+
color: var(--sapphire-semantic-color-content-action-primary-default);
|
|
96
96
|
}
|
|
97
|
-
.sapphire-icon-button--primary
|
|
97
|
+
.sapphire-icon-button--primary:not(:disabled):not(.is-disabled):not(
|
|
98
98
|
:active
|
|
99
99
|
):not(.is-active):not(.js-hover):hover,
|
|
100
|
-
.sapphire-icon-button--primary
|
|
100
|
+
.sapphire-icon-button--primary:not(:disabled):not(.is-disabled):not(
|
|
101
101
|
:active
|
|
102
102
|
):not(.is-active).is-hover {
|
|
103
|
-
background-color: var(
|
|
103
|
+
background-color: var(
|
|
104
|
+
--sapphire-semantic-color-background-action-primary-hover
|
|
105
|
+
);
|
|
104
106
|
}
|
|
105
|
-
.sapphire-icon-button--primary
|
|
106
|
-
.sapphire-icon-button--primary
|
|
107
|
-
background-color: var(
|
|
107
|
+
.sapphire-icon-button--primary.is-focus,
|
|
108
|
+
.sapphire-icon-button--primary:not(.js-focus):focus-visible {
|
|
109
|
+
background-color: var(
|
|
110
|
+
--sapphire-semantic-color-background-action-primary-default
|
|
111
|
+
);
|
|
108
112
|
}
|
|
109
|
-
.sapphire-icon-button--primary
|
|
110
|
-
.sapphire-icon-button--primary
|
|
111
|
-
.sapphire-icon-button--primary
|
|
113
|
+
.sapphire-icon-button--primary:not(:disabled):not(.is-disabled).is-active,
|
|
114
|
+
.sapphire-icon-button--primary:not(:disabled):not(.is-disabled):active,
|
|
115
|
+
.sapphire-icon-button--primary:not(:disabled):not(
|
|
112
116
|
.is-disabled
|
|
113
117
|
):focus-visible:active {
|
|
114
|
-
background-color: var(
|
|
118
|
+
background-color: var(
|
|
119
|
+
--sapphire-semantic-color-background-action-primary-active
|
|
120
|
+
);
|
|
115
121
|
}
|
|
116
122
|
|
|
117
123
|
/* ### Variant: Secondary */
|
|
118
124
|
/* ## Style: Default */
|
|
119
|
-
|
|
120
|
-
.sapphire-icon-button--secondary-fill {
|
|
125
|
+
.sapphire-icon-button--secondary {
|
|
121
126
|
background-color: var(
|
|
122
|
-
--sapphire-
|
|
127
|
+
--sapphire-semantic-color-background-action-secondary-default
|
|
123
128
|
);
|
|
124
|
-
color: var(--sapphire-
|
|
129
|
+
color: var(--sapphire-semantic-color-content-action-secondary-default);
|
|
125
130
|
}
|
|
126
131
|
|
|
127
|
-
.sapphire-icon-button--secondary
|
|
132
|
+
.sapphire-icon-button--secondary:not(:disabled):not(.is-disabled):not(
|
|
128
133
|
:active
|
|
129
134
|
):not(.is-active):not(.js-hover):hover,
|
|
130
|
-
.sapphire-icon-button--secondary
|
|
135
|
+
.sapphire-icon-button--secondary:not(:disabled):not(.is-disabled):not(
|
|
131
136
|
:active
|
|
132
137
|
):not(.is-active).is-hover {
|
|
133
138
|
background-color: var(
|
|
134
|
-
--sapphire-
|
|
139
|
+
--sapphire-semantic-color-background-action-secondary-hover
|
|
135
140
|
);
|
|
136
|
-
color: var(--sapphire-
|
|
141
|
+
color: var(--sapphire-semantic-color-content-action-secondary-hover);
|
|
137
142
|
}
|
|
138
143
|
|
|
139
|
-
.sapphire-icon-button--secondary
|
|
140
|
-
.sapphire-icon-button--secondary
|
|
144
|
+
.sapphire-icon-button--secondary.is-focus,
|
|
145
|
+
.sapphire-icon-button--secondary:not(.js-focus):focus-visible {
|
|
141
146
|
background-color: var(
|
|
142
|
-
--sapphire-
|
|
147
|
+
--sapphire-semantic-color-background-action-secondary-default
|
|
143
148
|
);
|
|
144
149
|
}
|
|
145
150
|
|
|
146
|
-
.sapphire-icon-button--secondary
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
.sapphire-icon-button--secondary-fill:not(:disabled):not(.is-disabled):active,
|
|
150
|
-
.sapphire-icon-button--secondary-fill:not(:disabled):not(
|
|
151
|
+
.sapphire-icon-button--secondary:not(:disabled):not(.is-disabled).is-active,
|
|
152
|
+
.sapphire-icon-button--secondary:not(:disabled):not(.is-disabled):active,
|
|
153
|
+
.sapphire-icon-button--secondary:not(:disabled):not(
|
|
151
154
|
.is-disabled
|
|
152
155
|
):focus-visible:active {
|
|
153
156
|
background-color: var(
|
|
154
|
-
--sapphire-
|
|
155
|
-
);
|
|
156
|
-
color: var(--sapphire-icon-button-color-content-secondary-active);
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
/* # Surface: Secondary */
|
|
160
|
-
.sapphire-icon-button--secondary-fill.sapphire-icon-button--secondary-surface {
|
|
161
|
-
background-color: var(
|
|
162
|
-
--sapphire-icon-button-color-background-secondary-surface-secondary-default
|
|
163
|
-
);
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
.sapphire-icon-button--secondary-fill.sapphire-icon-button--secondary-surface:not(
|
|
167
|
-
:disabled
|
|
168
|
-
):not(.is-disabled):not(:active):not(.is-active):not(.js-hover):hover,
|
|
169
|
-
.sapphire-icon-button--secondary-fill.sapphire-icon-button--secondary-surface:not(
|
|
170
|
-
:disabled
|
|
171
|
-
):not(.is-disabled):not(:active):not(.is-active).is-hover {
|
|
172
|
-
background-color: var(
|
|
173
|
-
--sapphire-icon-button-color-background-secondary-surface-secondary-hover
|
|
174
|
-
);
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
.sapphire-icon-button--secondary-fill.sapphire-icon-button--secondary-surface.is-focus,
|
|
178
|
-
.sapphire-icon-button--secondary-fill.sapphire-icon-button--secondary-surface:not(
|
|
179
|
-
.js-focus
|
|
180
|
-
):focus-visible {
|
|
181
|
-
background-color: var(
|
|
182
|
-
--sapphire-icon-button-color-background-secondary-surface-secondary-focus
|
|
183
|
-
);
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
.sapphire-icon-button--secondary-fill.sapphire-icon-button--secondary-surface:not(
|
|
187
|
-
:disabled
|
|
188
|
-
):not(.is-disabled).is-active,
|
|
189
|
-
.sapphire-icon-button--secondary-fill.sapphire-icon-button--secondary-surface:not(
|
|
190
|
-
:disabled
|
|
191
|
-
):not(.is-disabled):active,
|
|
192
|
-
.sapphire-icon-button--secondary-fill.sapphire-icon-button--secondary-surface:not(
|
|
193
|
-
:disabled
|
|
194
|
-
):not(.is-disabled):focus-visible:active {
|
|
195
|
-
background-color: var(
|
|
196
|
-
--sapphire-icon-button-color-background-secondary-surface-secondary-active
|
|
157
|
+
--sapphire-semantic-color-background-action-secondary-active
|
|
197
158
|
);
|
|
159
|
+
color: var(--sapphire-semantic-color-content-action-secondary-active);
|
|
198
160
|
}
|
|
199
161
|
|
|
200
162
|
/* ## Style: Ghost */
|
|
201
|
-
/* # Surface: Primary */
|
|
202
163
|
.sapphire-icon-button--secondary-ghost {
|
|
203
164
|
background-color: var(
|
|
204
|
-
--sapphire-
|
|
165
|
+
--sapphire-semantic-color-background-action-secondary-ghost-default
|
|
205
166
|
);
|
|
206
|
-
color: var(--sapphire-
|
|
167
|
+
color: var(--sapphire-semantic-color-content-action-secondary-default);
|
|
207
168
|
}
|
|
208
169
|
|
|
209
170
|
.sapphire-icon-button--secondary-ghost:not(:disabled):not(.is-disabled):not(
|
|
@@ -213,15 +174,15 @@ a.sapphire-icon-button {
|
|
|
213
174
|
:active
|
|
214
175
|
):not(.is-active).is-hover {
|
|
215
176
|
background-color: var(
|
|
216
|
-
--sapphire-
|
|
177
|
+
--sapphire-semantic-color-background-action-secondary-ghost-hover
|
|
217
178
|
);
|
|
218
|
-
color: var(--sapphire-
|
|
179
|
+
color: var(--sapphire-semantic-color-content-action-secondary-hover);
|
|
219
180
|
}
|
|
220
181
|
|
|
221
182
|
.sapphire-icon-button--secondary-ghost.is-focus,
|
|
222
183
|
.sapphire-icon-button--secondary-ghost:not(.js-focus):focus-visible {
|
|
223
184
|
background-color: var(
|
|
224
|
-
--sapphire-
|
|
185
|
+
--sapphire-semantic-color-background-action-secondary-ghost-default
|
|
225
186
|
);
|
|
226
187
|
}
|
|
227
188
|
|
|
@@ -233,136 +194,56 @@ a.sapphire-icon-button {
|
|
|
233
194
|
.is-disabled
|
|
234
195
|
):focus-visible:active {
|
|
235
196
|
background-color: var(
|
|
236
|
-
--sapphire-
|
|
237
|
-
);
|
|
238
|
-
color: var(--sapphire-icon-button-color-content-secondary-active);
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
/* # Surface: Secondary */
|
|
242
|
-
.sapphire-icon-button--secondary-ghost.sapphire-icon-button--secondary-surface {
|
|
243
|
-
background-color: var(
|
|
244
|
-
--sapphire-icon-button-color-background-secondary-ghost-surface-secondary-default
|
|
245
|
-
);
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
.sapphire-icon-button--secondary-ghost.sapphire-icon-button--secondary-surface:not(
|
|
249
|
-
:disabled
|
|
250
|
-
):not(.is-disabled):not(:active):not(.is-active):not(.js-hover):hover,
|
|
251
|
-
.sapphire-icon-button--secondary-ghost.sapphire-icon-button--secondary-surface:not(
|
|
252
|
-
:disabled
|
|
253
|
-
):not(.is-disabled):not(:active):not(.is-active).is-hover {
|
|
254
|
-
background-color: var(
|
|
255
|
-
--sapphire-icon-button-color-background-secondary-ghost-surface-secondary-hover
|
|
256
|
-
);
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
.sapphire-icon-button--secondary-ghost.sapphire-icon-button--secondary-surface.is-focus,
|
|
260
|
-
.sapphire-icon-button--secondary-ghost.sapphire-icon-button--secondary-surface:not(
|
|
261
|
-
.js-focus
|
|
262
|
-
):focus-visible {
|
|
263
|
-
background-color: var(
|
|
264
|
-
--sapphire-icon-button-color-background-secondary-ghost-surface-secondary-focus
|
|
265
|
-
);
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
.sapphire-icon-button--secondary-ghost.sapphire-icon-button--secondary-surface:not(
|
|
269
|
-
:disabled
|
|
270
|
-
):not(.is-disabled).is-active,
|
|
271
|
-
.sapphire-icon-button--secondary-ghost.sapphire-icon-button--secondary-surface:not(
|
|
272
|
-
:disabled
|
|
273
|
-
):not(.is-disabled):active,
|
|
274
|
-
.sapphire-icon-button--secondary-ghost.sapphire-icon-button--secondary-surface:not(
|
|
275
|
-
:disabled
|
|
276
|
-
):not(.is-disabled):focus-visible:active {
|
|
277
|
-
background-color: var(
|
|
278
|
-
--sapphire-icon-button-color-background-secondary-ghost-surface-secondary-active
|
|
197
|
+
--sapphire-semantic-color-background-action-secondary-ghost-active
|
|
279
198
|
);
|
|
199
|
+
color: var(--sapphire-semantic-color-content-action-secondary-active);
|
|
280
200
|
}
|
|
281
201
|
|
|
282
202
|
/* ### Variant: Tertiary */
|
|
283
203
|
/* ## Style: Default */
|
|
284
|
-
|
|
285
|
-
.sapphire-icon-button--tertiary-fill {
|
|
204
|
+
.sapphire-icon-button--tertiary {
|
|
286
205
|
background-color: var(
|
|
287
|
-
--sapphire-
|
|
206
|
+
--sapphire-semantic-color-background-action-tertiary-default
|
|
288
207
|
);
|
|
289
|
-
color: var(--sapphire-
|
|
208
|
+
color: var(--sapphire-semantic-color-content-action-tertiary-default);
|
|
290
209
|
}
|
|
291
210
|
|
|
292
|
-
.sapphire-icon-button--tertiary
|
|
211
|
+
.sapphire-icon-button--tertiary:not(:disabled):not(.is-disabled):not(
|
|
293
212
|
:active
|
|
294
213
|
):not(.is-active):not(.js-hover):hover,
|
|
295
|
-
.sapphire-icon-button--tertiary
|
|
214
|
+
.sapphire-icon-button--tertiary:not(:disabled):not(.is-disabled):not(
|
|
296
215
|
:active
|
|
297
216
|
):not(.is-active).is-hover {
|
|
298
|
-
background-color: var(--sapphire-icon-button-color-background-tertiary-hover);
|
|
299
|
-
color: var(--sapphire-icon-button-color-content-tertiary-hover);
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
.sapphire-icon-button--tertiary-fill.is-focus,
|
|
303
|
-
.sapphire-icon-button--tertiary-fill:not(.js-focus):focus-visible {
|
|
304
|
-
background-color: var(--sapphire-icon-button-color-background-tertiary-focus);
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
.sapphire-icon-button--tertiary-fill:not(:disabled):not(.is-disabled).is-active,
|
|
308
|
-
.sapphire-icon-button--tertiary-fill:not(:disabled):not(.is-disabled):active,
|
|
309
|
-
.sapphire-icon-button--tertiary-fill:not(:disabled):not(
|
|
310
|
-
.is-disabled
|
|
311
|
-
):focus-visible:active {
|
|
312
|
-
background-color: var(
|
|
313
|
-
--sapphire-icon-button-color-background-tertiary-active
|
|
314
|
-
);
|
|
315
|
-
color: var(--sapphire-icon-button-color-content-tertiary-active);
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
/* # Surface: Secondary */
|
|
319
|
-
.sapphire-icon-button--tertiary-fill.sapphire-icon-button--secondary-surface {
|
|
320
|
-
background-color: var(
|
|
321
|
-
--sapphire-icon-button-color-background-tertiary-surface-secondary-default
|
|
322
|
-
);
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
.sapphire-icon-button--tertiary-fill.sapphire-icon-button--secondary-surface:not(
|
|
326
|
-
:disabled
|
|
327
|
-
):not(.is-disabled):not(:active):not(.is-active):not(.js-hover):hover,
|
|
328
|
-
.sapphire-icon-button--tertiary-fill.sapphire-icon-button--secondary-surface:not(
|
|
329
|
-
:disabled
|
|
330
|
-
):not(.is-disabled):not(:active):not(.is-active).is-hover {
|
|
331
217
|
background-color: var(
|
|
332
|
-
--sapphire-
|
|
218
|
+
--sapphire-semantic-color-background-action-tertiary-hover
|
|
333
219
|
);
|
|
220
|
+
color: var(--sapphire-semantic-color-content-action-tertiary-hover);
|
|
334
221
|
}
|
|
335
222
|
|
|
336
|
-
.sapphire-icon-button--tertiary
|
|
337
|
-
.sapphire-icon-button--tertiary
|
|
338
|
-
.js-focus
|
|
339
|
-
):focus-visible {
|
|
223
|
+
.sapphire-icon-button--tertiary.is-focus,
|
|
224
|
+
.sapphire-icon-button--tertiary:not(.js-focus):focus-visible {
|
|
340
225
|
background-color: var(
|
|
341
|
-
--sapphire-
|
|
226
|
+
--sapphire-semantic-color-background-action-tertiary-default
|
|
342
227
|
);
|
|
343
228
|
}
|
|
344
229
|
|
|
345
|
-
.sapphire-icon-button--tertiary-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
.
|
|
349
|
-
|
|
350
|
-
):not(.is-disabled):active,
|
|
351
|
-
.sapphire-icon-button--tertiary-fill.sapphire-icon-button--secondary-surface:not(
|
|
352
|
-
:disabled
|
|
353
|
-
):not(.is-disabled):focus-visible:active {
|
|
230
|
+
.sapphire-icon-button--tertiary:not(:disabled):not(.is-disabled).is-active,
|
|
231
|
+
.sapphire-icon-button--tertiary:not(:disabled):not(.is-disabled):active,
|
|
232
|
+
.sapphire-icon-button--tertiary:not(:disabled):not(
|
|
233
|
+
.is-disabled
|
|
234
|
+
):focus-visible:active {
|
|
354
235
|
background-color: var(
|
|
355
|
-
--sapphire-
|
|
236
|
+
--sapphire-semantic-color-background-action-tertiary-active
|
|
356
237
|
);
|
|
238
|
+
color: var(--sapphire-semantic-color-content-action-tertiary-active);
|
|
357
239
|
}
|
|
358
240
|
|
|
359
241
|
/* ## Style: Ghost */
|
|
360
|
-
/* # Surface: Primary */
|
|
361
242
|
.sapphire-icon-button--tertiary-ghost {
|
|
362
243
|
background-color: var(
|
|
363
|
-
--sapphire-
|
|
244
|
+
--sapphire-semantic-color-background-action-tertiary-ghost-default
|
|
364
245
|
);
|
|
365
|
-
color: var(--sapphire-
|
|
246
|
+
color: var(--sapphire-semantic-color-content-action-tertiary-default);
|
|
366
247
|
}
|
|
367
248
|
|
|
368
249
|
.sapphire-icon-button--tertiary-ghost:not(:disabled):not(.is-disabled):not(
|
|
@@ -372,15 +253,15 @@ a.sapphire-icon-button {
|
|
|
372
253
|
:active
|
|
373
254
|
):not(.is-active).is-hover {
|
|
374
255
|
background-color: var(
|
|
375
|
-
--sapphire-
|
|
256
|
+
--sapphire-semantic-color-background-action-tertiary-ghost-hover
|
|
376
257
|
);
|
|
377
|
-
color: var(--sapphire-
|
|
258
|
+
color: var(--sapphire-semantic-color-content-action-tertiary-hover);
|
|
378
259
|
}
|
|
379
260
|
|
|
380
261
|
.sapphire-icon-button--tertiary-ghost.is-focus,
|
|
381
262
|
.sapphire-icon-button--tertiary-ghost:not(.js-focus):focus-visible {
|
|
382
263
|
background-color: var(
|
|
383
|
-
--sapphire-
|
|
264
|
+
--sapphire-semantic-color-background-action-tertiary-ghost-default
|
|
384
265
|
);
|
|
385
266
|
}
|
|
386
267
|
|
|
@@ -392,132 +273,56 @@ a.sapphire-icon-button {
|
|
|
392
273
|
.is-disabled
|
|
393
274
|
):focus-visible:active {
|
|
394
275
|
background-color: var(
|
|
395
|
-
--sapphire-
|
|
396
|
-
);
|
|
397
|
-
color: var(--sapphire-icon-button-color-content-tertiary-active);
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
/* # Surface: Secondary */
|
|
401
|
-
.sapphire-icon-button--tertiary-ghost.sapphire-icon-button--secondary-surface {
|
|
402
|
-
background-color: var(
|
|
403
|
-
--sapphire-icon-button-color-background-tertiary-ghost-surface-secondary-default
|
|
404
|
-
);
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
.sapphire-icon-button--tertiary-ghost.sapphire-icon-button--secondary-surface:not(
|
|
408
|
-
:disabled
|
|
409
|
-
):not(.is-disabled):not(:active):not(.is-active):not(.js-hover):hover,
|
|
410
|
-
.sapphire-icon-button--tertiary-ghost.sapphire-icon-button--secondary-surface:not(
|
|
411
|
-
:disabled
|
|
412
|
-
):not(.is-disabled):not(:active):not(.is-active).is-hover {
|
|
413
|
-
background-color: var(
|
|
414
|
-
--sapphire-icon-button-color-background-tertiary-ghost-surface-secondary-hover
|
|
415
|
-
);
|
|
416
|
-
}
|
|
417
|
-
|
|
418
|
-
.sapphire-icon-button--tertiary-ghost.sapphire-icon-button--secondary-surface.is-focus,
|
|
419
|
-
.sapphire-icon-button--tertiary-ghost.sapphire-icon-button--secondary-surface:not(
|
|
420
|
-
.js-focus
|
|
421
|
-
):focus-visible {
|
|
422
|
-
background-color: var(
|
|
423
|
-
--sapphire-icon-button-color-background-tertiary-ghost-surface-secondary-focus
|
|
424
|
-
);
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
.sapphire-icon-button--tertiary-ghost.sapphire-icon-button--secondary-surface:not(
|
|
428
|
-
:disabled
|
|
429
|
-
):not(.is-disabled).is-active,
|
|
430
|
-
.sapphire-icon-button--tertiary-ghost.sapphire-icon-button--secondary-surface:not(
|
|
431
|
-
:disabled
|
|
432
|
-
):not(.is-disabled):active,
|
|
433
|
-
.sapphire-icon-button--tertiary-ghost.sapphire-icon-button--secondary-surface:not(
|
|
434
|
-
:disabled
|
|
435
|
-
):not(.is-disabled):focus-visible:active {
|
|
436
|
-
background-color: var(
|
|
437
|
-
--sapphire-icon-button-color-background-tertiary-ghost-surface-secondary-active
|
|
276
|
+
--sapphire-semantic-color-background-action-tertiary-ghost-active
|
|
438
277
|
);
|
|
278
|
+
color: var(--sapphire-semantic-color-content-action-tertiary-active);
|
|
439
279
|
}
|
|
440
280
|
|
|
441
281
|
/* ### Variant: Danger */
|
|
442
282
|
/* ## Style: Default */
|
|
443
|
-
|
|
444
|
-
.sapphire-icon-button--danger-fill {
|
|
445
|
-
background-color: var(--sapphire-icon-button-color-background-danger-default);
|
|
446
|
-
color: var(--sapphire-icon-button-color-content-danger-default);
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
.sapphire-icon-button--danger-fill:not(:disabled):not(.is-disabled):not(
|
|
450
|
-
:active
|
|
451
|
-
):not(.is-active):not(.js-hover):hover,
|
|
452
|
-
.sapphire-icon-button--danger-fill:not(:disabled):not(.is-disabled):not(
|
|
453
|
-
:active
|
|
454
|
-
):not(.is-active).is-hover {
|
|
455
|
-
background-color: var(--sapphire-icon-button-color-background-danger-hover);
|
|
456
|
-
color: var(--sapphire-icon-button-color-content-danger-hover);
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
.sapphire-icon-button--danger-fill.is-focus,
|
|
460
|
-
.sapphire-icon-button--danger-fill:not(.js-focus):focus-visible {
|
|
461
|
-
background-color: var(--sapphire-icon-button-color-background-danger-focus);
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
.sapphire-icon-button--danger-fill:not(:disabled):not(.is-disabled).is-active,
|
|
465
|
-
.sapphire-icon-button--danger-fill:not(:disabled):not(.is-disabled):active,
|
|
466
|
-
.sapphire-icon-button--danger-fill:not(:disabled):not(
|
|
467
|
-
.is-disabled
|
|
468
|
-
):focus-visible:active {
|
|
469
|
-
background-color: var(--sapphire-icon-button-color-background-danger-active);
|
|
470
|
-
color: var(--sapphire-icon-button-color-content-danger-active);
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
/* # Surface: Secondary */
|
|
474
|
-
.sapphire-icon-button--danger-fill.sapphire-icon-button--secondary-surface {
|
|
283
|
+
.sapphire-icon-button--danger {
|
|
475
284
|
background-color: var(
|
|
476
|
-
--sapphire-
|
|
285
|
+
--sapphire-semantic-color-background-action-danger-default
|
|
477
286
|
);
|
|
287
|
+
color: var(--sapphire-semantic-color-content-action-danger-default);
|
|
478
288
|
}
|
|
479
289
|
|
|
480
|
-
.sapphire-icon-button--danger
|
|
481
|
-
|
|
482
|
-
):not(.
|
|
483
|
-
.sapphire-icon-button--danger
|
|
484
|
-
|
|
485
|
-
)
|
|
290
|
+
.sapphire-icon-button--danger:not(:disabled):not(.is-disabled):not(:active):not(
|
|
291
|
+
.is-active
|
|
292
|
+
):not(.js-hover):hover,
|
|
293
|
+
.sapphire-icon-button--danger:not(:disabled):not(.is-disabled):not(:active):not(
|
|
294
|
+
.is-active
|
|
295
|
+
).is-hover {
|
|
486
296
|
background-color: var(
|
|
487
|
-
--sapphire-
|
|
297
|
+
--sapphire-semantic-color-background-action-danger-hover
|
|
488
298
|
);
|
|
299
|
+
color: var(--sapphire-semantic-color-content-action-danger-hover);
|
|
489
300
|
}
|
|
490
301
|
|
|
491
|
-
.sapphire-icon-button--danger
|
|
492
|
-
.sapphire-icon-button--danger
|
|
493
|
-
.js-focus
|
|
494
|
-
):focus-visible {
|
|
302
|
+
.sapphire-icon-button--danger.is-focus,
|
|
303
|
+
.sapphire-icon-button--danger:not(.js-focus):focus-visible {
|
|
495
304
|
background-color: var(
|
|
496
|
-
--sapphire-
|
|
305
|
+
--sapphire-semantic-color-background-action-danger-default
|
|
497
306
|
);
|
|
498
307
|
}
|
|
499
308
|
|
|
500
|
-
.sapphire-icon-button--danger-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
.
|
|
504
|
-
|
|
505
|
-
):not(.is-disabled):active,
|
|
506
|
-
.sapphire-icon-button--danger-fill.sapphire-icon-button--secondary-surface:not(
|
|
507
|
-
:disabled
|
|
508
|
-
):not(.is-disabled):focus-visible:active {
|
|
309
|
+
.sapphire-icon-button--danger:not(:disabled):not(.is-disabled).is-active,
|
|
310
|
+
.sapphire-icon-button--danger:not(:disabled):not(.is-disabled):active,
|
|
311
|
+
.sapphire-icon-button--danger:not(:disabled):not(
|
|
312
|
+
.is-disabled
|
|
313
|
+
):focus-visible:active {
|
|
509
314
|
background-color: var(
|
|
510
|
-
--sapphire-
|
|
315
|
+
--sapphire-semantic-color-background-action-danger-active
|
|
511
316
|
);
|
|
317
|
+
color: var(--sapphire-semantic-color-content-action-danger-active);
|
|
512
318
|
}
|
|
513
319
|
|
|
514
320
|
/* ## Style: Ghost */
|
|
515
|
-
/* # Surface: Primary */
|
|
516
321
|
.sapphire-icon-button--danger-ghost {
|
|
517
322
|
background-color: var(
|
|
518
|
-
--sapphire-
|
|
323
|
+
--sapphire-semantic-color-background-action-danger-ghost-default
|
|
519
324
|
);
|
|
520
|
-
color: var(--sapphire-
|
|
325
|
+
color: var(--sapphire-semantic-color-content-action-danger-default);
|
|
521
326
|
}
|
|
522
327
|
|
|
523
328
|
.sapphire-icon-button--danger-ghost:not(:disabled):not(.is-disabled):not(
|
|
@@ -527,15 +332,15 @@ a.sapphire-icon-button {
|
|
|
527
332
|
:active
|
|
528
333
|
):not(.is-active).is-hover {
|
|
529
334
|
background-color: var(
|
|
530
|
-
--sapphire-
|
|
335
|
+
--sapphire-semantic-color-background-action-danger-ghost-hover
|
|
531
336
|
);
|
|
532
|
-
color: var(--sapphire-
|
|
337
|
+
color: var(--sapphire-semantic-color-content-action-danger-hover);
|
|
533
338
|
}
|
|
534
339
|
|
|
535
340
|
.sapphire-icon-button--danger-ghost.is-focus,
|
|
536
341
|
.sapphire-icon-button--danger-ghost:not(.js-focus):focus-visible {
|
|
537
342
|
background-color: var(
|
|
538
|
-
--sapphire-
|
|
343
|
+
--sapphire-semantic-color-background-action-danger-ghost-default
|
|
539
344
|
);
|
|
540
345
|
}
|
|
541
346
|
|
|
@@ -545,50 +350,9 @@ a.sapphire-icon-button {
|
|
|
545
350
|
.is-disabled
|
|
546
351
|
):focus-visible:active {
|
|
547
352
|
background-color: var(
|
|
548
|
-
--sapphire-
|
|
549
|
-
);
|
|
550
|
-
color: var(--sapphire-icon-button-color-content-danger-active);
|
|
551
|
-
}
|
|
552
|
-
|
|
553
|
-
/* # Surface: Secondary */
|
|
554
|
-
.sapphire-icon-button--danger-ghost.sapphire-icon-button--secondary-surface {
|
|
555
|
-
background-color: var(
|
|
556
|
-
--sapphire-icon-button-color-background-danger-ghost-surface-secondary-default
|
|
557
|
-
);
|
|
558
|
-
}
|
|
559
|
-
|
|
560
|
-
.sapphire-icon-button--danger-ghost.sapphire-icon-button--secondary-surface:not(
|
|
561
|
-
:disabled
|
|
562
|
-
):not(.is-disabled):not(:active):not(.is-active):not(.js-hover):hover,
|
|
563
|
-
.sapphire-icon-button--danger-ghost.sapphire-icon-button--secondary-surface:not(
|
|
564
|
-
:disabled
|
|
565
|
-
):not(.is-disabled):not(:active):not(.is-active).is-hover {
|
|
566
|
-
background-color: var(
|
|
567
|
-
--sapphire-icon-button-color-background-danger-ghost-surface-secondary-hover
|
|
568
|
-
);
|
|
569
|
-
}
|
|
570
|
-
|
|
571
|
-
.sapphire-icon-button--danger-ghost.sapphire-icon-button--secondary-surface.is-focus,
|
|
572
|
-
.sapphire-icon-button--danger-ghost.sapphire-icon-button--secondary-surface:not(
|
|
573
|
-
.js-focus
|
|
574
|
-
):focus-visible {
|
|
575
|
-
background-color: var(
|
|
576
|
-
--sapphire-icon-button-color-background-danger-ghost-surface-secondary-focus
|
|
577
|
-
);
|
|
578
|
-
}
|
|
579
|
-
|
|
580
|
-
.sapphire-icon-button--danger-ghost.sapphire-icon-button--secondary-surface:not(
|
|
581
|
-
:disabled
|
|
582
|
-
):not(.is-disabled).is-active,
|
|
583
|
-
.sapphire-icon-button--danger-ghost.sapphire-icon-button--secondary-surface:not(
|
|
584
|
-
:disabled
|
|
585
|
-
):not(.is-disabled):active,
|
|
586
|
-
.sapphire-icon-button--danger-ghost.sapphire-icon-button--secondary-surface:not(
|
|
587
|
-
:disabled
|
|
588
|
-
):not(.is-disabled):focus-visible:active {
|
|
589
|
-
background-color: var(
|
|
590
|
-
--sapphire-icon-button-color-background-danger-ghost-surface-secondary-active
|
|
353
|
+
--sapphire-semantic-color-background-action-danger-ghost-active
|
|
591
354
|
);
|
|
355
|
+
color: var(--sapphire-semantic-color-content-action-danger-active);
|
|
592
356
|
}
|
|
593
357
|
|
|
594
358
|
/**
|
|
@@ -599,20 +363,20 @@ a.sapphire-icon-button {
|
|
|
599
363
|
flex-direction: column;
|
|
600
364
|
justify-content: center;
|
|
601
365
|
align-items: center;
|
|
602
|
-
height: var(--sapphire-
|
|
603
|
-
width: var(--sapphire-
|
|
366
|
+
height: var(--sapphire-semantic-size-icon-md);
|
|
367
|
+
width: var(--sapphire-semantic-size-icon-md);
|
|
604
368
|
}
|
|
605
|
-
.sapphire-icon-button--
|
|
606
|
-
height: var(--sapphire-
|
|
607
|
-
width: var(--sapphire-
|
|
369
|
+
.sapphire-icon-button--lg .sapphire-icon-button__icon {
|
|
370
|
+
height: var(--sapphire-semantic-size-icon-lg);
|
|
371
|
+
width: var(--sapphire-semantic-size-icon-lg);
|
|
608
372
|
}
|
|
609
|
-
.sapphire-icon-button--
|
|
610
|
-
height: var(--sapphire-
|
|
611
|
-
width: var(--sapphire-
|
|
373
|
+
.sapphire-icon-button--sm .sapphire-icon-button__icon {
|
|
374
|
+
height: var(--sapphire-semantic-size-icon-sm);
|
|
375
|
+
width: var(--sapphire-semantic-size-icon-sm);
|
|
612
376
|
}
|
|
613
|
-
.sapphire-icon-button--
|
|
614
|
-
height: var(--sapphire-
|
|
615
|
-
width: var(--sapphire-
|
|
377
|
+
.sapphire-icon-button--xs .sapphire-icon-button__icon {
|
|
378
|
+
height: var(--sapphire-semantic-size-icon-sm);
|
|
379
|
+
width: var(--sapphire-semantic-size-icon-sm);
|
|
616
380
|
}
|
|
617
381
|
|
|
618
382
|
/**
|
|
@@ -621,29 +385,29 @@ a.sapphire-icon-button {
|
|
|
621
385
|
/**
|
|
622
386
|
* LARGE
|
|
623
387
|
*/
|
|
624
|
-
.sapphire-icon-button--
|
|
625
|
-
height: var(--sapphire-
|
|
626
|
-
width: var(--sapphire-
|
|
627
|
-
border-radius: var(--sapphire-
|
|
628
|
-
font-size: var(--sapphire-
|
|
388
|
+
.sapphire-icon-button--lg {
|
|
389
|
+
height: var(--sapphire-semantic-size-height-control-lg);
|
|
390
|
+
width: var(--sapphire-semantic-size-height-control-lg);
|
|
391
|
+
border-radius: var(--sapphire-semantic-size-height-control-lg);
|
|
392
|
+
font-size: var(--sapphire-semantic-size-font-control-default);
|
|
629
393
|
}
|
|
630
394
|
|
|
631
395
|
/**
|
|
632
396
|
* SMALL
|
|
633
397
|
*/
|
|
634
|
-
.sapphire-icon-button--
|
|
635
|
-
height: var(--sapphire-
|
|
636
|
-
width: var(--sapphire-
|
|
637
|
-
border-radius: var(--sapphire-
|
|
638
|
-
font-size: var(--sapphire-
|
|
398
|
+
.sapphire-icon-button--sm {
|
|
399
|
+
height: var(--sapphire-semantic-size-height-control-sm);
|
|
400
|
+
width: var(--sapphire-semantic-size-height-control-sm);
|
|
401
|
+
border-radius: var(--sapphire-semantic-size-height-control-sm);
|
|
402
|
+
font-size: var(--sapphire-semantic-size-font-control-sm);
|
|
639
403
|
}
|
|
640
404
|
|
|
641
405
|
/**
|
|
642
406
|
* EXTRA SMALL
|
|
643
407
|
*/
|
|
644
|
-
.sapphire-icon-button--
|
|
645
|
-
height: var(--sapphire-
|
|
646
|
-
width: var(--sapphire-
|
|
647
|
-
border-radius: var(--sapphire-
|
|
648
|
-
font-size: var(--sapphire-
|
|
408
|
+
.sapphire-icon-button--xs {
|
|
409
|
+
height: var(--sapphire-semantic-size-height-control-xs);
|
|
410
|
+
width: var(--sapphire-semantic-size-height-control-xs);
|
|
411
|
+
border-radius: var(--sapphire-semantic-size-height-control-xs);
|
|
412
|
+
font-size: var(--sapphire-semantic-size-font-control-sm);
|
|
649
413
|
}
|