@helsenorge/designsystem-react 15.7.2 → 16.0.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 (228) hide show
  1. package/lib/Button.js +2 -2
  2. package/lib/Button.js.map +1 -1
  3. package/lib/CHANGELOG.md +2652 -997
  4. package/lib/Close.js +1 -1
  5. package/lib/Close.js.map +1 -1
  6. package/lib/Drawer.js +2 -4
  7. package/lib/Drawer.js.map +1 -1
  8. package/lib/DrawerNavigation.js +1 -0
  9. package/lib/DrawerNavigation.js.map +1 -1
  10. package/lib/Duolist.js +5 -1
  11. package/lib/Duolist.js.map +1 -1
  12. package/lib/ElementHeader.js.map +1 -1
  13. package/lib/FilterLinkList.js +1 -1
  14. package/lib/FilterLinkList.js.map +1 -1
  15. package/lib/FormGroup.js +3 -3
  16. package/lib/FormGroup.js.map +1 -1
  17. package/lib/HelpDetails.js +1 -1
  18. package/lib/HelpTriggerIcon.js +2 -2
  19. package/lib/HelpTriggerIcon.js.map +1 -1
  20. package/lib/HelpTriggerStandalone.js +1 -1
  21. package/lib/HelpTriggerStandalone.js.map +1 -1
  22. package/lib/LazyIcon.js +1 -0
  23. package/lib/LazyIcon.js.map +1 -1
  24. package/lib/LazyIllustration.js +2 -0
  25. package/lib/LazyIllustration.js.map +1 -1
  26. package/lib/LinkList.js +10 -10
  27. package/lib/LinkList.js.map +1 -1
  28. package/lib/ListEditMode.js +1 -1
  29. package/lib/ListEditMode.js.map +1 -1
  30. package/lib/PopOver.js +2 -2
  31. package/lib/PopOver.js.map +1 -1
  32. package/lib/Radio.js +65 -55
  33. package/lib/Radio.js.map +1 -1
  34. package/lib/Radio2.js +74 -0
  35. package/lib/Radio2.js.map +1 -0
  36. package/lib/RadioMarker.js +2 -2
  37. package/lib/RadioMarker.js.map +1 -1
  38. package/lib/TabList.js +5 -5
  39. package/lib/TabList.js.map +1 -1
  40. package/lib/Toggle.js +2 -2
  41. package/lib/Toggle.js.map +1 -1
  42. package/lib/VisualRadio.js +1 -1
  43. package/lib/VisualRadio.js.map +1 -1
  44. package/lib/components/AnchorLink/styles.module.scss +3 -4
  45. package/lib/components/ArticleTeaser/styles.module.scss +12 -12
  46. package/lib/components/Button/Button.d.ts +1 -1
  47. package/lib/components/Button/styles.module.scss +111 -60
  48. package/lib/components/Button/styles.module.scss.d.ts +1 -1
  49. package/lib/components/Checkbox/CheckboxMarker/styles.module.scss +6 -6
  50. package/lib/components/Chip/styles.module.scss +2 -3
  51. package/lib/components/Close/styles.module.scss +2 -3
  52. package/lib/components/DictionaryTrigger/index.js +26 -1
  53. package/lib/{DictionaryTrigger.js.map → components/DictionaryTrigger/index.js.map} +1 -1
  54. package/lib/components/DictionaryTrigger/styles.module.scss +6 -8
  55. package/lib/components/Drawer/Drawer.d.ts +0 -4
  56. package/lib/components/Drawer/DrawerBackButton.module.scss +1 -2
  57. package/lib/components/Drawer/styles.module.scss +6 -3
  58. package/lib/components/Dropdown/SingleSelect/styles.module.scss +0 -2
  59. package/lib/components/Dropdown/index.js +9 -17
  60. package/lib/components/Dropdown/index.js.map +1 -1
  61. package/lib/components/Dropdown/styles.module.scss +12 -14
  62. package/lib/components/Duolist/Duolist.d.ts +14 -2
  63. package/lib/components/Duolist/styles.module.scss +32 -8
  64. package/lib/components/Duolist/styles.module.scss.d.ts +3 -0
  65. package/lib/components/ElementHeader/ElementHeader.d.ts +1 -1
  66. package/lib/components/ElementHeader/styles.module.scss +1 -1
  67. package/lib/components/EmptyState/styles.module.scss +1 -2
  68. package/lib/components/ErrorWrapper/styles.module.scss +3 -3
  69. package/lib/components/Expander/styles.module.scss +0 -2
  70. package/lib/components/Expander/styles.module.scss.d.ts +1 -1
  71. package/lib/components/ExpanderList/index.js +20 -19
  72. package/lib/components/ExpanderList/index.js.map +1 -1
  73. package/lib/components/ExpanderList/styles.module.scss +10 -11
  74. package/lib/components/FavoriteButton/index.js +3 -3
  75. package/lib/components/FavoriteButton/index.js.map +1 -1
  76. package/lib/components/FavoriteButton/styles.module.scss +0 -1
  77. package/lib/components/Filter/FilterButton/styles.module.scss +5 -6
  78. package/lib/components/Filter/FilterButtonAndChipsWrapper/styles.module.scss +0 -1
  79. package/lib/components/Filter/FilterDrawer/styles.module.scss +0 -1
  80. package/lib/components/Filter/FilterLinkList/FilterLinkList.module.scss +5 -6
  81. package/lib/components/Filter/FilterOverviewSearch/styles.module.scss +1 -4
  82. package/lib/components/Filter/FilterSearch/styles.module.scss +14 -15
  83. package/lib/components/Filter/FilterSort/styles.module.scss +1 -2
  84. package/lib/components/Filter/FilterStateWrapper/styles.module.scss +0 -2
  85. package/lib/components/Filter/LoaderSpinner/styles.module.scss +2 -4
  86. package/lib/components/FormFieldTag/styles.module.scss +0 -1
  87. package/lib/components/FormGroup/styles.module.scss +0 -1
  88. package/lib/components/HelpBubble/styles.module.scss +0 -1
  89. package/lib/components/HelpDetails/styles.module.scss +2 -4
  90. package/lib/components/HelpDrawer/styles.module.scss +1 -2
  91. package/lib/components/HelpPanel/HelpPanel.d.ts +2 -2
  92. package/lib/components/HelpPanel/index.js +1 -17
  93. package/lib/components/HelpPanel/index.js.map +1 -1
  94. package/lib/components/HelpPanel/styles.module.scss +2 -22
  95. package/lib/components/HelpPanel/styles.module.scss.d.ts +0 -4
  96. package/lib/components/HelpTeaser/styles.module.scss +7 -9
  97. package/lib/components/HelpTriggerIcon/HelpTriggerIcon.d.ts +2 -2
  98. package/lib/components/HelpTriggerIcon/styles.module.scss +20 -22
  99. package/lib/components/HelpTriggerIcon/styles.module.scss.d.ts +1 -1
  100. package/lib/components/HelpTriggerInline/styles.module.scss +3 -5
  101. package/lib/components/HelpTriggerStandalone/styles.module.scss +3 -5
  102. package/lib/components/HighlightPanel/styles.module.scss +2 -3
  103. package/lib/components/Icons/AdditionalIconInformation.d.ts +4 -0
  104. package/lib/components/Icons/AdditionalIconInformation.js +14 -10
  105. package/lib/components/Icons/AdditionalIconInformation.js.map +1 -1
  106. package/lib/components/Icons/HistoryDocument.js +6 -7
  107. package/lib/components/Icons/HistoryDocument.js.map +1 -1
  108. package/lib/components/Icons/IconNames.d.ts +1 -1
  109. package/lib/components/Icons/IconNames.js +1 -0
  110. package/lib/components/Icons/IconNames.js.map +1 -1
  111. package/lib/components/Icons/YesNo.d.ts +3 -0
  112. package/lib/components/Icons/YesNo.js +53 -0
  113. package/lib/components/Icons/YesNo.js.map +1 -0
  114. package/lib/components/Illustrations/IllustrationNames.d.ts +1 -1
  115. package/lib/components/Illustrations/IllustrationNames.js +2 -0
  116. package/lib/components/Illustrations/IllustrationNames.js.map +1 -1
  117. package/lib/components/Illustrations/MoveAway.d.ts +11 -0
  118. package/lib/components/Illustrations/MoveAway.js +18 -0
  119. package/lib/components/Illustrations/MoveAway.js.map +1 -0
  120. package/lib/components/Illustrations/MoveAwayMedium.d.ts +3 -0
  121. package/lib/components/Illustrations/MoveAwayMedium.js +114 -0
  122. package/lib/components/Illustrations/MoveAwayMedium.js.map +1 -0
  123. package/lib/components/InfoTeaser/styles.module.scss +6 -8
  124. package/lib/components/Label/styles.module.scss +1 -1
  125. package/lib/components/LinkList/LinkList.d.ts +1 -1
  126. package/lib/components/LinkList/styles.module.scss +9 -11
  127. package/lib/components/LinkList/styles.module.scss.d.ts +1 -1
  128. package/lib/components/ListEditMode/styles.module.scss +5 -7
  129. package/lib/components/Loader/Loader.d.ts +1 -1
  130. package/lib/components/Loader/index.js +4 -4
  131. package/lib/components/Loader/index.js.map +1 -1
  132. package/lib/components/Loader/styles.module.scss +7 -7
  133. package/lib/components/Loader/styles.module.scss.d.ts +3 -3
  134. package/lib/components/Modal/constants.d.ts +1 -1
  135. package/lib/components/Modal/index.js +2 -2
  136. package/lib/components/Modal/index.js.map +1 -1
  137. package/lib/components/Modal/styles.module.scss +14 -19
  138. package/lib/components/Modal/styles.module.scss.d.ts +2 -3
  139. package/lib/components/Panel/index.js +1 -1
  140. package/lib/components/Panel/index.js.map +1 -1
  141. package/lib/components/Panel/styles.module.scss +15 -16
  142. package/lib/components/Panel/styles.module.scss.d.ts +1 -1
  143. package/lib/components/PopMenu/index.js +7 -4
  144. package/lib/components/PopMenu/index.js.map +1 -1
  145. package/lib/components/PopOver/styles.module.scss +1 -3
  146. package/lib/components/Progressbar/Progressbar.d.ts +1 -1
  147. package/lib/components/Progressbar/constants.d.ts +1 -1
  148. package/lib/components/Progressbar/index.js +4 -4
  149. package/lib/components/Progressbar/index.js.map +1 -1
  150. package/lib/components/Radio/Radio.d.ts +28 -0
  151. package/lib/components/Radio/index.d.ts +3 -0
  152. package/lib/components/Radio/index.js +7 -0
  153. package/lib/components/Radio/index.js.map +1 -0
  154. package/lib/components/{RadioButton → Radio}/styles.module.scss +8 -9
  155. package/lib/components/Radio/styles.module.scss.d.ts +26 -0
  156. package/lib/components/ServiceMessage/styles.module.scss +20 -22
  157. package/lib/components/Slider/styles.module.scss +1 -2
  158. package/lib/components/StatusDot/styles.module.scss +4 -5
  159. package/lib/components/StickyNote/index.js +2 -2
  160. package/lib/components/StickyNote/index.js.map +1 -1
  161. package/lib/components/StickyNote/styles.module.scss +9 -10
  162. package/lib/components/Tabs/TabList/styles.module.scss +20 -18
  163. package/lib/components/Tabs/TabPanel/styles.module.scss +2 -3
  164. package/lib/components/Tabs/styles.module.scss +0 -1
  165. package/lib/components/Tag/styles.module.scss +0 -1
  166. package/lib/components/Tile/styles.module.scss +5 -7
  167. package/lib/components/Toast/styles.module.scss +0 -1
  168. package/lib/components/Toggle/styles.module.scss +9 -10
  169. package/lib/components/Validation/index.js +2 -2
  170. package/lib/components/Validation/index.js.map +1 -1
  171. package/lib/components/VisualCheckboxCloud/Checkbox/styles.module.scss +0 -2
  172. package/lib/components/VisualCheckboxCloud/styles.module.scss +0 -1
  173. package/lib/components/VisualCheckboxGroup/VisualCheckbox/styles.module.scss +0 -2
  174. package/lib/components/VisualCheckboxGroup/styles.module.scss +0 -1
  175. package/lib/components/VisualContentgroupWithImage/styles.module.scss +0 -1
  176. package/lib/components/VisualRadioCloud/Radio/index.js +1 -1
  177. package/lib/components/VisualRadioCloud/Radio/styles.module.scss +0 -2
  178. package/lib/components/VisualRadioCloud/index.js +1 -1
  179. package/lib/components/VisualRadioCloud/styles.module.scss +0 -1
  180. package/lib/components/VisualRadioGroup/VisualRadio/styles.module.scss +0 -2
  181. package/lib/components/VisualRadioGroup/styles.module.scss +0 -1
  182. package/lib/constants.d.ts +2 -3
  183. package/lib/constants.js +2 -3
  184. package/lib/constants.js.map +1 -1
  185. package/lib/floating-ui.react.js +1 -458
  186. package/lib/floating-ui.react.js.map +1 -1
  187. package/lib/hooks/useDismissablePopover.d.ts +20 -0
  188. package/lib/hooks/useDismissablePopover.js +66 -0
  189. package/lib/hooks/useDismissablePopover.js.map +1 -0
  190. package/lib/hooks/useOutsideEvent.d.ts +3 -0
  191. package/lib/hooks/useOutsideEvent.js +24 -3
  192. package/lib/hooks/useOutsideEvent.js.map +1 -1
  193. package/lib/hooks/useReturnFocusOnClose.d.ts +7 -0
  194. package/lib/hooks/useReturnFocusOnClose.js +22 -0
  195. package/lib/hooks/useReturnFocusOnClose.js.map +1 -0
  196. package/lib/index.d.ts +2 -0
  197. package/lib/index.js +3 -1
  198. package/lib/scss/_visual-form.scss +47 -47
  199. package/lib/scss/helsenorge.scss +1 -0
  200. package/lib/scss/supernova/styles/colors.css +177 -122
  201. package/lib/scss/supernova/styles/typography.css +58 -51
  202. package/lib/scss/supernova-legacy/index.css +2 -0
  203. package/lib/scss/supernova-legacy/styles/legacy-colors.css +111 -0
  204. package/lib/utils/formSpacing.js +3 -3
  205. package/lib/utils/formSpacing.js.map +1 -1
  206. package/package.json +8 -14
  207. package/scss/_visual-form.scss +47 -47
  208. package/scss/helsenorge.scss +1 -0
  209. package/scss/supernova/styles/colors.css +177 -122
  210. package/scss/supernova/styles/typography.css +58 -51
  211. package/scss/supernova-legacy/index.css +2 -0
  212. package/scss/supernova-legacy/styles/legacy-colors.css +111 -0
  213. package/lib/DictionaryTrigger.js +0 -27
  214. package/lib/RadioButton.js +0 -84
  215. package/lib/RadioButton.js.map +0 -1
  216. package/lib/components/HelpTooltip/HelpTooltip.d.ts +0 -12
  217. package/lib/components/HelpTooltip/index.d.ts +0 -3
  218. package/lib/components/HelpTooltip/index.js +0 -48
  219. package/lib/components/HelpTooltip/index.js.map +0 -1
  220. package/lib/components/RadioButton/RadioButton.d.ts +0 -28
  221. package/lib/components/RadioButton/index.d.ts +0 -3
  222. package/lib/components/RadioButton/index.js +0 -7
  223. package/lib/components/RadioButton/index.js.map +0 -1
  224. package/lib/components/RadioButton/styles.module.scss.d.ts +0 -26
  225. package/lib/designsystem-react.css +0 -273
  226. /package/lib/components/{RadioButton → Radio}/RadioMarker/RadioMarker.d.ts +0 -0
  227. /package/lib/components/{RadioButton → Radio}/RadioMarker/styles.module.scss +0 -0
  228. /package/lib/components/{RadioButton → Radio}/RadioMarker/styles.module.scss.d.ts +0 -0
