@navikt/ds-css 8.2.1 → 8.3.0

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.2.1",
3
+ "version": "8.3.0",
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.2.1",
33
+ "@navikt/ds-tokens": "^8.3.0",
34
34
  "browserslist": "^4.25.0",
35
35
  "esbuild": "^0.25.11",
36
36
  "fast-glob": "3.3.3",
package/src/accordion.css CHANGED
@@ -164,11 +164,3 @@
164
164
  }
165
165
  }
166
166
  }
167
-
168
- /* ---------------- Accordion No Animation (defaultOpen) ---------------- */
169
-
170
- .aksel-accordion__item--no-animation {
171
- & > .aksel-accordion__content {
172
- transition: none;
173
- }
174
- }
package/src/chat.css CHANGED
@@ -56,6 +56,7 @@
56
56
  width: 100%;
57
57
  max-width: 1.5rem;
58
58
  max-height: 1.5rem;
59
+ font-size: 1.5rem;
59
60
  }
60
61
  }
61
62
 
@@ -1,8 +1,3 @@
1
- .aksel-data-table__th-resize-handle {
2
- cursor: col-resize;
3
- margin-left: auto;
4
- }
5
-
6
1
  /* TODO: Overflow does not currently work with fixed table layout. No idea why... */
7
2
  .aksel-data-table__wrapper {
8
3
  overflow-x: auto;
@@ -34,11 +29,59 @@
34
29
  }
35
30
 
36
31
  .aksel-data-table__th {
32
+ position: relative;
37
33
  background-color: var(--ax-bg-neutral-soft);
38
34
  color: var(--ax-text-neutral);
39
35
  padding-inline: var(--ax-space-16);
40
36
  text-align: start;
41
- vertical-align: middle;
37
+ border-inline-end: 1px solid var(--ax-border-neutral-subtle);
38
+ overflow: hidden;
39
+
40
+ &:first-child {
41
+ border-inline-start: 1px solid var(--ax-border-neutral-subtle);
42
+ }
43
+ }
44
+
45
+ .aksel-data-table__th-content {
46
+ text-overflow: ellipsis;
47
+ white-space: nowrap;
48
+ overflow: hidden;
49
+ }
50
+
51
+ .aksel-data-table__th-resize-handle {
52
+ z-index: 2;
53
+ position: absolute;
54
+ inset-block: 0;
55
+ inset-inline-end: -3px;
56
+ cursor: col-resize;
57
+ margin: 0;
58
+ padding: 0;
59
+ width: 5px;
60
+ background: var(--ax-bg-neutral-strong);
61
+ border: none;
62
+
63
+ &:hover {
64
+ background: var(--ax-bg-neutral-strong-pressed);
65
+ }
66
+ }
67
+
68
+ .aksel-data-table__th-action-button {
69
+ transition: 0.1s ease-in-out;
70
+
71
+ /* TODO: Animating all these sort of "stutters" a little now. Can some be removed? */
72
+ transition-property: opacity, width, min-width, max-width, padding;
73
+
74
+ &:focus-visible {
75
+ transition: none;
76
+ }
77
+
78
+ &:not(.aksel-data-table__th:hover &, &:focus-visible, &[data-expanded="true"]) {
79
+ opacity: 0;
80
+ min-width: 0;
81
+ max-width: 0;
82
+ padding: 0;
83
+ overflow: hidden;
84
+ }
42
85
  }
43
86
 
44
87
  .aksel-data-table__td {
@@ -49,6 +92,11 @@
49
92
  color: var(--ax-text-neutral-subtle);
50
93
  padding-inline: 1rem;
51
94
  overflow: hidden;
95
+ border-inline-end: 1px solid var(--ax-border-neutral-subtle);
96
+
97
+ &:first-child {
98
+ border-inline-start: 1px solid var(--ax-border-neutral-subtle);
99
+ }
52
100
 
53
101
  & > div {
54
102
  text-overflow: ellipsis;
@@ -56,3 +104,7 @@
56
104
  overflow: hidden;
57
105
  }
58
106
  }
107
+
108
+ .aksel-data-table__tfoot {
109
+ background-color: var(--ax-bg-raised);
110
+ }
@@ -167,10 +167,3 @@
167
167
  opacity: 0;
168
168
  transition: opacity 250ms cubic-bezier(0.2, 0, 0, 1);
169
169
  }
170
-
171
- /* ---------------- ExpansionCard No Animation (defaultOpen) ---------------- */
172
- .aksel-expansioncard--no-animation {
173
- & :is(.aksel-expansioncard__content, .aksel-expansioncard__content-inner) {
174
- transition: none;
175
- }
176
- }