@navikt/ds-css 8.10.3 → 8.10.5
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/dist/component/accordion.css +6 -21
- package/dist/component/accordion.min.css +1 -1
- package/dist/component/actionmenu.css +1 -9
- package/dist/component/alert.css +6 -16
- package/dist/component/alert.min.css +1 -1
- package/dist/component/button.css +16 -62
- package/dist/component/button.min.css +1 -1
- package/dist/component/chat.css +3 -19
- package/dist/component/chat.min.css +1 -1
- package/dist/component/date.css +11 -66
- package/dist/component/date.min.css +1 -1
- package/dist/component/dialog.css +15 -57
- package/dist/component/dialog.min.css +1 -1
- package/dist/component/dropdown.css +1 -2
- package/dist/component/dropdown.min.css +1 -1
- package/dist/component/expansioncard.css +5 -27
- package/dist/component/expansioncard.min.css +1 -1
- package/dist/component/form.css +26 -208
- package/dist/component/form.min.css +1 -1
- package/dist/component/guidepanel.css +3 -19
- package/dist/component/guidepanel.min.css +1 -1
- package/dist/component/helptext.css +1 -5
- package/dist/component/helptext.min.css +1 -1
- package/dist/component/inlinemessage.css +1 -1
- package/dist/component/inlinemessage.min.css +1 -1
- package/dist/component/internalheader.css +1 -10
- package/dist/component/internalheader.min.css +1 -1
- package/dist/component/link.css +1 -5
- package/dist/component/linkanchor.css +2 -10
- package/dist/component/linkcard.css +8 -55
- package/dist/component/linkcard.min.css +1 -1
- package/dist/component/list.css +3 -3
- package/dist/component/list.min.css +1 -1
- package/dist/component/modal.css +3 -16
- package/dist/component/modal.min.css +1 -1
- package/dist/component/primitives.css +4 -18
- package/dist/component/primitives.min.css +1 -1
- package/dist/component/process.css +10 -53
- package/dist/component/process.min.css +1 -1
- package/dist/component/skeleton.css +0 -1
- package/dist/component/skeleton.min.css +1 -1
- package/dist/component/stepper.css +2 -22
- package/dist/component/stepper.min.css +1 -1
- package/dist/component/table.css +1 -22
- package/dist/component/table.min.css +1 -1
- package/dist/component/tabs.css +3 -3
- package/dist/component/tabs.min.css +1 -1
- package/dist/component/tag.css +1 -12
- package/dist/component/tag.min.css +1 -1
- package/dist/component/timeline.css +2 -12
- package/dist/component/timeline.min.css +1 -1
- package/dist/component/togglegroup.css +0 -1
- package/dist/component/togglegroup.min.css +1 -1
- package/dist/components.css +136 -755
- package/dist/components.min.css +1 -1
- package/dist/global/tokens.css +1 -1
- package/dist/global/tokens.min.css +1 -1
- package/dist/index.css +137 -756
- package/dist/index.min.css +1 -1
- package/package.json +5 -4
- package/src/button.css +31 -6
- package/src/data-table.css +86 -7
- package/.gitignore +0 -1
- package/CHANGELOG.md +0 -1580
- package/config/_mappings.d.ts +0 -25
- package/config/_mappings.js +0 -264
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@navikt/ds-css",
|
|
3
|
-
"version": "8.10.
|
|
3
|
+
"version": "8.10.5",
|
|
4
4
|
"description": "CSS for Nav Designsystem",
|
|
5
5
|
"author": "Aksel | Nav designsystem team",
|
|
6
6
|
"keywords": [
|
|
@@ -14,8 +14,9 @@
|
|
|
14
14
|
"files": [
|
|
15
15
|
"*",
|
|
16
16
|
"!dist/version",
|
|
17
|
-
"!config
|
|
18
|
-
"
|
|
17
|
+
"!config",
|
|
18
|
+
"!.gitignore",
|
|
19
|
+
"!CHANGELOG.md"
|
|
19
20
|
],
|
|
20
21
|
"repository": {
|
|
21
22
|
"type": "git",
|
|
@@ -31,7 +32,7 @@
|
|
|
31
32
|
"css:get-version": "node config/get-version.js"
|
|
32
33
|
},
|
|
33
34
|
"devDependencies": {
|
|
34
|
-
"@navikt/ds-tokens": "^8.10.
|
|
35
|
+
"@navikt/ds-tokens": "^8.10.5",
|
|
35
36
|
"browserslist": "^4.25.0",
|
|
36
37
|
"esbuild": "^0.27.4",
|
|
37
38
|
"fast-glob": "3.3.3",
|
package/src/button.css
CHANGED
|
@@ -42,14 +42,22 @@
|
|
|
42
42
|
--__axc-button-border-color: var(--ax-border-default);
|
|
43
43
|
|
|
44
44
|
background-color: transparent;
|
|
45
|
-
color: var(--ax-text-subtle);
|
|
46
45
|
|
|
46
|
+
/* secondary + neutral should use "default" text color.
|
|
47
|
+
Check for data-color=neutral on both the button itself and the parents. */
|
|
47
48
|
&[data-color="neutral"],
|
|
48
|
-
[data-color="neutral"]
|
|
49
|
-
[data-color="neutral"] :not([data-color]) &:not([data-color]) {
|
|
49
|
+
[data-color="neutral"] &:not([data-color]) {
|
|
50
50
|
color: var(--ax-text-default);
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
+
/* secondary + NOT neutral should use "subtle" text color.
|
|
54
|
+
We need to explicitly target cases where a parent has data-color=neutral but
|
|
55
|
+
a closer parent has a different data-color (overriding the selector above). */
|
|
56
|
+
&,
|
|
57
|
+
[data-color="neutral"] [data-color]:not([data-color="neutral"]) & {
|
|
58
|
+
color: var(--ax-text-subtle);
|
|
59
|
+
}
|
|
60
|
+
|
|
53
61
|
&:hover {
|
|
54
62
|
--__axc-button-border-color: var(--ax-border-strong);
|
|
55
63
|
|
|
@@ -73,14 +81,22 @@
|
|
|
73
81
|
|
|
74
82
|
&[data-variant="tertiary"] {
|
|
75
83
|
background-color: transparent;
|
|
76
|
-
color: var(--ax-text-subtle);
|
|
77
84
|
|
|
85
|
+
/* tertiary + neutral should use "default" text color.
|
|
86
|
+
Check for data-color=neutral on both the button itself and the parents. */
|
|
78
87
|
&[data-color="neutral"],
|
|
79
|
-
[data-color="neutral"]
|
|
80
|
-
[data-color="neutral"] :not([data-color]) &:not([data-color], [data-pressed="true"]) {
|
|
88
|
+
[data-color="neutral"] &:not([data-color], [data-pressed="true"]) {
|
|
81
89
|
color: var(--ax-text-default);
|
|
82
90
|
}
|
|
83
91
|
|
|
92
|
+
/* tertiary + NOT neutral should use "subtle" text color.
|
|
93
|
+
We need to explicitly target cases where a parent has data-color=neutral but
|
|
94
|
+
a closer parent has a different data-color (overriding the selector above). */
|
|
95
|
+
&,
|
|
96
|
+
[data-color="neutral"] [data-color]:not([data-color="neutral"]) &:not([data-pressed="true"]) {
|
|
97
|
+
color: var(--ax-text-subtle);
|
|
98
|
+
}
|
|
99
|
+
|
|
84
100
|
&:hover {
|
|
85
101
|
background-color: var(--ax-bg-moderate-hoverA);
|
|
86
102
|
}
|
|
@@ -231,6 +247,15 @@
|
|
|
231
247
|
color: highlight;
|
|
232
248
|
box-shadow: none;
|
|
233
249
|
}
|
|
250
|
+
|
|
251
|
+
&[data-variant="tertiary"][data-pressed="true"] {
|
|
252
|
+
background-color: selecteditem;
|
|
253
|
+
color: selecteditemtext;
|
|
254
|
+
|
|
255
|
+
& span {
|
|
256
|
+
forced-color-adjust: none;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
234
259
|
}
|
|
235
260
|
|
|
236
261
|
.aksel-button:not(:disabled):hover span {
|
package/src/data-table.css
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
overflow: auto;
|
|
12
12
|
width: 100%;
|
|
13
13
|
position: relative;
|
|
14
|
+
scroll-timeline: --horizontal-table-scroll inline;
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
.aksel-data-table {
|
|
@@ -104,15 +105,17 @@
|
|
|
104
105
|
position: sticky;
|
|
105
106
|
top: 0;
|
|
106
107
|
z-index: 3;
|
|
108
|
+
box-shadow: 1px 1px 0 0 var(--ax-border-neutral-subtle);
|
|
107
109
|
|
|
108
|
-
|
|
110
|
+
/* This breaks filler-cells ⬇️. Trying box-shadow instead ⬆️ */
|
|
111
|
+
/* &::after {
|
|
109
112
|
content: "";
|
|
110
113
|
position: absolute;
|
|
111
114
|
inset-inline: 0;
|
|
112
115
|
bottom: -1px;
|
|
113
116
|
pointer-events: none;
|
|
114
117
|
border-bottom: 1px solid var(--ax-border-neutral-subtle);
|
|
115
|
-
}
|
|
118
|
+
} */
|
|
116
119
|
}
|
|
117
120
|
}
|
|
118
121
|
|
|
@@ -146,6 +149,27 @@
|
|
|
146
149
|
box-shadow: 0 1px 0 0 var(--ax-border-neutral-subtle);
|
|
147
150
|
}
|
|
148
151
|
|
|
152
|
+
@keyframes scroll-shadow-fade-start {
|
|
153
|
+
0% {
|
|
154
|
+
opacity: 0;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
10%,
|
|
158
|
+
100% {
|
|
159
|
+
opacity: 1;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
@keyframes scroll-shadow-fade-end {
|
|
164
|
+
90% {
|
|
165
|
+
opacity: 1;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
100% {
|
|
169
|
+
opacity: 0;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
149
173
|
.aksel-data-table__cell {
|
|
150
174
|
/* border doesn't work on sticky thead when we have collapsed borders, so using box-shadow instead */
|
|
151
175
|
box-shadow: inset 1px 1px 0 0 var(--ax-border-neutral-subtle);
|
|
@@ -195,6 +219,24 @@
|
|
|
195
219
|
&[data-sticky="start"] {
|
|
196
220
|
left: 0;
|
|
197
221
|
|
|
222
|
+
&::before {
|
|
223
|
+
content: "";
|
|
224
|
+
position: absolute;
|
|
225
|
+
inset: 0;
|
|
226
|
+
width: 100%;
|
|
227
|
+
height: 100%;
|
|
228
|
+
pointer-events: none;
|
|
229
|
+
box-shadow: 4px 0 8px 1px var(--ax-border-neutral-subtleA);
|
|
230
|
+
clip-path: inset(0 -24px 0 0);
|
|
231
|
+
opacity: 0;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.aksel-data-table[data-scroll] &::before {
|
|
235
|
+
opacity: 1;
|
|
236
|
+
animation: scroll-shadow-fade-start 1s linear;
|
|
237
|
+
animation-timeline: --horizontal-table-scroll;
|
|
238
|
+
}
|
|
239
|
+
|
|
198
240
|
&::after {
|
|
199
241
|
inset-inline: 0 -1px;
|
|
200
242
|
border-right-width: 1px;
|
|
@@ -203,10 +245,32 @@
|
|
|
203
245
|
|
|
204
246
|
&[data-sticky="end"] {
|
|
205
247
|
right: 0;
|
|
248
|
+
|
|
249
|
+
&::before {
|
|
250
|
+
content: "";
|
|
251
|
+
position: absolute;
|
|
252
|
+
inset: 0;
|
|
253
|
+
width: 100%;
|
|
254
|
+
height: 100%;
|
|
255
|
+
pointer-events: none;
|
|
256
|
+
box-shadow: -4px 0 8px 1px var(--ax-border-neutral-subtleA);
|
|
257
|
+
clip-path: inset(0 0 0 -24px);
|
|
258
|
+
opacity: 0;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.aksel-data-table[data-scroll] &::before {
|
|
262
|
+
opacity: 1;
|
|
263
|
+
animation: scroll-shadow-fade-end 1s linear;
|
|
264
|
+
animation-timeline: --horizontal-table-scroll;
|
|
265
|
+
}
|
|
206
266
|
}
|
|
207
267
|
|
|
208
268
|
background-color: var(--ax-bg-raised);
|
|
209
269
|
|
|
270
|
+
.aksel-data-table__tr[data-selected="true"] & {
|
|
271
|
+
background-color: var(--ax-bg-soft);
|
|
272
|
+
}
|
|
273
|
+
|
|
210
274
|
.aksel-data-table__thead & {
|
|
211
275
|
background-color: var(--ax-bg-neutral-soft);
|
|
212
276
|
}
|
|
@@ -234,11 +298,11 @@
|
|
|
234
298
|
&:not([data-selectable="true"]) > div {
|
|
235
299
|
padding-block: var(--__axc-data-table-density);
|
|
236
300
|
padding-inline: var(--__axc-data-table-pi-cell);
|
|
301
|
+
overflow: hidden;
|
|
237
302
|
|
|
238
303
|
.aksel-data-table[data-truncate-content="true"] & {
|
|
239
304
|
text-overflow: ellipsis;
|
|
240
305
|
white-space: nowrap;
|
|
241
|
-
overflow: hidden;
|
|
242
306
|
}
|
|
243
307
|
}
|
|
244
308
|
}
|
|
@@ -444,9 +508,14 @@
|
|
|
444
508
|
}
|
|
445
509
|
|
|
446
510
|
.aksel-data-table__filler-cell {
|
|
447
|
-
width: auto;
|
|
448
511
|
display: table-cell;
|
|
449
512
|
padding: 0;
|
|
513
|
+
width: auto;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
.aksel-data-table__drag-and-drop-root {
|
|
517
|
+
padding: 0;
|
|
518
|
+
margin: 0;
|
|
450
519
|
}
|
|
451
520
|
|
|
452
521
|
.aksel-data-drag-and-drop__drag-handler__button {
|
|
@@ -469,12 +538,11 @@
|
|
|
469
538
|
}
|
|
470
539
|
|
|
471
540
|
.aksel-data-table__drag-and-drop-item {
|
|
472
|
-
background-color: var(--ax-bg-default);
|
|
473
|
-
|
|
474
541
|
&[data-overlay="true"] {
|
|
475
542
|
width: 100%;
|
|
476
543
|
opacity: 0.8;
|
|
477
544
|
box-shadow: var(--ax-shadow-dialog);
|
|
545
|
+
background-color: var(--ax-bg-default);
|
|
478
546
|
}
|
|
479
547
|
|
|
480
548
|
/* TODO - might be removable */
|
|
@@ -491,7 +559,7 @@
|
|
|
491
559
|
}
|
|
492
560
|
}
|
|
493
561
|
|
|
494
|
-
.aksel-data-drag-and-drop__drag-
|
|
562
|
+
.aksel-data-drag-and-drop__drag-handler__legacy,
|
|
495
563
|
.aksel-data-drag-and-drop__drag-handler {
|
|
496
564
|
position: relative;
|
|
497
565
|
height: 1.5rem;
|
|
@@ -593,3 +661,14 @@ html[data-dragging-cursor="true"] *::after {
|
|
|
593
661
|
display: flex;
|
|
594
662
|
align-items: center;
|
|
595
663
|
}
|
|
664
|
+
|
|
665
|
+
.aksel-data-table__details-panel-row {
|
|
666
|
+
box-shadow: inset 1px 1px 0 0 var(--ax-border-neutral-subtle);
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
.aksel-data-table__details-panel-row-cell {
|
|
670
|
+
&:focus-visible {
|
|
671
|
+
outline: 2px solid var(--ax-border-focus);
|
|
672
|
+
outline-offset: -4px;
|
|
673
|
+
}
|
|
674
|
+
}
|
package/.gitignore
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
!*.d.ts
|