@navikt/ds-css 7.9.2 → 7.11.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.
Files changed (240) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/button.css +1 -1
  3. package/config/tests/bundle.test.ts +7 -2
  4. package/darkside/accordion.darkside.css +49 -56
  5. package/darkside/action-menu.darkside.css +4 -4
  6. package/darkside/baseline/fonts.darkside.css +12 -12
  7. package/darkside/button.darkside.css +8 -6
  8. package/darkside/chat.darkside.css +2 -2
  9. package/darkside/chips.darkside.css +3 -3
  10. package/darkside/copybutton.darkside.css +6 -35
  11. package/darkside/date.darkside.css +8 -10
  12. package/darkside/expansioncard.darkside.css +5 -13
  13. package/darkside/form/combobox.darkside.css +24 -17
  14. package/darkside/form/error-summary.darkside.css +3 -3
  15. package/darkside/form/file-upload.darkside.css +13 -22
  16. package/darkside/form/form-progress.darkside.css +1 -1
  17. package/darkside/form/radio-checkbox.darkside.css +37 -19
  18. package/darkside/form/search.darkside.css +9 -9
  19. package/darkside/form/select.darkside.css +5 -5
  20. package/darkside/form/switch.darkside.css +33 -18
  21. package/darkside/form/text-field.darkside.css +5 -5
  22. package/darkside/form/textarea.darkside.css +5 -5
  23. package/darkside/index.css +0 -1
  24. package/darkside/internalheader.darkside.css +1 -1
  25. package/darkside/link.darkside.css +3 -2
  26. package/darkside/modal.darkside.css +1 -0
  27. package/darkside/read-more.darkside.css +2 -2
  28. package/darkside/stepper.darkside.css +3 -2
  29. package/darkside/table.darkside.css +23 -5
  30. package/darkside/tabs.darkside.css +4 -4
  31. package/darkside/timeline.darkside.css +10 -10
  32. package/darkside/toggle-group.darkside.css +4 -4
  33. package/darkside/typography.darkside.css +3 -0
  34. package/dist/component/alert.min.css +1 -1
  35. package/dist/component/button.css +1 -1
  36. package/dist/component/button.min.css +1 -1
  37. package/dist/component/chat.min.css +1 -1
  38. package/dist/component/date.min.css +1 -1
  39. package/dist/component/expansioncard.css +1 -0
  40. package/dist/component/expansioncard.min.css +2 -2
  41. package/dist/component/form.css +4 -0
  42. package/dist/component/form.min.css +1 -1
  43. package/dist/component/list.min.css +1 -1
  44. package/dist/component/modal.css +1 -0
  45. package/dist/component/modal.min.css +1 -1
  46. package/dist/component/primitives.min.css +1 -1
  47. package/dist/component/skeleton.min.css +1 -1
  48. package/dist/component/stepper.min.css +1 -1
  49. package/dist/component/table.css +20 -2
  50. package/dist/component/table.min.css +1 -1
  51. package/dist/component/tabs.min.css +1 -1
  52. package/dist/component/tag.min.css +1 -1
  53. package/dist/component/timeline.min.css +1 -1
  54. package/dist/component/togglegroup.min.css +1 -1
  55. package/dist/components.css +29 -3
  56. package/dist/components.min.css +4 -4
  57. package/dist/darkside/component/accordion.css +59 -57
  58. package/dist/darkside/component/accordion.min.css +1 -1
  59. package/dist/darkside/component/actionmenu.css +13 -5
  60. package/dist/darkside/component/actionmenu.min.css +1 -1
  61. package/dist/darkside/component/alert.css +13 -5
  62. package/dist/darkside/component/alert.min.css +1 -1
  63. package/dist/darkside/component/button.css +41 -6
  64. package/dist/darkside/component/button.min.css +1 -1
  65. package/dist/darkside/component/chat.css +13 -4
  66. package/dist/darkside/component/chat.min.css +1 -1
  67. package/dist/darkside/component/chips.css +3 -3
  68. package/dist/darkside/component/chips.min.css +1 -1
  69. package/dist/darkside/component/copybutton.css +6 -34
  70. package/dist/darkside/component/copybutton.min.css +1 -1
  71. package/dist/darkside/component/date.css +67 -17
  72. package/dist/darkside/component/date.min.css +1 -1
  73. package/dist/darkside/component/dropdown.css +2 -1
  74. package/dist/darkside/component/dropdown.min.css +1 -1
  75. package/dist/darkside/component/expansioncard.css +36 -18
  76. package/dist/darkside/component/expansioncard.min.css +1 -1
  77. package/dist/darkside/component/form.css +300 -116
  78. package/dist/darkside/component/form.min.css +1 -1
  79. package/dist/darkside/component/guidepanel.css +17 -1
  80. package/dist/darkside/component/guidepanel.min.css +1 -1
  81. package/dist/darkside/component/helptext.css +5 -1
  82. package/dist/darkside/component/helptext.min.css +1 -1
  83. package/dist/darkside/component/internalheader.css +11 -2
  84. package/dist/darkside/component/internalheader.min.css +1 -1
  85. package/dist/darkside/component/link.css +8 -3
  86. package/dist/darkside/component/link.min.css +1 -1
  87. package/dist/darkside/component/list.css +2 -2
  88. package/dist/darkside/component/list.min.css +1 -1
  89. package/dist/darkside/component/modal.css +21 -3
  90. package/dist/darkside/component/modal.min.css +1 -1
  91. package/dist/darkside/component/primitives.css +18 -4
  92. package/dist/darkside/component/primitives.min.css +1 -1
  93. package/dist/darkside/component/readmore.css +17 -3
  94. package/dist/darkside/component/readmore.min.css +1 -1
  95. package/dist/darkside/component/skeleton.css +1 -0
  96. package/dist/darkside/component/skeleton.min.css +1 -1
  97. package/dist/darkside/component/stepper.css +25 -4
  98. package/dist/darkside/component/stepper.min.css +1 -1
  99. package/dist/darkside/component/table.css +28 -6
  100. package/dist/darkside/component/table.min.css +1 -1
  101. package/dist/darkside/component/tabs.css +7 -7
  102. package/dist/darkside/component/tabs.min.css +1 -1
  103. package/dist/darkside/component/tag.css +12 -1
  104. package/dist/darkside/component/tag.min.css +1 -1
  105. package/dist/darkside/component/timeline.css +22 -12
  106. package/dist/darkside/component/timeline.min.css +1 -1
  107. package/dist/darkside/component/togglegroup.css +5 -4
  108. package/dist/darkside/component/togglegroup.min.css +1 -1
  109. package/dist/darkside/component/typography.css +3 -0
  110. package/dist/darkside/component/typography.min.css +1 -1
  111. package/dist/darkside/components.css +755 -366
  112. package/dist/darkside/components.min.css +1 -1
  113. package/dist/darkside/global/fonts.css +12 -12
  114. package/dist/darkside/global/fonts.min.css +1 -1
  115. package/dist/darkside/global/tokens.css +850 -868
  116. package/dist/darkside/global/tokens.min.css +1 -1
  117. package/dist/darkside/index.css +1619 -1248
  118. package/dist/darkside/index.min.css +1 -1
  119. package/dist/darkside/version/{7.9.2 → 7.11.0}/component/accordion.css +59 -57
  120. package/dist/darkside/version/7.11.0/component/accordion.min.css +1 -0
  121. package/dist/darkside/version/{7.9.2 → 7.11.0}/component/actionmenu.css +13 -5
  122. package/dist/darkside/version/7.11.0/component/actionmenu.min.css +1 -0
  123. package/dist/darkside/version/{7.9.2 → 7.11.0}/component/alert.css +13 -5
  124. package/dist/darkside/version/7.11.0/component/alert.min.css +1 -0
  125. package/dist/darkside/version/{7.9.2 → 7.11.0}/component/button.css +41 -6
  126. package/dist/darkside/version/7.11.0/component/button.min.css +1 -0
  127. package/dist/darkside/version/{7.9.2 → 7.11.0}/component/chat.css +13 -4
  128. package/dist/darkside/version/{7.9.2 → 7.11.0}/component/chat.min.css +1 -1
  129. package/dist/darkside/version/{7.9.2 → 7.11.0}/component/chips.css +3 -3
  130. package/dist/darkside/version/7.11.0/component/chips.min.css +1 -0
  131. package/dist/darkside/version/{7.9.2 → 7.11.0}/component/copybutton.css +6 -34
  132. package/dist/darkside/version/7.11.0/component/copybutton.min.css +1 -0
  133. package/dist/darkside/version/{7.9.2 → 7.11.0}/component/date.css +67 -17
  134. package/dist/darkside/version/7.11.0/component/date.min.css +1 -0
  135. package/dist/darkside/version/{7.9.2 → 7.11.0}/component/dropdown.css +2 -1
  136. package/dist/darkside/version/7.11.0/component/dropdown.min.css +1 -0
  137. package/dist/darkside/version/{7.9.2 → 7.11.0}/component/expansioncard.css +36 -18
  138. package/dist/darkside/version/7.11.0/component/expansioncard.min.css +1 -0
  139. package/dist/darkside/version/{7.9.2 → 7.11.0}/component/form.css +300 -116
  140. package/dist/darkside/version/7.11.0/component/form.min.css +1 -0
  141. package/dist/darkside/version/{7.9.2 → 7.11.0}/component/guidepanel.css +17 -1
  142. package/dist/darkside/version/7.11.0/component/guidepanel.min.css +1 -0
  143. package/dist/darkside/version/{7.9.2 → 7.11.0}/component/helptext.css +5 -1
  144. package/dist/darkside/version/7.11.0/component/helptext.min.css +1 -0
  145. package/dist/darkside/version/{7.9.2 → 7.11.0}/component/internalheader.css +11 -2
  146. package/dist/darkside/version/7.11.0/component/internalheader.min.css +1 -0
  147. package/dist/darkside/version/{7.9.2 → 7.11.0}/component/link.css +8 -3
  148. package/dist/darkside/version/7.11.0/component/link.min.css +1 -0
  149. package/dist/darkside/version/{7.9.2 → 7.11.0}/component/list.css +2 -2
  150. package/dist/darkside/version/{7.9.2 → 7.11.0}/component/list.min.css +1 -1
  151. package/dist/darkside/version/{7.9.2 → 7.11.0}/component/modal.css +21 -3
  152. package/dist/darkside/version/7.11.0/component/modal.min.css +1 -0
  153. package/dist/darkside/version/{7.9.2 → 7.11.0}/component/primitives.css +18 -4
  154. package/dist/darkside/version/{7.9.2 → 7.11.0}/component/primitives.min.css +1 -1
  155. package/dist/darkside/version/{7.9.2 → 7.11.0}/component/readmore.css +17 -3
  156. package/dist/darkside/version/7.11.0/component/readmore.min.css +1 -0
  157. package/dist/darkside/version/{7.9.2 → 7.11.0}/component/skeleton.css +1 -0
  158. package/dist/darkside/version/7.11.0/component/skeleton.min.css +1 -0
  159. package/dist/darkside/version/{7.9.2 → 7.11.0}/component/stepper.css +25 -4
  160. package/dist/darkside/version/7.11.0/component/stepper.min.css +1 -0
  161. package/dist/darkside/version/{7.9.2 → 7.11.0}/component/table.css +28 -6
  162. package/dist/darkside/version/7.11.0/component/table.min.css +1 -0
  163. package/dist/darkside/version/{7.9.2 → 7.11.0}/component/tabs.css +7 -7
  164. package/dist/darkside/version/{7.9.2 → 7.11.0}/component/tabs.min.css +1 -1
  165. package/dist/darkside/version/{7.9.2 → 7.11.0}/component/tag.css +12 -1
  166. package/dist/darkside/version/{7.9.2 → 7.11.0}/component/tag.min.css +1 -1
  167. package/dist/darkside/version/{7.9.2 → 7.11.0}/component/timeline.css +22 -12
  168. package/dist/darkside/version/7.11.0/component/timeline.min.css +1 -0
  169. package/dist/darkside/version/{7.9.2 → 7.11.0}/component/togglegroup.css +5 -4
  170. package/dist/darkside/version/7.11.0/component/togglegroup.min.css +1 -0
  171. package/dist/darkside/version/{7.9.2 → 7.11.0}/component/typography.css +3 -0
  172. package/dist/darkside/version/7.11.0/component/typography.min.css +1 -0
  173. package/dist/darkside/version/{7.9.2 → 7.11.0}/components.css +755 -366
  174. package/dist/darkside/version/7.11.0/components.min.css +1 -0
  175. package/dist/darkside/version/{7.9.2 → 7.11.0}/global/fonts.css +12 -12
  176. package/dist/darkside/version/{7.9.2 → 7.11.0}/global/fonts.min.css +1 -1
  177. package/dist/darkside/version/{7.9.2 → 7.11.0}/global/tokens.css +850 -868
  178. package/dist/darkside/version/7.11.0/global/tokens.min.css +1 -0
  179. package/dist/darkside/version/{7.9.2 → 7.11.0}/index.css +1619 -1248
  180. package/dist/darkside/version/7.11.0/index.min.css +1 -0
  181. package/dist/global/baseline.min.css +1 -1
  182. package/dist/global/tokens.css +324 -324
  183. package/dist/global/tokens.min.css +1 -1
  184. package/dist/index.css +353 -327
  185. package/dist/index.min.css +5 -5
  186. package/expansioncard.css +1 -0
  187. package/form/radio-checkbox.css +5 -0
  188. package/modal.css +1 -0
  189. package/package.json +3 -3
  190. package/table.css +20 -2
  191. package/darkside/link-panel.darkside.css +0 -47
  192. package/dist/darkside/component/linkpanel.css +0 -48
  193. package/dist/darkside/component/linkpanel.min.css +0 -1
  194. package/dist/darkside/version/7.9.2/component/accordion.min.css +0 -1
  195. package/dist/darkside/version/7.9.2/component/actionmenu.min.css +0 -1
  196. package/dist/darkside/version/7.9.2/component/alert.min.css +0 -1
  197. package/dist/darkside/version/7.9.2/component/button.min.css +0 -1
  198. package/dist/darkside/version/7.9.2/component/chips.min.css +0 -1
  199. package/dist/darkside/version/7.9.2/component/copybutton.min.css +0 -1
  200. package/dist/darkside/version/7.9.2/component/date.min.css +0 -1
  201. package/dist/darkside/version/7.9.2/component/dropdown.min.css +0 -1
  202. package/dist/darkside/version/7.9.2/component/expansioncard.min.css +0 -1
  203. package/dist/darkside/version/7.9.2/component/form.min.css +0 -1
  204. package/dist/darkside/version/7.9.2/component/guidepanel.min.css +0 -1
  205. package/dist/darkside/version/7.9.2/component/helptext.min.css +0 -1
  206. package/dist/darkside/version/7.9.2/component/internalheader.min.css +0 -1
  207. package/dist/darkside/version/7.9.2/component/link.min.css +0 -1
  208. package/dist/darkside/version/7.9.2/component/linkpanel.css +0 -48
  209. package/dist/darkside/version/7.9.2/component/linkpanel.min.css +0 -1
  210. package/dist/darkside/version/7.9.2/component/modal.min.css +0 -1
  211. package/dist/darkside/version/7.9.2/component/readmore.min.css +0 -1
  212. package/dist/darkside/version/7.9.2/component/skeleton.min.css +0 -1
  213. package/dist/darkside/version/7.9.2/component/stepper.min.css +0 -1
  214. package/dist/darkside/version/7.9.2/component/table.min.css +0 -1
  215. package/dist/darkside/version/7.9.2/component/timeline.min.css +0 -1
  216. package/dist/darkside/version/7.9.2/component/togglegroup.min.css +0 -1
  217. package/dist/darkside/version/7.9.2/component/typography.min.css +0 -1
  218. package/dist/darkside/version/7.9.2/components.min.css +0 -1
  219. package/dist/darkside/version/7.9.2/global/tokens.min.css +0 -1
  220. package/dist/darkside/version/7.9.2/index.min.css +0 -1
  221. /package/dist/darkside/version/{7.9.2 → 7.11.0}/component/loader.css +0 -0
  222. /package/dist/darkside/version/{7.9.2 → 7.11.0}/component/loader.min.css +0 -0
  223. /package/dist/darkside/version/{7.9.2 → 7.11.0}/component/pagination.css +0 -0
  224. /package/dist/darkside/version/{7.9.2 → 7.11.0}/component/pagination.min.css +0 -0
  225. /package/dist/darkside/version/{7.9.2 → 7.11.0}/component/panel.css +0 -0
  226. /package/dist/darkside/version/{7.9.2 → 7.11.0}/component/panel.min.css +0 -0
  227. /package/dist/darkside/version/{7.9.2 → 7.11.0}/component/popover.css +0 -0
  228. /package/dist/darkside/version/{7.9.2 → 7.11.0}/component/popover.min.css +0 -0
  229. /package/dist/darkside/version/{7.9.2 → 7.11.0}/component/progressbar.css +0 -0
  230. /package/dist/darkside/version/{7.9.2 → 7.11.0}/component/progressbar.min.css +0 -0
  231. /package/dist/darkside/version/{7.9.2 → 7.11.0}/component/theme.css +0 -0
  232. /package/dist/darkside/version/{7.9.2 → 7.11.0}/component/theme.min.css +0 -0
  233. /package/dist/darkside/version/{7.9.2 → 7.11.0}/component/tooltip.css +0 -0
  234. /package/dist/darkside/version/{7.9.2 → 7.11.0}/component/tooltip.min.css +0 -0
  235. /package/dist/darkside/version/{7.9.2 → 7.11.0}/global/baseline.css +0 -0
  236. /package/dist/darkside/version/{7.9.2 → 7.11.0}/global/baseline.min.css +0 -0
  237. /package/dist/darkside/version/{7.9.2 → 7.11.0}/global/print.css +0 -0
  238. /package/dist/darkside/version/{7.9.2 → 7.11.0}/global/print.min.css +0 -0
  239. /package/dist/darkside/version/{7.9.2 → 7.11.0}/global/reset.css +0 -0
  240. /package/dist/darkside/version/{7.9.2 → 7.11.0}/global/reset.min.css +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # @navikt/ds-css
