@navikt/ds-css 7.3.1 → 7.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/darkside/accordion.darkside.css +198 -0
  3. package/darkside/action-menu.darkside.css +227 -0
  4. package/darkside/alert.darkside.css +113 -0
  5. package/darkside/baseline/theme.darkside.css +4 -2
  6. package/darkside/button.darkside.css +318 -4
  7. package/darkside/chat.darkside.css +120 -0
  8. package/darkside/chips.darkside.css +234 -0
  9. package/darkside/copybutton.darkside.css +226 -0
  10. package/darkside/date.darkside.css +344 -0
  11. package/darkside/dropdown.darkside.css +91 -0
  12. package/darkside/expansioncard.darkside.css +235 -0
  13. package/darkside/form/combobox.darkside.css +441 -0
  14. package/darkside/form/confirmation-panel.darkside.css +53 -0
  15. package/darkside/form/error-summary.darkside.css +55 -0
  16. package/darkside/form/fieldset.darkside.css +51 -0
  17. package/darkside/form/file-upload.darkside.css +230 -0
  18. package/darkside/form/form-progress.darkside.css +52 -0
  19. package/darkside/form/form-summary.darkside.css +78 -0
  20. package/darkside/form/form.darkside.css +61 -0
  21. package/darkside/form/index.css +16 -0
  22. package/darkside/form/radio-checkbox.darkside.css +356 -0
  23. package/darkside/form/search.darkside.css +228 -0
  24. package/darkside/form/select.darkside.css +115 -0
  25. package/darkside/form/switch.darkside.css +269 -0
  26. package/darkside/form/text-field.darkside.css +112 -0
  27. package/darkside/form/textarea.darkside.css +144 -0
  28. package/darkside/guide-panel.darkside.css +96 -0
  29. package/darkside/help-text.darkside.css +85 -0
  30. package/darkside/index copy.css +37 -0
  31. package/darkside/index.css +36 -1
  32. package/darkside/internalheader.darkside.css +105 -0
  33. package/darkside/link-panel.darkside.css +47 -0
  34. package/darkside/link.darkside.css +79 -0
  35. package/darkside/list.darkside.css +85 -0
  36. package/darkside/loader.darkside.css +119 -0
  37. package/darkside/modal.darkside.css +209 -0
  38. package/darkside/pagination.darkside.css +73 -0
  39. package/darkside/panel.darkside.css +10 -0
  40. package/darkside/popover.darkside.css +84 -0
  41. package/darkside/primitives/base.darkside.css +809 -0
  42. package/darkside/primitives/bleed.darkside.css +103 -0
  43. package/darkside/primitives/box.darkside.css +66 -0
  44. package/darkside/primitives/hgrid.darkside.css +80 -0
  45. package/darkside/primitives/index.css +36 -0
  46. package/darkside/primitives/page.darkside.css +63 -0
  47. package/darkside/primitives/responsive.darkside.css +59 -0
  48. package/darkside/primitives/stack.darkside.css +155 -0
  49. package/darkside/progress-bar.darkside.css +108 -0
  50. package/darkside/read-more.darkside.css +91 -0
  51. package/darkside/skeleton.darkside.css +67 -0
  52. package/darkside/stepper.darkside.css +308 -0
  53. package/darkside/table.darkside.css +286 -0
  54. package/darkside/tabs.darkside.css +154 -0
  55. package/darkside/tag.darkside.css +194 -0
  56. package/darkside/timeline.darkside.css +449 -0
  57. package/darkside/toggle-group.darkside.css +181 -0
  58. package/darkside/tooltip.darkside.css +81 -0
  59. package/darkside/typography.darkside.css +253 -0
  60. package/dist/component/form.css +4 -1
  61. package/dist/component/form.min.css +1 -1
  62. package/dist/component/index.css +6 -2
  63. package/dist/component/index.min.css +2 -2
  64. package/dist/components.css +6 -2
  65. package/dist/components.min.css +2 -2
  66. package/dist/global/tokens.css +1 -1
  67. package/dist/global/tokens.min.css +1 -1
  68. package/dist/index.css +6 -2
  69. package/dist/index.min.css +2 -2
  70. package/form/combobox.css +5 -1
  71. package/package.json +2 -2
