@navikt/ds-css 8.10.0 → 8.10.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@navikt/ds-css",
3
- "version": "8.10.0",
3
+ "version": "8.10.2",
4
4
  "description": "CSS for Nav Designsystem",
5
5
  "author": "Aksel | Nav designsystem team",
6
6
  "keywords": [
@@ -30,7 +30,7 @@
30
30
  "css:get-version": "node config/get-version.js"
31
31
  },
32
32
  "devDependencies": {
33
- "@navikt/ds-tokens": "^8.10.0",
33
+ "@navikt/ds-tokens": "^8.10.2",
34
34
  "browserslist": "^4.25.0",
35
35
  "esbuild": "^0.27.4",
36
36
  "fast-glob": "3.3.3",
@@ -1,3 +1,4 @@
1
+ /* stylelint-disable csstools/value-no-unknown-custom-properties */
1
2
  /* stylelint-disable no-duplicate-selectors */
2
3
 
3
4
  .aksel-data-table__border-wrapper {
@@ -151,6 +152,15 @@
151
152
  text-align: start;
152
153
  vertical-align: middle;
153
154
  scroll-margin: var(--ax-space-0);
155
+ padding: 0;
156
+
157
+ &[data-nested="true"] {
158
+ position: relative;
159
+
160
+ & > div {
161
+ margin-inline-start: calc(32px + 8px + calc(var(--__axc-data-table-nested-depth) * var(--ax-space-16)));
162
+ }
163
+ }
154
164
 
155
165
  .aksel-data-table__thead & {
156
166
  background-color: var(--ax-bg-neutral-soft);
@@ -219,9 +229,11 @@
219
229
  }
220
230
  }
221
231
 
232
+ --__axc-data-table-pi-cell: var(--ax-space-16);
233
+
222
234
  &:not([data-selectable="true"]) > div {
223
235
  padding-block: var(--__axc-data-table-density);
224
- padding-inline: var(--ax-space-16);
236
+ padding-inline: var(--__axc-data-table-pi-cell);
225
237
 
226
238
  .aksel-data-table[data-truncate-content="true"] & {
227
239
  text-overflow: ellipsis;
@@ -240,11 +252,11 @@
240
252
  position: relative;
241
253
  font-weight: var(--ax-font-weight-bold);
242
254
 
243
- &:has(.aksel-data-table__th-sort-button):hover {
255
+ &:has(.aksel-data-table__th-sort-button:hover) {
244
256
  background-color: var(--ax-bg-neutral-moderate-hover);
245
257
  }
246
258
 
247
- &:has(.aksel-data-table__th-sort-button):active {
259
+ &:has(.aksel-data-table__th-sort-button:active) {
248
260
  background-color: var(--ax-bg-neutral-moderate-pressed);
249
261
  }
250
262
 
@@ -265,6 +277,7 @@
265
277
  background-color: transparent;
266
278
  border: none;
267
279
  font-weight: inherit;
280
+ padding: 0;
268
281
 
269
282
  &:focus-visible {
270
283
  outline: none;
@@ -571,3 +584,12 @@ html[data-dragging-cursor="true"] *::before,
571
584
  html[data-dragging-cursor="true"] *::after {
572
585
  cursor: grabbing !important;
573
586
  }
587
+
588
+ /* TODO: alignment not optimal when resizing column with nesting */
589
+ .aksel-data-table__nested-toggle {
590
+ position: absolute;
591
+ inset-block: 0;
592
+ left: calc(var(--__axc-data-table-pi-cell) + var(--__axc-data-table-nested-depth) * var(--ax-space-16));
593
+ display: flex;
594
+ align-items: center;
595
+ }
package/src/dialog.css CHANGED
@@ -96,7 +96,7 @@
96
96
  transform: translateY(calc(1rem * var(--__axc-nested-level) * -1)) scale(calc(1 - 0.02 * var(--__axc-nested-level)));
97
97
  }
98
98
 
99
- @media (max-width: 768px) or (max-height: 479px) {
99
+ @media (max-width: 480px) or (max-height: 479px) {
100
100
  --__axc-dialog-transform: translateY(35%);
101
101
 
102
102
  max-height: calc(100dvh - max(16px, 10dvh));
package/src/modal.css CHANGED
@@ -49,13 +49,7 @@
49
49
  left: 0;
50
50
  }
51
51
 
52
- .aksel-modal--medium {
53
- width: 700px;
54
- }
55
-
56
52
  .aksel-modal--small {
57
- width: 450px;
58
-
59
53
  & .aksel-modal__header {
60
54
  padding: var(--ax-space-12) var(--ax-space-16);
61
55
  }
@@ -70,6 +64,14 @@
70
64
  }
71
65
  }
72
66
 
67
+ .aksel-modal--width-medium {
68
+ width: 700px;
69
+ }
70
+
71
+ .aksel-modal--width-small {
72
+ width: 450px;
73
+ }
74
+
73
75
  @media (min-width: 480px) {
74
76
  .aksel-modal {
75
77
  max-width: calc(100% - 2em);