@navikt/ds-css 8.5.1 → 8.5.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.5.1",
3
+ "version": "8.5.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.5.1",
33
+ "@navikt/ds-tokens": "^8.5.2",
34
34
  "browserslist": "^4.25.0",
35
35
  "esbuild": "^0.27.2",
36
36
  "fast-glob": "3.3.3",
@@ -13,9 +13,6 @@
13
13
  }
14
14
 
15
15
  .aksel-data-table {
16
- table-layout: fixed;
17
- width: 1px; /* This is for some reason needed to make the browser respect the column width. TODO: Test in all browsers */
18
-
19
16
  /*
20
17
  We should NOT set min-width:100% b.c. it will cause inconsistencies in column resizing.
21
18
  We could discuss whether it matters, though. But it feels buggy.
@@ -24,6 +21,15 @@
24
21
  We could have a toggle for the resize feature, and let the consumer decide which downside they prefer. Might need that anyways.
25
22
  */
26
23
 
24
+ &[data-layout="fixed"] {
25
+ table-layout: fixed;
26
+ width: 1px; /* This is for some reason needed to make the browser respect the column width. TODO: Test in all browsers */
27
+ }
28
+
29
+ &[data-layout="auto"] {
30
+ min-width: 100%;
31
+ }
32
+
27
33
  --__axc-data-table-density: var(--ax-space-16) 0;
28
34
 
29
35
  &[data-density="condensed"] {
package/src/timeline.css CHANGED
@@ -177,7 +177,7 @@
177
177
  .aksel-timeline__pin-wrapper::before {
178
178
  content: "";
179
179
  top: 0.9rem;
180
- height: calc(100% - 0.9rem * 2);
180
+ height: calc(100% - 2rem);
181
181
  width: 1px;
182
182
  margin: 0 auto;
183
183
  background: var(--ax-border-neutral-strong);