@@ -0,0 +1,449 @@
1
+ .navds-timeline {
2
+ position: relative;
3
+ display: grid;
4
+ grid-template-columns: auto minmax(0, 1fr);
5
+ width: 100%;
6
+ min-width: fit-content;
7
+ align-items: center;
8
+ }
9
+
10
+ .navds-timeline__axislabels {
11
+ position: relative;
12
+ height: 1rem;
13
+ box-sizing: content-box;
14
+ grid-column: 2;
15
+ margin-bottom: var(--a-spacing-1);
16
+ }
17
+
18
+ .navds-timeline__row-label {
19
+ white-space: nowrap;
20
+ width: auto;
21
+ margin-right: var(--a-spacing-4);
22
+ grid-column: 1;
23
+ min-height: 1.5rem;
24
+ display: flex;
25
+ align-items: center;
26
+ gap: var(--a-spacing-2);
27
+ }
28
+
29
+ .navds-timeline__row-label:where(:nth-last-child(2)) {
30
+ align-self: flex-end;
31
+ }
32
+
33
+ .navds-timeline__axislabels-label {
34
+ position: absolute;
35
+ color: var(--ac-timeline-axislabel-text, var(--a-text-subtle));
36
+ white-space: nowrap;
37
+ }
38
+
39
+ .navds-timeline__row {
40
+ display: flex;
41
+ background: var(--ac-timeline-row-bg, var(--a-surface-subtle));
42
+ margin: var(--a-spacing-4) 0;
43
+ grid-column: 2;
44
+ }
45
+
46
+ .navds-timeline__row--active {
47
+ background: var(--ac-timeline-row-active-bg, var(--a-surface-selected));
48
+ }
49
+
50
+ .navds-timeline__row:last-of-type {
51
+ margin-bottom: 0;
52
+ }
53
+
54
+ .navds-timeline__row-periods {
55
+ min-height: 1.5rem;
56
+ position: relative;
57
+ width: 100%;
58
+ margin: 0;
59
+ }
60
+
61
+ .navds-timeline__row-periods > li {
62
+ list-style-type: none;
63
+ }
64
+
65
+ .navds-timeline__row-periods:focus {
66
+ outline: none;
67
+ }
68
+
69
+ .navds-timeline__period {
70
+ height: 100%;
71
+ border-radius: var(--a-border-radius-full);
72
+ position: absolute;
73
+ padding: 0;
74
+ display: flex;
75
+ align-items: center;
76
+ z-index: 2;
77
+ border: none;
78
+ font-size: 1rem;
79
+ }
80
+
81
+ .navds-timeline__period--inner {
82
+ margin: 0 var(--a-spacing-1);
83
+ overflow: hidden;
84
+ white-space: nowrap;
85
+ text-overflow: clip;
86
+ text-align: left;
87
+ display: flex;
88
+ align-items: center;
89
+ }
90
+
91
+ .navds-timeline__period--inner svg {
92
+ flex-shrink: 0;
93
+ }
94
+
95
+ .navds-timeline__period--clickable {
96
+ cursor: pointer;
97
+ }
98
+
99
+ .navds-timeline__period--success {
100
+ background: var(--ac-timeline-period-success-bg, var(--a-surface-success-subtle));
101
+ box-shadow: inset 0 0 0 1px var(--ac-timeline-period-success-border, var(--a-border-success));
102
+ }
103
+
104
+ .navds-timeline__period--success.navds-timeline__period--clickable:hover {
105
+ background: var(--a-surface-success-subtle-hover);
106
+ background: var(--ac-timeline-period-success-bg-hover, var(--a-surface-success-subtle-hover));
107
+ }
108
+
109
+ .navds-timeline__period--warning {
110
+ background: var(--ac-timeline-period-warning-bg, var(--a-surface-warning-subtle));
111
+ box-shadow: inset 0 0 0 1px var(--ac-timeline-period-warning-border, var(--a-border-warning));
112
+ }
113
+
114
+ .navds-timeline__period--warning.navds-timeline__period--clickable:hover {
115
+ background: var(--ac-timeline-period-warning-bg-hover, var(--a-surface-warning-subtle-hover));
116
+ }
117
+
118
+ .navds-timeline__period--danger {
119
+ background: var(--ac-timeline-period-danger-bg, var(--a-surface-danger-subtle));
120
+ box-shadow: inset 0 0 0 1px var(--ac-timeline-period-danger-border, var(--a-border-danger));
121
+ }
122
+
123
+ .navds-timeline__period--danger.navds-timeline__period--clickable:hover {
124
+ background: var(--ac-timeline-period-danger-bg-hover, var(--a-surface-danger-subtle-hover));
125
+ }
126
+
127
+ .navds-timeline__period--info {
128
+ background: var(--ac-timeline-period-info-bg, var(--a-surface-info-subtle));
129
+ box-shadow: inset 0 0 0 1px var(--ac-timeline-period-info-border, var(--a-border-info));
130
+ }
131
+
132
+ .navds-timeline__period--info.navds-timeline__period--clickable:hover {
133
+ background: var(--ac-timeline-period-info-bg-hover, var(--a-surface-info-subtle-hover));
134
+ }
135
+
136
+ .navds-timeline__period--neutral {
137
+ background: var(--ac-timeline-period-neutral-bg, var(--a-bg-subtle));
138
+ box-shadow: inset 0 0 0 1px var(--ac-timeline-period-neutral-border, var(--a-border-default));
139
+ }
140
+
141
+ .navds-timeline__period--neutral.navds-timeline__period--clickable:hover {
142
+ background: var(--ac-timeline-period-neutral-bg-hover, var(--a-gray-200));
143
+ }
144
+
145
+ .navds-timeline__period--connected-both {
146
+ border-radius: 0;
147
+ }
148
+
149
+ .navds-timeline__period--connected-right {
150
+ border-bottom-right-radius: 0;
151
+ border-top-right-radius: 0;
152
+ }
153
+
154
+ .navds-timeline__period--connected-left {
155
+ border-bottom-left-radius: 0;
156
+ border-top-left-radius: 0;
157
+ }
158
+
159
+ .navds-timeline__period--selected {
160
+ box-shadow: inset 0 0 0 2px var(--ac-timeline-period-selected-border, var(--a-border-action-selected));
161
+ z-index: 3;
162
+ }
163
+
164
+ .navds-timeline__pin-wrapper {
165
+ position: absolute;
166
+ grid-column: 2;
167
+ top: 0;
168
+ z-index: 1;
169
+ height: 100%;
170
+ display: flex;
171
+ flex-direction: column-reverse;
172
+ isolation: isolate;
173
+
174
+ --navdsc-timeline-pin-size: 0.9rem;
175
+ }
176
+
177
+ .navds-timeline__pin-button {
178
+ border: none;
179
+ cursor: pointer;
180
+ background: var(--a-surface-default);
181
+ box-shadow:
182
+ inset 0 0 0 1px var(--ac-timeline-pin-bg, var(--a-surface-danger)),
183
+ 0 0 0 4px var(--ac-timeline-pin-bg, var(--a-surface-danger)),
184
+ 0 0 0 5px var(--a-surface-default);
185
+ z-index: 2;
186
+ border-radius: var(--a-border-radius-full);
187
+ padding: var(--a-spacing-1);
188
+ position: relative;
189
+ }
190
+
191
+ .navds-timeline__pin-button::before {
192
+ content: "";
193
+ inset: 0;
194
+ position: absolute;
195
+ width: 25px;
196
+ height: 25px;
197
+ border-radius: var(--a-border-radius-full);
198
+ left: calc(-12.5px + 3.5px);
199
+ top: calc(-12.5px + 3.5px);
200
+ }
201
+
202
+ .navds-timeline__pin-button:focus-visible {
203
+ box-shadow:
204
+ inset 0 0 0 1px var(--ac-timeline-pin-bg, var(--a-surface-danger)),
205
+ 0 0 0 3px var(--ac-timeline-pin-bg, var(--a-surface-danger)),
206
+ 0 0 0 4px var(--a-surface-default),
207
+ 0 0 0 6px var(--a-border-focus);
208
+ outline: none;
209
+ }
210
+
211
+ .navds-timeline__pin-button:hover {
212
+ box-shadow:
213
+ inset 0 0 0 1px var(--ac-timeline-pin-bg-hover, var(--a-surface-danger-hover)),
214
+ 0 0 0 4px var(--ac-timeline-pin-bg-hover, var(--a-surface-danger-hover)),
215
+ 0 0 0 5px var(--a-surface-default);
216
+ }
217
+
218
+ .navds-timeline__pin-button:hover:focus-visible {
219
+ box-shadow:
220
+ inset 0 0 0 1px var(--ac-timeline-pin-bg-hover, var(--a-surface-danger-hover)),
221
+ 0 0 0 3px var(--ac-timeline-pin-bg-hover, var(--a-surface-danger-hover)),
222
+ 0 0 0 4px var(--a-surface-default),
223
+ 0 0 0 6px var(--a-border-focus);
224
+ }
225
+
226
+ @supports not selector(:focus-visible) {
227
+ .navds-timeline__pin-button:focus {
228
+ box-shadow:
229
+ inset 0 0 0 1px var(--ac-timeline-pin-bg, var(--a-surface-danger)),
230
+ 0 0 0 3px var(--ac-timeline-pin-bg, var(--a-surface-danger)),
231
+ 0 0 0 4px var(--a-surface-default),
232
+ 0 0 0 6px var(--a-border-focus);
233
+ outline: none;
234
+ }
235
+
236
+ .navds-timeline__pin-button:hover:focus {
237
+ box-shadow:
238
+ inset 0 0 0 1px var(--ac-timeline-pin-bg-hover, var(--a-surface-danger-hover)),
239
+ 0 0 0 3px var(--ac-timeline-pin-bg-hover, var(--a-surface-danger-hover)),
240
+ 0 0 0 4px var(--a-surface-default),
241
+ 0 0 0 6px var(--a-border-focus);
242
+ }
243
+ }
244
+
245
+ .navds-timeline__pin-wrapper::before {
246
+ content: "";
247
+ top: var(--navdsc-timeline-pin-size);
248
+ height: calc(100% - var(--navdsc-timeline-pin-size) * 2);
249
+ width: 1px;
250
+ margin: 0 auto;
251
+ background: var(--a-surface-inverted);
252
+ }
253
+
254
+ .navds-timeline__zoom {
255
+ margin-top: var(--a-spacing-6);
256
+ float: right;
257
+ display: flex;
258
+ list-style-type: none;
259
+ }
260
+
261
+ .navds-timeline__zoom-button {
262
+ all: unset;
263
+ cursor: pointer;
264
+ padding: 6px 9px 6px 8px;
265
+ border: 1px solid var(--ac-timeline-zoom-border, var(--a-border-default));
266
+ border-width: 1px 0 1px 1px;
267
+ background: var(--ac-timeline-zoom-bg, var(--a-surface-default));
268
+ }
269
+
270
+ .navds-timeline__zoom li:first-child .navds-timeline__zoom-button {
271
+ border-radius: var(--a-border-radius-medium) 0 0 var(--a-border-radius-medium);
272
+ }
273
+
274
+ .navds-timeline__zoom li:last-child .navds-timeline__zoom-button {
275
+ border-width: 1px;
276
+ border-radius: 0 var(--a-border-radius-medium) var(--a-border-radius-medium) 0;
277
+ }
278
+
279
+ .navds-timeline__zoom li:only-child .navds-timeline__zoom-button {
280
+ border-radius: var(--a-border-radius-medium);
281
+ }
282
+
283
+ .navds-timeline__zoom-button:not([aria-pressed="true"]):hover {
284
+ background: var(--ac-timeline-zoom-bg-hover, var(--a-surface-action-subtle-hover));
285
+ }
286
+
287
+ .navds-timeline__zoom-button[aria-pressed="true"] {
288
+ background: var(--ac-timeline-zoom-selected-bg, var(--a-surface-inverted));
289
+ color: var(--ac-timeline-zoom-selected-text, var(--a-text-on-inverted));
290
+ }
291
+
292
+ .navds-timeline__period:focus-visible {
293
+ outline: none;
294
+ z-index: 4;
295
+ box-shadow: 0 0 0 2px var(--a-border-focus);
296
+ }
297
+
298
+ .navds-timeline__period--selected:focus-visible {
299
+ box-shadow:
300
+ inset 0 0 0 2px var(--ac-timeline-period-selected-border, var(--a-border-action-selected)),
301
+ 0 0 0 2px var(--a-border-focus);
302
+ z-index: 3;
303
+ }
304
+
305
+ .navds-timeline__zoom li:focus-within {
306
+ z-index: var(--a-z-index-focus);
307
+ }
308
+
309
+ .navds-timeline__zoom-button:focus-visible {
310
+ box-shadow:
311
+ 0 0 0 1px var(--a-surface-default),
312
+ 0 0 0 3px var(--a-border-focus);
313
+ border-width: 1px;
314
+ }
315
+
316
+ .navds-timeline__zoom li:not(:last-child) .navds-timeline__zoom-button:focus-visible {
317
+ margin-right: 2px;
318
+ padding-right: 6px;
319
+ }
320
+
321
+ @supports not selector(:focus-visible) {
322
+ .navds-timeline__period:focus {
323
+ outline: none;
324
+ z-index: 4;
325
+ box-shadow: 0 0 0 2px var(--a-border-focus);
326
+ }
327
+
328
+ .navds-timeline__period--selected:focus {
329
+ box-shadow:
330
+ inset 0 0 0 2px var(--ac-timeline-period-selected-border, var(--a-border-action-selected)),
331
+ 0 0 0 2px var(--a-border-focus);
332
+ z-index: 3;
333
+ }
334
+
335
+ .navds-timeline__zoom-button:focus {
336
+ box-shadow:
337
+ 0 0 0 1px var(--a-surface-default),
338
+ 0 0 0 3px var(--a-border-focus);
339
+ border-width: 1px;
340
+ }
341
+
342
+ .navds-timeline__zoom li:not(:last-child) .navds-timeline__zoom-button:focus {
343
+ margin-right: 2px;
344
+ padding-right: 6px;
345
+ }
346
+ }
347
+
348
+ /**
349
+ * Timeline Popover
350
+ */
351
+
352
+ .navds-timeline__popover {
353
+ z-index: var(--a-z-index-popover);
354
+ background-color: var(--ac-popover-bg, var(--a-surface-default));
355
+ box-shadow: var(--a-shadow-medium);
356
+ border: 1px solid;
357
+ border-color: var(--ac-popover-border, var(--a-border-default));
358
+ border-radius: var(--a-border-radius-large);
359
+ padding: var(--a-spacing-3);
360
+ }
361
+
362
+ .navds-timeline__popover:focus {
363
+ outline: none;
364
+ }
365
+
366
+ .navds-timeline__popover-arrow {
367
+ position: absolute;
368
+ z-index: -1;
369
+ transform: rotate(45deg);
370
+ background-color: var(--ac-popover-bg, var(--a-surface-default));
371
+ border: 1px solid;
372
+ border-color: var(--ac-popover-border, var(--a-border-default));
373
+ width: 1rem;
374
+ height: 1rem;
375
+ }
376
+
377
+ .navds-timeline__popover[data-placement^="top"] > .navds-timeline__popover-arrow {
378
+ border-left-color: transparent;
379
+ border-top-color: transparent;
380
+ }
381
+
382
+ .navds-timeline__popover[data-placement^="bottom"] > .navds-timeline__popover-arrow {
383
+ border-bottom-color: transparent;
384
+ border-right-color: transparent;
385
+ }
386
+
387
+ .navds-timeline__popover[data-placement^="left"] > .navds-timeline__popover-arrow {
388
+ border-left-color: transparent;
389
+ border-bottom-color: transparent;
390
+ }
391
+
392
+ .navds-timeline__popover[data-placement^="right"] > .navds-timeline__popover-arrow {
393
+ border-right-color: transparent;
394
+ border-top-color: transparent;
395
+ }
396
+
397
+ @media (forced-colors: active) {
398
+ .navds-timeline__period:focus {
399
+ outline: 2px solid highlight;
400
+ outline-offset: 2px;
401
+ }
402
+
403
+ .navds-timeline__period--success,
404
+ .navds-timeline__period--warning,
405
+ .navds-timeline__period--info,
406
+ .navds-timeline__period--neutral,
407
+ .navds-timeline__period--danger {
408
+ forced-color-adjust: none;
409
+ }
410
+
411
+ .navds-timeline__row {
412
+ border: 1px solid transparent;
413
+ }
414
+
415
+ .navds-timeline__pin-wrapper::before {
416
+ border: 1px solid transparent;
417
+ }
418
+
419
+ .navds-timeline__pin-button {
420
+ outline: 4px solid transparent;
421
+ }
422
+
423
+ .navds-timeline__pin-button:focus,
424
+ .navds-timeline__pin-button:focus-visible {
425
+ outline: 4px solid highlight;
426
+ outline-offset: 2px;
427
+ box-shadow: none;
428
+ }
429
+
430
+ .navds-timeline__popover[data-placement^="top"] > .navds-timeline__popover-arrow {
431
+ border-left-color: canvas;
432
+ border-top-color: canvas;
433
+ }
434
+
435
+ .navds-timeline__popover[data-placement^="bottom"] > .navds-timeline__popover-arrow {
436
+ border-bottom-color: canvas;
437
+ border-right-color: canvas;
438
+ }
439
+
440
+ .navds-timeline__popover[data-placement^="left"] > .navds-timeline__popover-arrow {
441
+ border-left-color: canvas;
442
+ border-bottom-color: canvas;
443
+ }
444
+
445
+ .navds-timeline__popover[data-placement^="right"] > .navds-timeline__popover-arrow {
446
+ border-right-color: canvas;
447
+ border-top-color: canvas;
448
+ }
449
+ }
@@ -0,0 +1,181 @@
1
+ .navds-toggle-group__wrapper {
2
+ display: grid;
3
+ justify-items: start;
4
+ gap: var(--a-spacing-2);
5
+ }
6
+
7
+ .navds-toggle-group__wrapper--fill {
8
+ justify-items: initial;
9
+ }
10
+
11
+ .navds-toggle-group {
12
+ border-radius: var(--a-border-radius-medium);
13
+ background-color: var(--ac-toggle-group-bg, var(--a-surface-transparent));
14
+ box-shadow: inset 0 0 0 1px var(--ac-toggle-group-border, var(--a-border-default));
15
+ padding: calc(var(--a-spacing-1) + 0.0625rem);
16
+ gap: var(--a-spacing-1);
17
+ display: inline-grid;
18
+ grid-auto-flow: column;
19
+ grid-auto-columns: 1fr;
20
+ }
21
+
22
+ .navds-toggle-group--small {
23
+ padding: calc(var(--a-spacing-05) + 0.0625rem);
24
+ }
25
+
26
+ .navds-toggle-group--neutral {
27
+ background-color: var(--ac-toggle-group-neutral-bg, var(--a-surface-transparent));
28
+ box-shadow: inset 0 0 0 1px var(--ac-toggle-group-neutral-border, var(--a-border-default));
29
+ }
30
+
31
+ .navds-toggle-group__button {
32
+ display: inline-flex;
33
+ align-items: center;
34
+ justify-content: center;
35
+ padding: var(--a-spacing-1) var(--a-spacing-3);
36
+ min-height: 2.375rem;
37
+ border: none;
38
+ cursor: pointer;
39
+ background-color: var(--ac-toggle-group-button-bg, var(--a-surface-transparent));
40
+ color: var(--ac-toggle-group-button-text, var(--a-text-default));
41
+ border-radius: var(--a-border-radius-small);
42
+ min-width: fit-content;
43
+ font-weight: var(--a-font-weight-regular);
44
+ }
45
+
46
+ .navds-toggle-group--medium > :where(.navds-toggle-group__button:first-of-type:focus-visible) {
47
+ border-start-start-radius: 1px;
48
+ border-end-start-radius: 1px;
49
+ }
50
+
51
+ .navds-toggle-group--medium > :where(.navds-toggle-group__button:last-of-type:focus-visible) {
52
+ border-start-end-radius: 1px;
53
+ border-end-end-radius: 1px;
54
+ }
55
+
56
+ .navds-toggle-group--neutral > .navds-toggle-group__button {
57
+ background-color: var(--ac-toggle-group-button-neutral-bg, var(--a-surface-transparent));
58
+ color: var(--ac-toggle-group-button-neutral-text, var(--a-text-default));
59
+ }
60
+
61
+ .navds-toggle-group__button:hover {
62
+ background-color: var(--ac-toggle-group-button-hover-bg, var(--a-surface-action-subtle));
63
+ color: var(--ac-toggle-group-button-hover-text, var(--a-text-default));
64
+ }
65
+
66
+ .navds-toggle-group--neutral > .navds-toggle-group__button:hover {
67
+ background-color: var(--ac-toggle-group-button-neutral-hover-bg, var(--a-surface-neutral-subtle-hover));
68
+ color: var(--ac-toggle-group-button-neutral-hover-text, var(--a-text-default));
69
+ }
70
+
71
+ .navds-toggle-group__button:focus-visible {
72
+ outline: 2px solid transparent;
73
+ outline-offset: 1px;
74
+ box-shadow:
75
+ 0 0 0 1px var(--a-surface-default),
76
+ 0 0 0 4px var(--a-border-focus);
77
+ }
78
+
79
+ @supports not selector(:focus-visible) {
80
+ .navds-toggle-group__button:focus {
81
+ outline: 2px solid transparent;
82
+ outline-offset: 1px;
83
+ box-shadow:
84
+ 0 0 0 1px var(--a-surface-default),
85
+ 0 0 0 4px var(--a-border-focus);
86
+ }
87
+ }
88
+
89
+ .navds-toggle-group__button:focus-visible:hover[aria-pressed="false"] {
90
+ box-shadow:
91
+ 0 0 0 1px var(--ac-toggle-group-button-hover-bg, var(--a-surface-action-subtle)),
92
+ 0 0 0 4px var(--a-border-focus);
93
+ }
94
+
95
+ @supports not selector(:focus-visible) {
96
+ .navds-toggle-group__button:focus:hover[aria-pressed="false"] {
97
+ box-shadow:
98
+ 0 0 0 1px var(--ac-toggle-group-button-hover-bg, var(--a-surface-action-subtle)),
99
+ 0 0 0 4px var(--a-border-focus);
100
+ }
101
+ }
102
+
103
+ .navds-toggle-group--neutral > .navds-toggle-group__button:focus:hover[aria-pressed="false"] {
104
+ box-shadow:
105
+ 0 0 0 1px var(--ac-toggle-group-button-neutral-hover-bg, var(--a-surface-neutral-subtle-hover)),
106
+ 0 0 0 4px var(--a-border-focus);
107
+ }
108
+
109
+ @supports not selector(:focus-visible) {
110
+ .navds-toggle-group--neutral > .navds-toggle-group__button:focus-visible:hover[aria-pressed="false"] {
111
+ box-shadow:
112
+ 0 0 0 1px var(--ac-toggle-group-button-neutral-hover-bg, var(--a-surface-neutral-subtle-hover)),
113
+ 0 0 0 4px var(--a-border-focus);
114
+ }
115
+ }
116
+
117
+ .navds-toggle-group__button-inner {
118
+ display: flex;
119
+ align-items: center;
120
+ gap: var(--a-spacing-2);
121
+ font-weight: inherit;
122
+ }
123
+
124
+ .navds-toggle-group__button-inner > * {
125
+ flex-shrink: 0;
126
+ }
127
+
128
+ .navds-toggle-group__button[aria-pressed="true"],
129
+ .navds-toggle-group__button[aria-checked="true"] {
130
+ background-color: var(--ac-toggle-group-selected-bg, var(--a-surface-action-selected));
131
+ color: var(--ac-toggle-group-selected-text, var(--a-text-on-action));
132
+ }
133
+
134
+ .navds-toggle-group--neutral > .navds-toggle-group__button[aria-pressed="true"],
135
+ .navds-toggle-group--neutral > .navds-toggle-group__button[aria-checked="true"] {
136
+ background-color: var(--ac-toggle-group-neutral-selected-bg, var(--a-surface-neutral-selected));
137
+ color: var(--ac-toggle-group-neutral-selected-text, var(--a-text-on-neutral));
138
+ }
139
+
140
+ .navds-toggle-group--small > .navds-toggle-group__button {
141
+ padding: var(--a-spacing-05) var(--a-spacing-3);
142
+ min-height: 1.625rem;
143
+ min-width: fit-content;
144
+ }
145
+
146
+ .navds-toggle-group__button > .navds-toggle-group__button-inner > svg {
147
+ font-size: 1.5rem;
148
+ }
149
+
150
+ .navds-toggle-group--small > .navds-toggle-group__button > .navds-toggle-group__button-inner > svg {
151
+ font-size: 1.125rem;
152
+ }
153
+
154
+ @media (forced-colors: active) {
155
+ .navds-toggle-group {
156
+ border: 2px solid transparent;
157
+ }
158
+
159
+ .navds-toggle-group__button:hover {
160
+ color: highlight;
161
+ }
162
+
163
+ .navds-toggle-group__button[aria-checked="true"],
164
+ .navds-toggle-group__button[aria-pressed="true"] {
165
+ background-color: selecteditem;
166
+ color: selecteditemtext;
167
+ }
168
+
169
+ .navds-toggle-group__button[aria-checked="true"] > *,
170
+ .navds-toggle-group__button[aria-pressed="true"] > * {
171
+ forced-color-adjust: none;
172
+ }
173
+
174
+ .navds-toggle-group__button:active {
175
+ background-color: unset !important;
176
+ }
177
+
178
+ .navds-toggle-group__button:focus-visible {
179
+ outline-color: highlight;
180
+ }
181
+ }
@@ -0,0 +1,81 @@
1
+ @keyframes tooltipFadeIn {
2
+ 0% {
3
+ opacity: 0;
4
+ }
5
+
6
+ 100% {
7
+ opacity: 1;
8
+ }
9
+ }
10
+
11
+ .navds-tooltip {
12
+ z-index: var(--a-z-index-tooltip);
13
+ background-color: var(--ac-tooltip-bg, var(--a-surface-inverted));
14
+ color: var(--ac-tooltip-text, var(--a-text-on-inverted));
15
+ border-radius: var(--a-border-radius-small);
16
+ padding: 0 var(--a-spacing-2);
17
+ align-items: center;
18
+ filter: drop-shadow(0 2px 4px rgba(0 0 0 / 0.1)) drop-shadow(0 4px 6px rgba(0 0 0 / 0.1));
19
+ display: flex;
20
+ flex-direction: column;
21
+ animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
22
+ animation-duration: 0.2s;
23
+ animation-name: tooltipFadeIn;
24
+ text-align: center;
25
+ }
26
+
27
+ .navds-tooltip__arrow {
28
+ height: 0.4375rem;
29
+ width: 0.4375rem;
30
+ transform: rotate(45deg);
31
+ z-index: -1;
32
+ background-color: var(--ac-tooltip-bg, var(--a-surface-inverted));
33
+ position: absolute;
34
+ }
35
+
36
+ .navds-tooltip__keys {
37
+ padding-bottom: var(--a-spacing-1);
38
+ display: flex;
39
+ gap: var(--a-spacing-1);
40
+ }
41
+
42
+ .navds-tooltip__key {
43
+ font-family: var(--a-font-family);
44
+ background-color: var(--ac-tooltip-key-bg, var(--a-surface-neutral));
45
+ color: var(--ac-tooltip-key-text, var(--a-text-on-inverted));
46
+ border-radius: var(--a-border-radius-small);
47
+ padding: 0 var(--a-spacing-1);
48
+ min-width: 1.125rem;
49
+ height: 1.125rem;
50
+ display: inline-flex;
51
+ align-items: center;
52
+ justify-content: center;
53
+ }
54
+
55
+ @media (forced-colors: active) {
56
+ .navds-tooltip {
57
+ --__a-tooltip-high-contrast-border: 1px solid transparent;
58
+
59
+ border: var(--__a-tooltip-high-contrast-border);
60
+ }
61
+
62
+ .navds-tooltip[data-side="top"] .navds-tooltip__arrow {
63
+ border-bottom: var(--__a-tooltip-high-contrast-border);
64
+ border-right: var(--__a-tooltip-high-contrast-border);
65
+ }
66
+
67
+ .navds-tooltip[data-side="right"] .navds-tooltip__arrow {
68
+ border-bottom: var(--__a-tooltip-high-contrast-border);
69
+ border-left: var(--__a-tooltip-high-contrast-border);
70
+ }
71
+
72
+ .navds-tooltip[data-side="bottom"] .navds-tooltip__arrow {
73
+ border-left: var(--__a-tooltip-high-contrast-border);
74
+ border-top: var(--__a-tooltip-high-contrast-border);
75
+ }
76
+
77
+ .navds-tooltip[data-side="left"] .navds-tooltip__arrow {
78
+ border-top: var(--__a-tooltip-high-contrast-border);
79
+ border-right: var(--__a-tooltip-high-contrast-border);
80
+ }
81
+ }