2
2
 
3
+ ## 7.11.0
4
+
5
+ ### Patch Changes
6
+
7
+ - ExpansionCard: Removed dynamic padding on button-element. ([#3532](https://github.com/navikt/aksel/pull/3532))
8
+
9
+ - Modal: Defaults to `margin: auto` for tailwind 4 support. ([#3532](https://github.com/navikt/aksel/pull/3532))
10
+
11
+ ## 7.10.0
12
+
13
+ ### Minor Changes
14
+
15
+ - Table: New prop `contentGutter` added to `ExpandableRow`-component. This allows user more control for content layout inside expandable element. ([#3507](https://github.com/navikt/aksel/pull/3507))
16
+
17
+ ### Patch Changes
18
+
19
+ - Button: Using `<Loader />` within `icon`-prop now supported. ([#3515](https://github.com/navikt/aksel/pull/3515))
20
+
21
+ - Combobox: Always render `maxSelected` message when `isMultiSelect` is set. ([#3506](https://github.com/navikt/aksel/pull/3506))
22
+
3
23
  ## 7.9.2
4
24
 
5
25
  ### Patch Changes
package/button.css CHANGED
@@ -497,7 +497,7 @@
497
497
  }
498
498
 
499
499
  /* Loader overrides */
500
- .navds-button .navds-loader {
500
+ .navds-button > .navds-loader {
501
501
  position: absolute;
502
502
  }
503
503
 
@@ -6,6 +6,7 @@ import { describe, expect, test } from "vitest";
6
6
  * Darkside config might have some new files added. We can skip these when checking for equality.
7
7
  */
8
8
  const newFiles = ["theme"];
9
+ const deprecatedFiles = ["linkpanel"];
9
10
 
10
11
  describe("Check that old and new (darkside) bundle matches", () => {
11
12
  test("Darkside includes the same files as old bundle", () => {
@@ -27,6 +28,9 @@ describe("Check that old and new (darkside) bundle matches", () => {
27
28
 
28
29
  // Compare file names
29
30
  oldFiles.forEach((file) => {
31
+ if (deprecatedFiles.find((oldFile) => file.includes(oldFile))) {
32
+ return;
33
+ }
30
34
  expect(darksideFiles).toContain(file);
31
35
  });
32
36
 
@@ -39,8 +43,9 @@ describe("Check that old and new (darkside) bundle matches", () => {
39
43
 
40
44
  /**
41
45
  * Check that darkside has the same amount of files as old bundle
42
- * (minus the new files * 2 since .min.css is also included)
43
46
  */
44
- expect(darksideFiles.length - newFiles.length * 2).toBe(oldFiles.length);
47
+ expect(
48
+ darksideFiles.length - newFiles.length * 2 + deprecatedFiles.length * 2,
49
+ ).toBe(oldFiles.length);
45
50
  });
46
51
  });
@@ -45,8 +45,8 @@
45
45
  }
46
46
 
47
47
  &:focus-visible {
48
- outline: 2px solid var(--ax-border-focus);
49
- outline-offset: 2px;
48
+ outline: 3px solid var(--ax-border-focus);
49
+ outline-offset: 3px;
50
50
  z-index: 1;
51
51
 
52
52
  &::before,
@@ -57,7 +57,7 @@
57
57
  }
58
58
 
59
59
  .navds-accordion--small .navds-accordion__header {
60
- padding-block: var(--a-spacing-2);
60
+ padding-block: var(--ax-space-8);
61
61
  }
62
62
 
63
63
  .navds-accordion__header::before,
@@ -73,10 +73,6 @@
73
73
  background-color: var(--ax-border-subtleA);
74
74
  }
75
75
 
76
- .navds-accordion__item:last-child > .navds-accordion__content {
77
- border-bottom: 1px solid transparent;
78
- }
79
-
80
76
  .navds-accordion__header::after {
81
77
  top: initial;
82
78
  bottom: 0;
@@ -100,7 +96,7 @@
100
96
  height: 22px;
101
97
  align-self: center;
102
98
  background-color: var(--ax-bg-accent-moderateA);
103
- color: var(--ax-text-accent-strong);
99
+ color: var(--ax-text-accent);
104
100
  }
105
101
 
106
102
  .navds-accordion__header-chevron {
@@ -115,67 +111,64 @@
115
111
  }
116
112
 
117
113
  /* ---------------------------- Accordion content --------------------------- */
118
- .navds-accordion__content {
119
- --__acx-accordion-content-line-width: 2px;
120
-
121
- padding-inline: var(--ax-space-24) var(--ax-space-12);
122
- display: none;
123
- overflow: hidden;
124
- padding-block: 0;
125
- max-height: 0;
126
- border-color: transparent;
127
- transition: all 250ms cubic-bezier(0.2, 0, 0, 1) allow-discrete;
128
- animation: navds-accordion-content-animation 250ms cubic-bezier(0.2, 0, 0, 1);
129
- }
130
-
131
- .navds-accordion__item--no-animation {
132
- animation: none;
133
- }
134
-
135
- @keyframes navds-accordion-content-animation {
136
- 0% {
137
- opacity: 0.01;
138
- }
139
114
 
140
- 20% {
141
- opacity: 0.01;
142
- }
115
+ .navds-accordion--indent > .navds-accordion__item .navds-accordion__content-inner {
116
+ padding-block: var(--ax-space-8);
117
+ padding-inline: calc(var(--ax-space-20) + 2px) var(--ax-space-20);
143
118
 
144
- 100% {
145
- opacity: 1;
119
+ @media (forced-colors: active) {
120
+ border-left: 1px solid canvastext;
146
121
  }
147
122
  }
148
123
 
149
124
  .navds-accordion--indent > .navds-accordion__item > .navds-accordion__content {
150
- padding-inline: var(--ax-space-24) var(--ax-space-12);
125
+ box-shadow: -2px 0 0 0 var(--ax-border-subtleA);
151
126
  }
152
127
 
153
- .navds-accordion--indent > .navds-accordion__item .navds-accordion__content-inner {
154
- box-shadow: -2px 0 0 0 var(--ax-border-subtleA);
155
- padding-block: var(--ax-space-8);
128
+ .navds-accordion__item {
129
+ & > .navds-accordion__content {
130
+ display: grid;
131
+ grid-template-rows: 0fr;
132
+ visibility: hidden;
133
+ overflow: hidden;
134
+ margin-inline: var(--ax-space-24) var(--ax-space-12);
135
+ margin-block: 0;
136
+ transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
137
+ transition-duration: 250ms;
138
+ transition-property: visibility, opacity, grid-template-rows, margin, min-height;
139
+ border-color: transparent;
140
+ opacity: 0;
156
141
 
157
- /* Aligns content with heading-section */
158
- padding-inline: calc(var(--ax-space-20) + 2px) var(--ax-space-20);
142
+ & .navds-accordion__content-inner {
143
+ min-height: 0;
144
+ padding-block: 0;
145
+ }
146
+ }
159
147
 
160
- @media (forced-colors: active) {
161
- border-left: 1px solid canvastext;
148
+ &[data-expanded="true"] {
149
+ & > .navds-accordion__content {
150
+ grid-template-rows: 1fr;
151
+ visibility: visible;
152
+ margin-block: var(--ax-space-8);
153
+ margin-block-end: var(--ax-space-24);
154
+ border-color: var(--ax-border-subtleA);
155
+ opacity: 1;
156
+
157
+ & .navds-accordion__content-inner {
158
+ min-height: fit-content;
159
+ }
160
+ }
161
+
162
+ &:last-child {
163
+ border-bottom: 1px solid var(--ax-border-subtleA);
164
+ }
162
165
  }
163
166
  }
164
167
 
165
- .navds-accordion__item[data-expanded="true"] > .navds-accordion__content {
166
- display: block;
167
- opacity: 1;
168
- overflow: visible;
169
- max-height: fit-content;
170
- padding-block: var(--ax-space-8);
171
- padding-block-end: var(--ax-space-24);
172
- border-color: var(--ax-border-subtleA);
173
- }
168
+ /* ---------------- Accordion No Animation (defaultOpen) ---------------- */
174
169
 
175
- @starting-style {
176
- .navds-accordion__item[data-expanded="true"]:not(.navds-accordion__item--no-animation) > .navds-accordion__content {
177
- padding-block: 0;
178
- max-height: 0;
179
- border-color: transparent;
170
+ .navds-accordion__item--no-animation {
171
+ & > .navds-accordion__content {
172
+ transition: none;
180
173
  }
181
174
  }
@@ -1,7 +1,7 @@
1
1
  /* --------------------------- ActionMenu content --------------------------- */
2
2
  .navds-action-menu__content {
3
3
  overflow: hidden;
4
- border-radius: var(--ax-border-radius-large);
4
+ border-radius: var(--ax-border-radius-xlarge);
5
5
  border: 1px solid var(--ax-border-subtleA);
6
6
  box-shadow: var(--ax-shadow-dialog);
7
7
  transition: transform 250ms cubic-bezier(0, 0, 0, 1) allow-discrete;
@@ -39,7 +39,7 @@
39
39
  --__axc-action-menu-item-pl: var(--ax-space-8);
40
40
  --__axc-action-menu-item-height: 2rem;
41
41
 
42
- border-radius: var(--ax-border-radius-large);
42
+ border-radius: var(--ax-border-radius-xlarge);
43
43
  background-color: var(--ax-bg-raised);
44
44
  min-width: 128px;
45
45
  max-width: min(95vw, 640px);
@@ -60,7 +60,7 @@
60
60
  gap: var(--ax-space-8);
61
61
  min-height: var(--__axc-action-menu-item-height);
62
62
  cursor: default;
63
- border-radius: var(--ax-border-radius-medium);
63
+ border-radius: var(--ax-border-radius-large);
64
64
  position: relative;
65
65
  padding-left: var(--__axc-action-menu-item-pl);
66
66
  padding-right: var(--__axc-action-menu-item-pr);
@@ -107,7 +107,7 @@
107
107
 
108
108
  &:focus {
109
109
  background-color: var(--ax-bg-danger-moderate-hoverA);
110
- color: var(--ax-text-danger-strong);
110
+ color: var(--ax-text-danger);
111
111
  }
112
112
  }
113
113
 
@@ -2,7 +2,7 @@
2
2
  @font-face {
3
3
  font-family: "Source Sans 3";
4
4
  font-style: italic;
5
- font-weight: 400 600;
5
+ font-weight: 400 650;
6
6
  font-display: swap;
7
7
  src: url(https://cdn.nav.no/aksel/fonts/SourceSans3-italic-cyrillic_ext.woff2) format("woff2");
8
8
  unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
@@ -12,7 +12,7 @@
12
12
  @font-face {
13
13
  font-family: "Source Sans 3";
14
14
  font-style: italic;
15
- font-weight: 400 600;
15
+ font-weight: 400 650;
16
16
  font-display: swap;
17
17
  src: url(https://cdn.nav.no/aksel/fonts/SourceSans3-italic-cyrillic.woff2) format("woff2");
18
18
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
@@ -22,7 +22,7 @@
22
22
  @font-face {
23
23
  font-family: "Source Sans 3";
24
24
  font-style: italic;
25
- font-weight: 400 600;
25
+ font-weight: 400 650;
26
26
  font-display: swap;
27
27
  src: url(https://cdn.nav.no/aksel/fonts/SourceSans3-italic-latin_ext.woff2) format("woff2");
28
28
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
@@ -33,7 +33,7 @@
33
33
  @font-face {
34
34
  font-family: "Source Sans 3";
35
35
  font-style: italic;
36
- font-weight: 400 600;
36
+ font-weight: 400 650;
37
37
  font-display: swap;
38
38
  src: url(https://cdn.nav.no/aksel/fonts/SourceSans3-italic.woff2) format("woff2");
39
39
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
@@ -44,7 +44,7 @@
44
44
  @font-face {
45
45
  font-family: "Source Sans 3";
46
46
  font-style: normal;
47
- font-weight: 400 600;
47
+ font-weight: 400 650;
48
48
  font-display: swap;
49
49
  src: url(https://cdn.nav.no/aksel/fonts/SourceSans3-normal-cyrillic_ext.woff2) format("woff2");
50
50
  unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
@@ -54,7 +54,7 @@
54
54
  @font-face {
55
55
  font-family: "Source Sans 3";
56
56
  font-style: normal;
57
- font-weight: 400 600;
57
+ font-weight: 400 650;
58
58
  font-display: swap;
59
59
  src: url(https://cdn.nav.no/aksel/fonts/SourceSans3-normal-cyrillic.woff2) format("woff2");
60
60
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
@@ -64,7 +64,7 @@
64
64
  @font-face {
65
65
  font-family: "Source Sans 3";
66
66
  font-style: normal;
67
- font-weight: 400 600;
67
+ font-weight: 400 650;
68
68
  font-display: swap;
69
69
  src: url(https://cdn.nav.no/aksel/fonts/SourceSans3-normal-latin_ext.woff2) format("woff2");
70
70
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
@@ -75,7 +75,7 @@
75
75
  @font-face {
76
76
  font-family: "Source Sans 3";
77
77
  font-style: normal;
78
- font-weight: 400 600;
78
+ font-weight: 400 650;
79
79
  font-display: swap;
80
80
  src: url(https://cdn.nav.no/aksel/fonts/SourceSans3-normal.woff2) format("woff2");
81
81
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
@@ -88,7 +88,7 @@
88
88
  @font-face {
89
89
  font-family: "Source Sans Pro";
90
90
  font-style: italic;
91
- font-weight: 400 600;
91
+ font-weight: 400 650;
92
92
  font-display: swap;
93
93
  src: url(https://cdn.nav.no/aksel/fonts/SourceSans3-italic-latin_ext.woff2) format("woff2");
94
94
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
@@ -99,7 +99,7 @@
99
99
  @font-face {
100
100
  font-family: "Source Sans Pro";
101
101
  font-style: italic;
102
- font-weight: 400 600;
102
+ font-weight: 400 650;
103
103
  font-display: swap;
104
104
  src: url(https://cdn.nav.no/aksel/fonts/SourceSans3-italic.woff2) format("woff2");
105
105
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
@@ -110,7 +110,7 @@
110
110
  @font-face {
111
111
  font-family: "Source Sans Pro";
112
112
  font-style: normal;
113
- font-weight: 400 600;
113
+ font-weight: 400 650;
114
114
  font-display: swap;
115
115
  src: url(https://cdn.nav.no/aksel/fonts/SourceSans3-normal-latin_ext.woff2) format("woff2");
116
116
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
@@ -121,7 +121,7 @@
121
121
  @font-face {
122
122
  font-family: "Source Sans Pro";
123
123
  font-style: normal;
124
- font-weight: 400 600;
124
+ font-weight: 400 650;
125
125
  font-display: swap;
126
126
  src: url(https://cdn.nav.no/aksel/fonts/SourceSans3-normal.woff2) format("woff2");
127
127
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
@@ -5,7 +5,7 @@
5
5
  --__axc-button-border-width: 2px;
6
6
 
7
7
  padding: var(--ax-space-12) var(--ax-space-20);
8
- border-radius: var(--ax-border-radius-medium);
8
+ border-radius: var(--ax-border-radius-large);
9
9
  display: inline-flex;
10
10
  cursor: pointer;
11
11
  text-decoration: none;
@@ -17,26 +17,28 @@
17
17
  box-shadow: inset 0 0 0 var(--__axc-button-border-width) var(--__axc-button-border-color);
18
18
 
19
19
  &:focus-visible {
20
- outline: 2px solid var(--ax-border-focus);
21
- outline-offset: 2px;
20
+ outline: 3px solid var(--ax-border-focus);
21
+ outline-offset: 3px;
22
22
  }
23
23
  }
24
24
 
25
25
  .navds-button--small,
26
26
  .navds-button--xsmall {
27
27
  --__axc-button-icon-margin: -2px;
28
- --__axc-button-icon-size: 1.25rem;
29
28
  }
30
29
 
31
30
  .navds-button--small {
32
31
  padding: var(--ax-space-4) var(--ax-space-12);
33
32
  min-height: 2rem;
34
33
  min-width: 2rem;
34
+ gap: var(--ax-space-6);
35
35
  }
36
36
 
37
37
  .navds-button--xsmall {
38
38
  padding: var(--ax-space-2) var(--ax-space-8);
39
39
  gap: var(--ax-space-4);
40
+
41
+ --__axc-button-icon-size: 1.25rem;
40
42
  }
41
43
 
42
44
  .navds-button--icon-only {
@@ -53,7 +55,7 @@
53
55
 
54
56
  @supports not selector(:focus-visible) {
55
57
  .navds-button:focus {
56
- outline: 2px solid var(--ax-border-focus);
58
+ outline: 3px solid var(--ax-border-focus);
57
59
  }
58
60
  }
59
61
 
@@ -262,7 +264,7 @@
262
264
  }
263
265
 
264
266
  /* Loader overrides */
265
- .navds-button .navds-loader {
267
+ .navds-button > .navds-loader {
266
268
  position: absolute;
267
269
  }
268
270
 
@@ -73,14 +73,14 @@
73
73
  .navds-chat--info {
74
74
  & .navds-chat__bubble,
75
75
  & .navds-chat__avatar {
76
- background-color: var(--ax-bg-info-raised);
76
+ background-color: var(--ax-bg-info-moderate);
77
77
  }
78
78
  }
79
79
 
80
80
  .navds-chat--neutral {
81
81
  & .navds-chat__bubble,
82
82
  & .navds-chat__avatar {
83
- background-color: var(--ax-bg-raised);
83
+ background-color: var(--ax-bg-moderateA);
84
84
  }
85
85
  }
86
86
 
@@ -28,8 +28,8 @@
28
28
  min-height: 2rem;
29
29
 
30
30
  &:focus-visible {
31
- outline: 2px solid var(--ax-border-focus);
32
- outline-offset: 2px;
31
+ outline: 3px solid var(--ax-border-focus);
32
+ outline-offset: 3px;
33
33
  }
34
34
  }
35
35
 
@@ -72,7 +72,7 @@
72
72
  .navds-chips__toggle--action {
73
73
  box-shadow: inset 0 0 0 1px var(--ax-border-accent-subtleA);
74
74
  background-color: var(--ax-bg-accent-moderate);
75
- color: var(--ax-text-default);
75
+ color: var(--ax-text-accent-strong);
76
76
 
77
77
  &:hover {
78
78
  background-color: var(--ax-bg-accent-moderate-hover);
@@ -5,7 +5,7 @@
5
5
  margin: 0;
6
6
  text-decoration: none;
7
7
  border: none;
8
- border-radius: var(--ax-border-radius-medium);
8
+ border-radius: var(--ax-border-radius-large);
9
9
  padding: var(--__axc-copybutton-padding);
10
10
  display: grid;
11
11
  place-content: center;
@@ -25,8 +25,8 @@
25
25
  }
26
26
 
27
27
  &:focus-visible {
28
- outline: 2px solid var(--ax-border-focus);
29
- outline-offset: 2px;
28
+ outline: 3px solid var(--ax-border-focus);
29
+ outline-offset: 3px;
30
30
  }
31
31
 
32
32
  &:disabled {
@@ -67,12 +67,8 @@
67
67
  --__axc-copybutton-padding: var(--ax-space-4);
68
68
  }
69
69
 
70
- & .navds-copybutton__icon {
71
- font-size: 1.25rem;
72
- }
73
-
74
70
  & > .navds-copybutton__content {
75
- gap: var(--ax-space-6);
71
+ gap: var(--ax-space-4);
76
72
  }
77
73
  }
78
74
 
@@ -96,7 +92,7 @@
96
92
  }
97
93
 
98
94
  & > .navds-copybutton__content {
99
- gap: var(--ax-space-4);
95
+ gap: var(--ax-space-2);
100
96
  }
101
97
  }
102
98
 
@@ -104,18 +100,6 @@
104
100
  .navds-copybutton__icon {
105
101
  font-size: 1.5rem;
106
102
  display: flex;
107
-
108
- &:first-of-type {
109
- margin-left: -0.25rem;
110
- }
111
-
112
- &:last-of-type {
113
- margin-right: -0.25rem;
114
- }
115
-
116
- &:only-child {
117
- margin: 0;
118
- }
119
103
  }
120
104
 
121
105
  .navds-copybutton--active .navds-copybutton__icon {
@@ -146,14 +130,6 @@
146
130
 
147
131
  &.navds-copybutton--active {
148
132
  color: var(--ax-text-success);
149
-
150
- &:hover {
151
- color: var(--ax-text-success-strong);
152
- }
153
- }
154
-
155
- &:hover {
156
- color: var(--ax-text-accent-strong);
157
133
  }
158
134
 
159
135
  &:disabled {
@@ -165,11 +141,6 @@
165
141
  .navds-copybutton--neutral {
166
142
  color: var(--ax-text-subtle);
167
143
 
168
- &:hover,
169
- &.navds-copybutton--active {
170
- color: var(--ax-text-default);
171
- }
172
-
173
144
  &:disabled {
174
145
  color: var(--ax-text-subtle);
175
146
  }
@@ -179,5 +150,5 @@
179
150
  display: inline-flex;
180
151
  align-items: center;
181
152
  justify-content: center;
182
- gap: var(--ax-space-8);
153
+ gap: var(--ax-space-6);
183
154
  }
@@ -35,21 +35,19 @@
35
35
  width: 2.5rem;
36
36
  height: 2.5rem;
37
37
  text-align: center;
38
- border-radius: var(--ax-border-radius-medium);
38
+ border-radius: var(--ax-border-radius-large);
39
39
  }
40
40
 
41
41
  .rdp-day_range_start {
42
- border-radius: var(--ax-border-radius-xlarge) var(--ax-border-radius-medium) var(--ax-border-radius-medium)
43
- var(--ax-border-radius-xlarge);
42
+ border-radius: 100% var(--ax-border-radius-xlarge) var(--ax-border-radius-xlarge) 100%;
44
43
  }
45
44
 
46
45
  .rdp-day_range_end:not(.rdp-day_range_start) {
47
- border-radius: var(--ax-border-radius-medium) var(--ax-border-radius-xlarge) var(--ax-border-radius-xlarge)
48
- var(--ax-border-radius-medium);
46
+ border-radius: var(--ax-border-radius-large) 100% 100% var(--ax-border-radius-large);
49
47
  }
50
48
 
51
49
  .rdp-day_range_start.rdp-day_range_end {
52
- border-radius: var(--ax-border-radius-xlarge);
50
+ border-radius: var(--ax-border-radius-large);
53
51
  }
54
52
 
55
53
  .navds-date__field {
@@ -142,7 +140,7 @@
142
140
  width: 3rem;
143
141
  height: 3rem;
144
142
  text-transform: capitalize;
145
- border-radius: var(--ax-border-radius-medium);
143
+ border-radius: var(--ax-border-radius-large);
146
144
  cursor: pointer;
147
145
  }
148
146
 
@@ -159,8 +157,8 @@
159
157
  .rdp-cell > button.rdp-day,
160
158
  button.navds-date__month-button {
161
159
  &:focus-visible {
162
- outline: 2px solid var(--ax-border-focus);
163
- outline-offset: 1px;
160
+ outline: 3px solid var(--ax-border-focus);
161
+ outline-offset: 3px;
164
162
  }
165
163
 
166
164
  &:active:not(:disabled) {
@@ -192,7 +190,7 @@
192
190
  text-decoration: none;
193
191
  border: none;
194
192
  background: none;
195
- border-radius: calc(var(--ax-border-radius-medium) - 1px);
193
+ border-radius: calc(var(--ax-border-radius-large) - 1px);
196
194
  padding: var(--ax-space-12);
197
195
  align-items: center;
198
196
  justify-content: center;
@@ -1,6 +1,6 @@
1
1
  .navds-expansioncard {
2
2
  --__axc-expansioncard-border-radius: calc(var(--ax-border-radius-xlarge) - 1px);
3
- --__axc-expansioncard-padding-block: var(--ax-space-16);
3
+ --__axc-expansioncard-padding-block: var(--ax-space-20);
4
4
  --__axc-expansioncard-padding-inline: var(--ax-space-20);
5
5
 
6
6
  border-radius: var(--ax-border-radius-xlarge);
@@ -17,7 +17,7 @@
17
17
  /* ------------------------ ExpansionCard Small-size ------------------------ */
18
18
  .navds-expansioncard--small {
19
19
  --__axc-expansioncard-padding-inline: var(--ax-space-16);
20
- --__axc-expansioncard-padding-block: var(--ax-space-12);
20
+ --__axc-expansioncard-padding-block: var(--ax-space-16);
21
21
 
22
22
  & > .navds-expansioncard__header .navds-expansioncard__title--small {
23
23
  margin-top: var(--ax-space-2);
@@ -45,7 +45,7 @@
45
45
  justify-content: space-between;
46
46
 
47
47
  &:hover {
48
- background-color: var(--ax-bg-hover);
48
+ background-color: var(--ax-bg-hoverA);
49
49
  }
50
50
 
51
51
  &[data-open="true"] {
@@ -55,7 +55,7 @@
55
55
  /* Divider between header and content */
56
56
  &::after {
57
57
  content: "";
58
- background-color: var(--ax-border-subtle);
58
+ background-color: var(--ax-border-subtleA);
59
59
  bottom: 0;
60
60
  left: var(--__axc-expansioncard-padding-inline);
61
61
  height: 1px;
@@ -98,15 +98,7 @@
98
98
  align-self: flex-start;
99
99
 
100
100
  &:focus-visible {
101
- outline: 2px solid var(--ax-border-focus);
102
- outline-offset: 2px;
103
- }
104
-
105
- @supports not selector(:focus-visible) {
106
- &:focus {
107
- outline: 2px solid var(--ax-border-focus);
108
- outline-offset: 2px;
109
- }
101
+ outline: 3px solid var(--ax-border-focus);
110
102
  }
111
103
 
112
104
  /* Makes the whole header clickable */