@navikt/ds-css 8.2.0 → 8.2.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.2.0",
3
+ "version": "8.2.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.2.0",
33
+ "@navikt/ds-tokens": "^8.2.2",
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
- }
@@ -0,0 +1,58 @@
1
+ .aksel-data-table__th-resize-handle {
2
+ cursor: col-resize;
3
+ margin-left: auto;
4
+ }
5
+
6
+ /* TODO: Overflow does not currently work with fixed table layout. No idea why... */
7
+ .aksel-data-table__wrapper {
8
+ overflow-x: auto;
9
+ width: 100%;
10
+ position: relative;
11
+ }
12
+
13
+ .aksel-data-table {
14
+ border-collapse: collapse;
15
+ border-spacing: 0;
16
+ inline-size: 100%;
17
+ table-layout: fixed;
18
+ width: 100%;
19
+ }
20
+
21
+ .aksel-data-table__thead {
22
+ background-color: var(--ax-bg-raised);
23
+ }
24
+
25
+ .aksel-data-table__tbody {
26
+ inline-size: 100%;
27
+ background-color: var(--ax-bg-raised);
28
+ }
29
+
30
+ .aksel-data-table__tr {
31
+ border: none;
32
+ block-size: 3rem;
33
+ inline-size: 100%;
34
+ }
35
+
36
+ .aksel-data-table__th {
37
+ background-color: var(--ax-bg-neutral-soft);
38
+ color: var(--ax-text-neutral);
39
+ padding-inline: var(--ax-space-16);
40
+ text-align: start;
41
+ vertical-align: middle;
42
+ }
43
+
44
+ .aksel-data-table__td {
45
+ text-align: start;
46
+ vertical-align: middle;
47
+ border-block-end: 1px solid var(--ax-border-neutral-subtle);
48
+ border-block-start: 1px solid var(--ax-bg-raised);
49
+ color: var(--ax-text-neutral-subtle);
50
+ padding-inline: 1rem;
51
+ overflow: hidden;
52
+
53
+ & > div {
54
+ text-overflow: ellipsis;
55
+ white-space: nowrap;
56
+ overflow: hidden;
57
+ }
58
+ }
@@ -1,21 +1,18 @@
1
1
  .aksel-data-toolbar {
2
- padding: var(--ax-space-16);
2
+ padding: var(--ax-space-12);
3
3
  display: flex;
4
4
  align-items: center;
5
- gap: var(--ax-space-16);
5
+ gap: var(--ax-space-8);
6
6
  border: 1px solid var(--ax-border-neutral);
7
- border-radius: var(--ax-radius-16);
7
+ border-radius: var(--ax-radius-12);
8
8
  background-color: var(--ax-bg-raised);
9
9
  }
10
10
 
11
11
  .aksel-data-toolbar__toggle-button {
12
- background-color: var(--ax-bg-neutral-moderate);
13
-
14
- &:hover {
15
- background-color: var(--ax-bg-neutral-moderate-hover);
16
- }
17
-
18
12
  &[aria-pressed="true"] {
19
- background-color: var(--ax-bg-neutral-strong-pressed);
13
+ --__axc-button-border-width: 0px; /* ??? */
14
+
15
+ color: var(--ax-text-contrast);
16
+ background-color: var(--ax-bg-strong-pressed);
20
17
  }
21
18
  }
@@ -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
- }
package/src/index.css CHANGED
@@ -30,7 +30,6 @@
30
30
  @import "./alert.css" layer(aksel.components.modules);
31
31
  @import "./chat.css" layer(aksel.components.modules);
32
32
  @import "./copybutton.css" layer(aksel.components.modules);
33
- @import "./data-toolbar.css" layer(aksel.components.modules);
34
33
  @import "./date.css" layer(aksel.components.modules);
35
34
  @import "./dialog.css" layer(aksel.components.modules);
36
35
  @import "./dropdown.css" layer(aksel.components.modules);
@@ -1,27 +0,0 @@
1
- @layer aksel.reset, aksel.theming, aksel.baseline, aksel.print, aksel.typography, aksel.components.core, aksel.components.core.loader, aksel.components.core.button, aksel.components.form;
2
-
3
- @layer aksel.components.modules {
4
- .aksel-data-toolbar {
5
- padding: var(--ax-space-16);
6
- align-items: center;
7
- gap: var(--ax-space-16);
8
- border: 1px solid var(--ax-border-neutral);
9
- border-radius: var(--ax-radius-16);
10
- background-color: var(--ax-bg-raised);
11
- display: flex;
12
- }
13
-
14
- .aksel-data-toolbar__toggle-button {
15
- background-color: var(--ax-bg-neutral-moderate);
16
- }
17
-
18
- .aksel-data-toolbar__toggle-button:hover {
19
- background-color: var(--ax-bg-neutral-moderate-hover);
20
- }
21
-
22
- .aksel-data-toolbar__toggle-button[aria-pressed="true"] {
23
- background-color: var(--ax-bg-neutral-strong-pressed);
24
- }
25
- }
26
-
27
- @layer aksel.layout;
@@ -1 +0,0 @@
1
- @layer aksel.reset,aksel.theming,aksel.baseline,aksel.print,aksel.typography,aksel.components.core,aksel.components.core.loader,aksel.components.core.button,aksel.components.form;@layer aksel.components.modules{.aksel-data-toolbar{padding:var(--ax-space-16);align-items:center;gap:var(--ax-space-16);border:1px solid var(--ax-border-neutral);border-radius:var(--ax-radius-16);background-color:var(--ax-bg-raised);display:flex}.aksel-data-toolbar__toggle-button{background-color:var(--ax-bg-neutral-moderate)}.aksel-data-toolbar__toggle-button:hover{background-color:var(--ax-bg-neutral-moderate-hover)}.aksel-data-toolbar__toggle-button[aria-pressed=true]{background-color:var(--ax-bg-neutral-strong-pressed)}}@layer aksel.layout;