@navikt/ds-css 8.10.4 → 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/button.css +19 -4
- package/dist/component/button.min.css +1 -1
- package/dist/components.css +19 -4
- 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 +20 -5
- package/dist/index.min.css +1 -1
- package/package.json +2 -2
- package/src/button.css +31 -6
- package/src/data-table.css +14 -3
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": [
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"css:get-version": "node config/get-version.js"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@navikt/ds-tokens": "^8.10.
|
|
35
|
+
"@navikt/ds-tokens": "^8.10.5",
|
|
36
36
|
"browserslist": "^4.25.0",
|
|
37
37
|
"esbuild": "^0.27.4",
|
|
38
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
|
@@ -513,6 +513,11 @@
|
|
|
513
513
|
width: auto;
|
|
514
514
|
}
|
|
515
515
|
|
|
516
|
+
.aksel-data-table__drag-and-drop-root {
|
|
517
|
+
padding: 0;
|
|
518
|
+
margin: 0;
|
|
519
|
+
}
|
|
520
|
+
|
|
516
521
|
.aksel-data-drag-and-drop__drag-handler__button {
|
|
517
522
|
height: 1.5rem;
|
|
518
523
|
position: relative;
|
|
@@ -533,12 +538,11 @@
|
|
|
533
538
|
}
|
|
534
539
|
|
|
535
540
|
.aksel-data-table__drag-and-drop-item {
|
|
536
|
-
background-color: var(--ax-bg-default);
|
|
537
|
-
|
|
538
541
|
&[data-overlay="true"] {
|
|
539
542
|
width: 100%;
|
|
540
543
|
opacity: 0.8;
|
|
541
544
|
box-shadow: var(--ax-shadow-dialog);
|
|
545
|
+
background-color: var(--ax-bg-default);
|
|
542
546
|
}
|
|
543
547
|
|
|
544
548
|
/* TODO - might be removable */
|
|
@@ -555,7 +559,7 @@
|
|
|
555
559
|
}
|
|
556
560
|
}
|
|
557
561
|
|
|
558
|
-
.aksel-data-drag-and-drop__drag-
|
|
562
|
+
.aksel-data-drag-and-drop__drag-handler__legacy,
|
|
559
563
|
.aksel-data-drag-and-drop__drag-handler {
|
|
560
564
|
position: relative;
|
|
561
565
|
height: 1.5rem;
|
|
@@ -661,3 +665,10 @@ html[data-dragging-cursor="true"] *::after {
|
|
|
661
665
|
.aksel-data-table__details-panel-row {
|
|
662
666
|
box-shadow: inset 1px 1px 0 0 var(--ax-border-neutral-subtle);
|
|
663
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
|
+
}
|