@@ -1,11 +1,9 @@
1
1
  @use 'sass:map';
2
2
  @use '../../scss/breakpoints' as breakpoints;
3
- @import '../../scss/supernova/styles/colors.css';
4
- @import '../../scss/supernova/styles/spacers.css';
5
3
 
6
4
  .articleteaser {
7
5
  position: relative;
8
- border-bottom: 1px solid var(--color-base-border-onlight);
6
+ border-bottom: 1px solid var(--color-base-border-dark);
9
7
 
10
8
  &__content {
11
9
  overflow: hidden;
@@ -36,7 +34,7 @@
36
34
  width: fit-content;
37
35
  white-space: nowrap;
38
36
  border-radius: 1.25rem;
39
- background: var(--color-action-graphics-onlight, #188097);
37
+ background: var(--color-action-graphics-dark-normal, #188097);
40
38
  color: var(--core-color-white, #fff);
41
39
  padding: 0.375rem 1rem;
42
40
  bottom: 0;
@@ -48,26 +46,28 @@
48
46
  font-size: 1rem;
49
47
  font-style: normal;
50
48
  font-weight: 600;
51
- line-height: 120%; /* 1.2rem */
49
+ line-height: 120%;
50
+
51
+ /* 1.2rem */
52
52
 
53
53
  &:hover {
54
- background-color: var(--color-action-graphics-onlight-hover);
54
+ background-color: var(--color-action-graphics-dark-hover);
55
55
  }
56
56
 
57
57
  &:focus-visible {
58
- border: 1px solid var(--color-base-graphics-ondark);
58
+ border: 1px solid var(--color-base-graphics-light);
59
59
  outline: none;
60
- box-shadow: 0 0 0 3px var(--color-base-graphics-onlight);
60
+ box-shadow: 0 0 0 3px var(--color-base-graphics-dark);
61
61
  }
62
62
 
63
63
  &:active {
64
- background-color: var(--color-action-background-onlight-active);
64
+ background-color: var(--color-action-background-dark-plus1-active);
65
65
  }
66
66
 
67
67
  &--expanded {
68
- background: var(--color-action-graphics-ondark);
69
- color: var(--color-action-graphics-onlight);
70
- border: 1px solid var(--color-action-border-onlight);
68
+ background: var(--color-action-graphics-light-normal);
69
+ color: var(--color-action-graphics-dark-normal);
70
+ border: 1px solid var(--color-action-border-dark-normal);
71
71
 
72
72
  &:hover {
73
73
  background-color: var(--color-action-background-like-transparent-but-opaque-onlight-hover);
@@ -2,7 +2,7 @@ import { default as React, AriaAttributes } from 'react';
2
2
  import { HTMLButtonProps, HTMLAnchorProps } from '../../constants';
3
3
  export type ButtonConcept = 'normal' | 'destructive';
4
4
  export type ButtonVariant = 'fill' | 'outline' | 'borderless';
5
- export type ButtonSize = 'medium' | 'large';
5
+ export type ButtonSize = 'normal' | 'large';
6
6
  export type ButtonOnColor = 'onlight' | 'ondark';
7
7
  export type ButtonTags = 'button' | 'a';
8
8
  export type ButtonArrows = 'icon' | 'accessibility-character';
@@ -4,27 +4,26 @@
4
4
  @use '../../scss/font-settings' as font-settings;
5
5
  @use '../../scss/screen-reader' as *;
6
6
  @use '../../scss/breakpoints' as breakpoints;
7
- @import '../../scss/supernova/styles/colors.css';
8
7
 
9
8
  $dark-mode-disabled-transparrent: #ffffffb3;
10
9
  $with-icons: // icon-class, size-class, padding-left, padding-right, padding-left desktop, padding-right desktop, svg-margin-left, svg-margin-right, svg-margin-left desktop, svg-margin-right desktop
11
- 'left-icon' 'medium' spacers.getSpacer(xs) spacers.getSpacer(s) spacers.getSpacer(xs) spacers.getSpacer(m) 0 spacers.getSpacer(3xs) 0
10
+ 'left-icon' 'normal' spacers.getSpacer(xs) spacers.getSpacer(s) spacers.getSpacer(xs) spacers.getSpacer(m) 0 spacers.getSpacer(3xs) 0
12
11
  spacers.getSpacer(2xs),
13
- 'right-icon' 'medium' spacers.getSpacer(s) spacers.getSpacer(xs) spacers.getSpacer(m) spacers.getSpacer(xs) spacers.getSpacer(3xs) 0
12
+ 'right-icon' 'normal' spacers.getSpacer(s) spacers.getSpacer(xs) spacers.getSpacer(m) spacers.getSpacer(xs) spacers.getSpacer(3xs) 0
14
13
  spacers.getSpacer(2xs) 0,
15
14
  'left-icon' 'large-non-borderless' spacers.getSpacer(xs) spacers.getSpacer(m) spacers.getSpacer(s) spacers.getSpacer(l) 0
16
15
  spacers.getSpacer(2xs) 0 spacers.getSpacer(xs),
17
16
  'right-icon' 'large-non-borderless' spacers.getSpacer(m) spacers.getSpacer(xs) spacers.getSpacer(l) spacers.getSpacer(s)
18
17
  spacers.getSpacer(2xs) 0 spacers.getSpacer(xs) 0,
19
- 'arrow' 'medium' spacers.getSpacer(s) spacers.getSpacer(xs) spacers.getSpacer(m) spacers.getSpacer(xs) spacers.getSpacer(m) 0
18
+ 'arrow' 'normal' spacers.getSpacer(s) spacers.getSpacer(xs) spacers.getSpacer(m) spacers.getSpacer(xs) spacers.getSpacer(m) 0
20
19
  spacers.getSpacer(l) 0,
21
20
  'arrow' 'large-non-borderless' spacers.getSpacer(m) spacers.getSpacer(xs) spacers.getSpacer(l) spacers.getSpacer(xs) spacers.getSpacer(l)
22
21
  0 spacers.getSpacer(xl) 0,
23
- 'arrow--both-icons' 'medium' 0 0 0 0 spacers.getSpacer(s) 0 spacers.getSpacer(m) 0,
22
+ 'arrow--both-icons' 'normal' 0 0 0 0 spacers.getSpacer(s) 0 spacers.getSpacer(m) 0,
24
23
  'arrow--both-icons' 'large-non-borderless' 0 0 0 0 spacers.getSpacer(m) 0 spacers.getSpacer(l) 0,
25
- 'only-icon' 'medium' 0.0625rem 0.0625rem 0.375rem 0.375rem 0 0 0 0,
24
+ 'only-icon' 'normal' 0.0625rem 0.0625rem 0.375rem 0.375rem 0 0 0 0,
26
25
  'only-icon' 'large-non-borderless' 0.312rem 0.312rem spacers.getSpacer(3xs) spacers.getSpacer(3xs) 0 0 0 0,
27
- 'both-icons' 'medium' spacers.getSpacer(xs) spacers.getSpacer(xs) spacers.getSpacer(xs) spacers.getSpacer(xs) 0 0 0 0,
26
+ 'both-icons' 'normal' spacers.getSpacer(xs) spacers.getSpacer(xs) spacers.getSpacer(xs) spacers.getSpacer(xs) 0 0 0 0,
28
27
  'both-icons' 'large-non-borderless' spacers.getSpacer(xs) spacers.getSpacer(xs) spacers.getSpacer(xs) spacers.getSpacer(xs) 0 0 0 0,
29
28
  'left-icon' 'large-borderless' spacers.getSpacer(xs) spacers.getSpacer(s) spacers.getSpacer(xs) spacers.getSpacer(m) 0
30
29
  spacers.getSpacer(3xs) 0 spacers.getSpacer(3xs),
@@ -41,24 +40,25 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
41
40
  }
42
41
 
43
42
  @mixin outline-borderless-text-hover {
44
- @include text-color(var(--color-action-text-onlight-hover), var(--color-action-text-onlight-hover));
43
+ @include text-color(var(--color-action-text-dark-hover), var(--color-action-text-dark-hover));
45
44
  }
46
45
 
47
46
  @mixin focus-shadow($with-uu-border: true) {
48
- box-shadow: 0 0 0 spacers.getSpacer(3xs) palette.$black;
47
+ box-shadow: 0 0 0 spacers.getSpacer(3xs) var(--color-action-border-dark-focus);
49
48
 
50
49
  @if $with-uu-border {
51
- border: 1px solid var(--color-action-border-ondark-focus);
50
+ border: 1px solid var(--color-action-border-light-focus);
52
51
  } @else {
53
52
  border: none;
54
53
  }
55
54
  }
56
55
 
57
56
  @mixin focus-shadow-on-dark($with-uu-border: true) {
58
- box-shadow: 0 0 0 spacers.getSpacer(3xs) palette.$white;
57
+ outline: none;
58
+ box-shadow: 0 0 0 spacers.getSpacer(3xs) var(--color-action-border-light-focus);
59
59
 
60
60
  @if $with-uu-border {
61
- border: 1px solid var(--color-action-border-onlight-focus);
61
+ border: 1px solid var(--color-action-border-dark-focus);
62
62
  } @else {
63
63
  border: none;
64
64
  }
@@ -76,7 +76,7 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
76
76
  }
77
77
  }
78
78
 
79
- @mixin outline($ouline-color, $hover-outline-color) {
79
+ @mixin outline($ouline-color) {
80
80
  outline: spacers.getSpacer(4xs) solid $ouline-color;
81
81
  outline-offset: spacers.getSpacer(4xs) * -1;
82
82
 
@@ -85,11 +85,7 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
85
85
  }
86
86
 
87
87
  :disabled > & {
88
- outline-color: palette.$neutral700;
89
-
90
- @media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
91
- outline-color: palette.$neutral500;
92
- }
88
+ outline-color: var(--color-disabled-border-dark);
93
89
  }
94
90
  }
95
91
 
@@ -101,20 +97,22 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
101
97
  }
102
98
 
103
99
  :disabled > & {
104
- color: palette.$neutral700;
100
+ color: var(--color-disabled-text);
105
101
  }
106
102
  }
107
103
 
108
104
  @mixin fill-on-dark($background-color) {
109
- background-color: palette.$white;
105
+ background-color: var(--color-action-background-light-normal);
110
106
 
111
107
  &:hover {
112
- box-shadow: none;
108
+ box-shadow: 0 0 0 spacers.getSpacer(3xs) var(--color-action-border-light-hover);
109
+ background-color: $background-color;
113
110
  }
114
111
 
115
- &:hover,
116
- :focus > & {
117
- background-color: $background-color;
112
+ &:active {
113
+ /* NOSONAR - falsk positiv: & får scoping root der mixinen inkluderes */
114
+ background-color: var(--color-action-background-light-active);
115
+ box-shadow: 0 0 0 spacers.getSpacer(3xs) var(--color-action-border-light-active);
118
116
  }
119
117
 
120
118
  /* stylelint-disable-next-line */
@@ -127,27 +125,41 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
127
125
  color: $color;
128
126
 
129
127
  :disabled > & {
130
- color: palette.$neutral700;
128
+ color: var(--color-disabled-text);
131
129
  }
132
130
  }
133
131
 
134
132
  @mixin on-dark {
135
133
  &--on-dark {
136
- @include fill-on-dark(var(--color-action-background-ondark-hover));
134
+ @include fill-on-dark(var(--color-action-background-light-hover));
137
135
 
138
- :focus > & {
136
+ :focus-visible > & {
139
137
  @include focus-shadow-on-dark(true);
140
138
 
141
139
  &:hover {
142
140
  @include focus-shadow-on-dark(true);
143
-
144
- background-color: palette.$white;
145
141
  }
146
142
  }
147
143
  }
148
144
 
149
145
  &--on-dark#{&}--destructive {
150
146
  @include fill-on-dark(palette.$cherry50);
147
+
148
+ &:active {
149
+ background-color: var(--color-destructive-graphics-dark-active);
150
+ }
151
+ }
152
+
153
+ &--on-dark#{&}--outline#{&}--destructive {
154
+ &:active {
155
+ background-color: var(--color-destructive-background-transparent-onlight-active);
156
+ }
157
+ }
158
+
159
+ &--on-dark#{&}--borderless#{&}--destructive {
160
+ &:active {
161
+ background-color: var(--color-destructive-background-transparent-onlight-active);
162
+ }
151
163
  }
152
164
 
153
165
  &--on-dark#{&}--outline,
@@ -156,19 +168,23 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
156
168
  &--on-dark#{&}--borderless#{&}--destructive {
157
169
  background-color: transparent;
158
170
 
159
- :focus > & {
160
- @include focus-shadow-on-dark(false);
161
-
162
- &:hover {
163
- @include focus-shadow-on-dark(false);
171
+ &:hover {
172
+ background-color: var(--color-action-background-transparent-multi-onlight-hover);
173
+ box-shadow: none;
174
+ }
164
175
 
165
- background-color: palette.$inverted-hover;
166
- }
176
+ &:active {
177
+ background-color: var(--color-action-background-transparent-multi-onlight-active);
178
+ box-shadow: none;
167
179
  }
168
180
  }
169
181
 
170
182
  &--on-dark#{&}--outline {
171
- outline-color: palette.$white;
183
+ outline-color: var(--color-action-border-light-normal);
184
+
185
+ :focus-visible > & {
186
+ @include focus-shadow-on-dark(true);
187
+ }
172
188
 
173
189
  :disabled > & {
174
190
  @media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
@@ -178,26 +194,34 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
178
194
  }
179
195
 
180
196
  &--on-dark#{&}--borderless {
197
+ :focus-visible > & {
198
+ @include focus-shadow-on-dark(false);
199
+
200
+ &:hover {
201
+ @include focus-shadow-on-dark(false);
202
+ }
203
+ }
204
+
181
205
  :disabled > & {
182
206
  border-color: $dark-mode-disabled-transparrent;
183
207
  }
184
208
  }
185
209
 
186
210
  &--on-dark &__text {
187
- @include on-dark-text(palette.$blueberry600);
211
+ @include on-dark-text(var(--color-action-text-dark-normal));
188
212
  }
189
213
 
190
214
  &--on-dark#{&}--destructive &__text {
191
- @include on-dark-text(palette.$cherry600);
215
+ @include on-dark-text(var(--color-destructive-text-dark-normal));
192
216
  }
193
217
 
194
218
  &--on-dark#{&}--outline &__text,
195
219
  &--on-dark#{&}--borderless &__text {
196
- color: palette.$white;
220
+ color: var(--color-action-text-light-normal);
197
221
 
198
222
  :disabled > & {
199
223
  @media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
200
- color: $dark-mode-disabled-transparrent;
224
+ color: var(--color-disabled-text-light);
201
225
  }
202
226
  }
203
227
  }
@@ -228,7 +252,7 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
228
252
 
229
253
  .button {
230
254
  display: inline-flex;
231
- background-color: palette.$blueberry500;
255
+ background-color: var(--color-action-background-dark-normal);
232
256
  padding: 0 spacers.getSpacer(m);
233
257
  font-size: font-settings.$font-size-sm;
234
258
  font-weight: 600;
@@ -244,19 +268,24 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
244
268
  letter-spacing: unset;
245
269
 
246
270
  &:hover {
247
- background-color: palette.$blueberry700;
248
- box-shadow: 0 0 0 spacers.getSpacer(3xs) palette.$blueberry700;
271
+ background-color: var(--color-action-background-dark-hover);
272
+ box-shadow: 0 0 0 spacers.getSpacer(3xs) var(--color-action-border-dark-hover);
273
+ }
274
+
275
+ &:active {
276
+ background: var(--color-action-background-dark-active);
277
+ box-shadow: 0 0 0 spacers.getSpacer(3xs) var(--color-action-border-dark-active);
249
278
  }
250
279
 
251
280
  :disabled > & {
252
281
  pointer-events: none;
253
- outline: spacers.getSpacer(4xs) dashed palette.$neutral700;
282
+ outline: spacers.getSpacer(4xs) dashed var(--color-disabled-border-dark);
254
283
  outline-offset: spacers.getSpacer(4xs) * -1;
255
- background-color: palette.$neutral200;
284
+ background-color: var(--color-disabled-background-light);
256
285
  }
257
286
 
258
287
  :disabled > & &__text {
259
- color: palette.$neutral800;
288
+ color: var(--color-disabled-text);
260
289
  }
261
290
 
262
291
  @media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
@@ -314,18 +343,23 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
314
343
  }
315
344
 
316
345
  &--destructive {
317
- background-color: palette.$cherry500;
346
+ background-color: var(--color-destructive-background-dark-normal);
318
347
 
319
348
  &:hover {
320
- background-color: palette.$cherry700;
321
- box-shadow: 0 0 0 spacers.getSpacer(3xs) palette.$cherry700;
349
+ background-color: var(--color-destructive-graphics-dark-hover);
350
+ box-shadow: 0 0 0 spacers.getSpacer(3xs) var(--color-destructive-graphics-dark-hover);
351
+ }
352
+
353
+ &:active {
354
+ background-color: var(--color-destructive-graphics-dark-active);
355
+ box-shadow: 0 0 0 spacers.getSpacer(3xs) var(--color-destructive-border-dark-active);
322
356
  }
323
357
  }
324
358
 
325
359
  // Gives space to focus border
326
360
  border: 1px solid transparent;
327
361
 
328
- :focus > & {
362
+ :focus-visible > & {
329
363
  @include focus-shadow;
330
364
 
331
365
  &:hover {
@@ -339,7 +373,12 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
339
373
 
340
374
  border: none;
341
375
 
342
- :focus > & {
376
+ &:active {
377
+ background-color: var(--color-action-background-transparent-onlight-active);
378
+ box-shadow: none;
379
+ }
380
+
381
+ :focus-visible > & {
343
382
  @include focus-shadow(false);
344
383
 
345
384
  &:hover {
@@ -350,15 +389,25 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
350
389
 
351
390
  &--outline#{&}--destructive,
352
391
  &--borderless#{&}--destructive {
353
- @include outline-borderless-background(transparent, palette.$cherry50);
392
+ @include outline-borderless-background(transparent, var(--color-destructive-background-transparent-onlight-hover));
354
393
  }
355
394
 
356
395
  &--outline {
357
- @include outline(palette.$blueberry700, palette.$blueberry50);
396
+ @include outline(var(--color-action-border-dark-normal));
358
397
  }
359
398
 
360
399
  &--outline#{&}--destructive {
361
- @include outline(palette.$cherry700, palette.$cherry50);
400
+ @include outline(var(--color-destructive-border-dark-normal));
401
+
402
+ &:active {
403
+ background-color: var(--color-destructive-background-transparent-onlight-active);
404
+ }
405
+ }
406
+
407
+ &--borderless#{&}--destructive {
408
+ &:active {
409
+ background-color: var(--color-destructive-background-transparent-onlight-active);
410
+ }
362
411
  }
363
412
 
364
413
  &--borderless {
@@ -387,7 +436,7 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
387
436
 
388
437
  /* stylelint-disable-next-line */
389
438
  &__text {
390
- color: palette.$white;
439
+ color: var(--color-action-text-light-normal);
391
440
  margin: 0 auto 0 0;
392
441
  position: relative;
393
442
  display: flex;
@@ -402,6 +451,8 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
402
451
  }
403
452
 
404
453
  &--ellipsis {
454
+ // text-overflow fungerer ikke på flex-containere
455
+ display: block;
405
456
  white-space: nowrap;
406
457
  overflow: hidden;
407
458
  text-overflow: ellipsis;
@@ -419,12 +470,12 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
419
470
  /* stylelint-disable-next-line */
420
471
  &--outline &__text,
421
472
  &--borderless &__text {
422
- @include text-color(var(--color-action-text-onlight), var(--color-action-text-onlight-hover));
473
+ @include text-color(var(--color-action-text-dark-normal), var(--color-action-text-dark-hover));
423
474
  }
424
475
 
425
476
  &--outline#{&}--destructive &__text,
426
477
  &--borderless#{&}--destructive &__text {
427
- @include text-color(palette.$cherry600, palette.$cherry700);
478
+ @include text-color(var(--color-destructive-text-dark-normal), var(--color-destructive-text-dark-hover));
428
479
  }
429
480
 
430
481
  &--only-icon {
@@ -453,13 +504,13 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
453
504
 
454
505
  &__line {
455
506
  display: block;
456
- border-bottom: spacers.getSpacer(4xs) dashed palette.$neutral500;
507
+ border-bottom: spacers.getSpacer(4xs) dashed var(--color-disabled-graphics-dark);
457
508
  transform-origin: top left;
458
509
  transform: rotate(37.4deg);
459
510
  }
460
511
 
461
512
  &--on-dark &__line {
462
- border-color: palette.$white;
513
+ border-color: var(--color-disabled-graphics-light);
463
514
 
464
515
  @media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
465
516
  border-color: $dark-mode-disabled-transparrent;
@@ -18,7 +18,7 @@ export type Styles = {
18
18
  'button--large-borderless': string;
19
19
  'button--large-non-borderless': string;
20
20
  'button--left-icon': string;
21
- 'button--medium': string;
21
+ 'button--normal': string;
22
22
  'button--on-dark': string;
23
23
  'button--only-icon': string;
24
24
  'button--outline': string;
@@ -169,16 +169,16 @@ $checkbox-icon-size: 1.625rem;
169
169
  color: palette.$black;
170
170
 
171
171
  &__regular--checked {
172
- border: 1px solid var(--color-action-border-ondark-focus);
172
+ border: 1px solid var(--color-action-border-light-focus);
173
173
 
174
174
  & + .checkbox__marker__regular--on-dark {
175
- border: 1px solid var(--color-action-border-onlight-focus);
175
+ border: 1px solid var(--color-action-border-dark-focus);
176
176
  }
177
177
  }
178
178
 
179
179
  &--on-dark {
180
180
  color: palette.$white;
181
- border: 1px solid var(--color-action-border-onlight-focus);
181
+ border: 1px solid var(--color-action-border-dark-focus);
182
182
  }
183
183
 
184
184
  &--invalid {
@@ -190,13 +190,13 @@ $checkbox-icon-size: 1.625rem;
190
190
  background-color: palette.$blueberry200;
191
191
  box-shadow: 0 0 0 spacers.getSpacer(3xs);
192
192
  color: palette.$white;
193
- border: 1px solid var(--color-action-border-onlight-focus);
193
+ border: 1px solid var(--color-action-border-dark-focus);
194
194
 
195
195
  // komboklasser fungerer ikke i nested struktur
196
196
  &--invalid {
197
197
  background-color: palette.$cherry500;
198
198
  color: palette.$black;
199
- border: 1px solid var(--color-action-border-ondark-focus);
199
+ border: 1px solid var(--color-action-border-light-focus);
200
200
  }
201
201
 
202
202
  &--disabled {
@@ -215,7 +215,7 @@ $checkbox-icon-size: 1.625rem;
215
215
 
216
216
  label:hover &--on-white,
217
217
  label:hover &--on-grey {
218
- background-color: var(--color-action-graphics-ondark-hover);
218
+ background-color: var(--color-action-graphics-light-hover);
219
219
  }
220
220
 
221
221
  label:active &--on-white,
@@ -1,6 +1,5 @@
1
1
  @use 'sass:map';
2
2
  @use '../../scss/breakpoints' as breakpoints;
3
- @import '../../scss/supernova/styles/colors.css';
4
3
 
5
4
  .chip {
6
5
  display: flex;
@@ -49,7 +48,7 @@
49
48
 
50
49
  .chip__chip:focus-visible &,
51
50
  .chip__close:focus-visible & {
52
- outline: 3px solid var(--color-action-border-onlight-focus);
51
+ outline: 3px solid var(--color-action-border-dark-focus);
53
52
  }
54
53
  }
55
54
  }
@@ -89,7 +88,7 @@
89
88
 
90
89
  svg {
91
90
  position: absolute;
92
- fill: var(--color-action-graphics-onlight);
91
+ fill: var(--color-action-graphics-dark-normal);
93
92
  }
94
93
  }
95
94
  }
@@ -1,6 +1,5 @@
1
1
  @use 'sass:map';
2
2
  @use '../../scss/breakpoints' as breakpoints;
3
- @import '../../scss/supernova/styles/colors.css';
4
3
 
5
4
  $desktop-size: 3rem;
6
5
  $mobile-inner-size: 2.375rem;
@@ -54,7 +53,7 @@ $mobile-outer-size: 2.75rem;
54
53
  }
55
54
 
56
55
  :focus-visible > & {
57
- outline: 4px solid var(--color-action-border-onlight-focus);
56
+ outline: 4px solid var(--color-action-border-dark-focus);
58
57
  border-radius: 0;
59
58
  border: 0;
60
59
  }
@@ -69,7 +68,7 @@ $mobile-outer-size: 2.75rem;
69
68
  }
70
69
 
71
70
  :focus-visible > & {
72
- outline: 4px solid var(--color-action-border-onlight-focus);
71
+ outline: 4px solid var(--color-action-border-dark-focus);
73
72
  border-radius: 0;
74
73
  border: 0;
75
74
  }
@@ -1,2 +1,27 @@
1
- import { t as DictionaryTrigger_default } from "../../DictionaryTrigger.js";
1
+ import { AnalyticsId } from "../../constants.js";
2
+ import classNames from "classnames";
3
+ import { jsx } from "react/jsx-runtime";
4
+ import styles from "./styles.module.scss";
5
+ //#region src/components/DictionaryTrigger/DictionaryTrigger.tsx
6
+ var DictionaryTrigger = (props) => {
7
+ const { children, selected = false, className, testId, ref, ...rest } = props;
8
+ const triggerClasses = classNames(styles.dictionarytrigger, className);
9
+ return /* @__PURE__ */ jsx("button", {
10
+ type: "button",
11
+ "data-testid": testId,
12
+ "data-analyticsid": AnalyticsId.DictionaryTrigger,
13
+ className: triggerClasses,
14
+ "aria-expanded": selected,
15
+ ref,
16
+ ...rest,
17
+ children
18
+ });
19
+ };
20
+ DictionaryTrigger.displayName = "DictionaryTrigger";
21
+ //#endregion
22
+ //#region src/components/DictionaryTrigger/index.ts
23
+ var DictionaryTrigger_default = DictionaryTrigger;
24
+ //#endregion
2
25
  export { DictionaryTrigger_default as default };
26
+
27
+ //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DictionaryTrigger.js","names":[],"sources":["../src/components/DictionaryTrigger/DictionaryTrigger.tsx","../src/components/DictionaryTrigger/index.ts"],"sourcesContent":["import classNames from 'classnames';\n\nimport { AnalyticsId } from '../../constants';\n\nimport styles from './styles.module.scss';\n\nexport interface DictionaryTriggerProps extends Pick<React.InputHTMLAttributes<HTMLButtonElement>, 'onClick' | 'onFocus' | 'onBlur'> {\n /**\n * Sets the content of the trigger.\n */\n children: React.ReactNode;\n /**\n * Indicates that the trigger is in use.\n */\n selected?: boolean;\n /**\n * Classname will be applied to the button element.\n */\n className?: string;\n /**\n * Sets the data-testid attribute.\n */\n testId?: string;\n /**\n * ref that is passed to the component\n */\n ref?: React.Ref<HTMLButtonElement | null>;\n}\n\nconst DictionaryTrigger: React.FC<DictionaryTriggerProps> = (props: DictionaryTriggerProps) => {\n const { children, selected = false, className, testId, ref, ...rest } = props;\n const triggerClasses = classNames(styles.dictionarytrigger, className);\n\n return (\n <button\n type=\"button\"\n data-testid={testId}\n data-analyticsid={AnalyticsId.DictionaryTrigger}\n className={triggerClasses}\n aria-expanded={selected}\n ref={ref}\n {...rest}\n >\n {children}\n </button>\n );\n};\n\nDictionaryTrigger.displayName = 'DictionaryTrigger';\n\nexport default DictionaryTrigger;\n","import DictionaryTrigger from './DictionaryTrigger';\nexport * from './DictionaryTrigger';\nexport default DictionaryTrigger;\n"],"mappings":";;;;;AA6BA,IAAM,qBAAuD,UAAkC;CAC7F,MAAM,EAAE,UAAU,WAAW,OAAO,WAAW,QAAQ,KAAK,GAAG,SAAS;CACxE,MAAM,iBAAiB,WAAW,OAAO,mBAAmB,SAAS;CAErE,OACE,oBAAC,UAAD;EACE,MAAK;EACL,eAAa;EACb,oBAAkB,YAAY;EAC9B,WAAW;EACX,iBAAe;EACV;EACL,GAAI;EAEH;CACK,CAAA;AAEZ;AAEA,kBAAkB,cAAc;;;AC9ChC,IAAA,4BAAe"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../src/components/DictionaryTrigger/DictionaryTrigger.tsx","../../../src/components/DictionaryTrigger/index.ts"],"sourcesContent":["import classNames from 'classnames';\n\nimport { AnalyticsId } from '../../constants';\n\nimport styles from './styles.module.scss';\n\nexport interface DictionaryTriggerProps extends Pick<React.InputHTMLAttributes<HTMLButtonElement>, 'onClick' | 'onFocus' | 'onBlur'> {\n /**\n * Sets the content of the trigger.\n */\n children: React.ReactNode;\n /**\n * Indicates that the trigger is in use.\n */\n selected?: boolean;\n /**\n * Classname will be applied to the button element.\n */\n className?: string;\n /**\n * Sets the data-testid attribute.\n */\n testId?: string;\n /**\n * ref that is passed to the component\n */\n ref?: React.Ref<HTMLButtonElement | null>;\n}\n\nconst DictionaryTrigger: React.FC<DictionaryTriggerProps> = (props: DictionaryTriggerProps) => {\n const { children, selected = false, className, testId, ref, ...rest } = props;\n const triggerClasses = classNames(styles.dictionarytrigger, className);\n\n return (\n <button\n type=\"button\"\n data-testid={testId}\n data-analyticsid={AnalyticsId.DictionaryTrigger}\n className={triggerClasses}\n aria-expanded={selected}\n ref={ref}\n {...rest}\n >\n {children}\n </button>\n );\n};\n\nDictionaryTrigger.displayName = 'DictionaryTrigger';\n\nexport default DictionaryTrigger;\n","import DictionaryTrigger from './DictionaryTrigger';\nexport * from './DictionaryTrigger';\nexport default DictionaryTrigger;\n"],"mappings":";;;;;AA6BA,IAAM,qBAAuD,UAAkC;CAC7F,MAAM,EAAE,UAAU,WAAW,OAAO,WAAW,QAAQ,KAAK,GAAG,SAAS;CACxE,MAAM,iBAAiB,WAAW,OAAO,mBAAmB,SAAS;CAErE,OACE,oBAAC,UAAD;EACE,MAAK;EACL,eAAa;EACb,oBAAkB,YAAY;EAC9B,WAAW;EACX,iBAAe;EACV;EACL,GAAI;EAEH;CACK,CAAA;AAEZ;AAEA,kBAAkB,cAAc;;;AC9ChC,IAAA,4BAAe"}
@@ -1,6 +1,4 @@
1
1
  @use '../../scss/palette' as palette;
2
- @import '../../scss/supernova/styles/colors.css';
3
- @import '../../scss/supernova/styles/spacers.css';
4
2
 
5
3
  .dictionarytrigger {
6
4
  all: unset;
@@ -10,7 +8,7 @@
10
8
  padding: 0 var(--core-space-4xs);
11
9
  background-color: transparent;
12
10
 
13
- --dot-color: var(--color-help-border-normal);
11
+ --dot-color: var(--color-help-border);
14
12
 
15
13
  // The radial-gradient consists of a circle with empty space to the right, making up a dotted pattern when repeated horizontally
16
14
  background-image: radial-gradient(circle at 1.5px 1.5px, var(--dot-color) 1.5px, transparent 1.5px);
@@ -21,7 +19,7 @@
21
19
  &:hover {
22
20
  background-color: var(--color-help-background-transparent-onlight-hover);
23
21
 
24
- --dot-color: var(--color-help-border-dark);
22
+ --dot-color: var(--color-help-border-plus1);
25
23
  }
26
24
 
27
25
  &:focus-visible {
@@ -32,11 +30,11 @@
32
30
  &[aria-expanded='true'] {
33
31
  background-color: var(--color-help-background-transparent-onlight-hover);
34
32
 
35
- --dot-color: var(--color-help-border-dark);
33
+ --dot-color: var(--color-help-border-plus1);
36
34
 
37
35
  &:hover,
38
36
  &:focus-visible {
39
- background-color: var(--color-help-background-transparent-onlight-hover-selected);
37
+ background-color: var(--color-help-background-transparent-onlight-hoverselected);
40
38
  }
41
39
 
42
40
  &:focus-visible {
@@ -45,8 +43,8 @@
45
43
  }
46
44
 
47
45
  &:active {
48
- background-color: var(--color-help-background-transparent-onlight-hover-selected);
46
+ background-color: var(--color-help-background-transparent-onlight-hoverselected);
49
47
 
50
- --dot-color: var(--color-help-border-dark);
48
+ --dot-color: var(--color-help-border-plus1);
51
49
  }
52
50
  }
@@ -48,10 +48,6 @@ export interface InnerDrawerProps {
48
48
  resources?: Partial<HNDesignsystemDrawer>;
49
49
  /** Sets mobile styling and animation from outer level Drawer */
50
50
  isMobile?: boolean;
51
- /** Shows a back button to the left of title */
52
- withBackButton?: boolean;
53
- /** Callback for the back button */
54
- onRequestBack?: () => void;
55
51
  /** Sets classname for content part in Drawer */
56
52
  contentClassName?: string;
57
53
  /** Sets the content padding of the Drawer */