@kaizen/components 1.56.1 → 1.57.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 (48) hide show
  1. package/dist/cjs/Card/Card.module.scss.cjs +1 -0
  2. package/dist/cjs/Collapsible/Collapsible/Collapsible.cjs +6 -5
  3. package/dist/cjs/Collapsible/Collapsible/Collapsible.module.scss.cjs +1 -2
  4. package/dist/cjs/EmptyState/EmptyState.cjs +1 -1
  5. package/dist/cjs/GuidanceBlock/GuidanceBlock.module.scss.cjs +2 -1
  6. package/dist/cjs/Modal/ConfirmationModal/ConfirmationModal.module.scss.cjs +1 -2
  7. package/dist/cjs/Tile/subcomponents/GenericTile/GenericTile.module.scss.cjs +1 -1
  8. package/dist/cjs/Well/Well.module.scss.cjs +1 -1
  9. package/dist/esm/Card/Card.module.scss.mjs +1 -0
  10. package/dist/esm/Collapsible/Collapsible/Collapsible.mjs +6 -5
  11. package/dist/esm/Collapsible/Collapsible/Collapsible.module.scss.mjs +1 -2
  12. package/dist/esm/EmptyState/EmptyState.mjs +2 -2
  13. package/dist/esm/GuidanceBlock/GuidanceBlock.module.scss.mjs +2 -1
  14. package/dist/esm/Modal/ConfirmationModal/ConfirmationModal.module.scss.mjs +1 -2
  15. package/dist/esm/Tile/subcomponents/GenericTile/GenericTile.module.scss.mjs +1 -1
  16. package/dist/esm/Well/Well.module.scss.mjs +1 -1
  17. package/dist/styles.css +18 -18
  18. package/package.json +2 -2
  19. package/src/Card/Card.module.scss +12 -1
  20. package/src/Card/_docs/Card.stickersheet.stories.tsx +0 -7
  21. package/src/Collapsible/Collapsible/Collapsible.module.scss +27 -31
  22. package/src/Collapsible/Collapsible/Collapsible.tsx +2 -4
  23. package/src/Collapsible/Collapsible/_docs/Collapsible.stickersheet.stories.tsx +4 -1
  24. package/src/Collapsible/CollapsibleGroup/CollapsibleGroup.module.scss +2 -0
  25. package/src/Collapsible/CollapsibleGroup/_docs/CollapsibleGroup.stickersheet.stories.tsx +8 -1
  26. package/src/Collapsible/ExpertAdviceCollapsible/ExpertAdviceCollapsible.module.scss +2 -1
  27. package/src/EmptyState/EmptyState.module.scss +23 -21
  28. package/src/EmptyState/EmptyState.tsx +1 -2
  29. package/src/FieldMessage/FieldMessage.module.scss +1 -1
  30. package/src/GuidanceBlock/GuidanceBlock.module.scss +16 -9
  31. package/src/Modal/ConfirmationModal/ConfirmationModal.module.scss +9 -23
  32. package/src/Notification/GlobalNotification/_docs/GlobalNotification.mdx +1 -1
  33. package/src/Notification/GlobalNotification/_docs/GlobalNotification.stickersheet.stories.tsx +2 -2
  34. package/src/Notification/GlobalNotification/_docs/GlobalNotification.stories.tsx +1 -1
  35. package/src/Notification/InlineNotification/_docs/InlineNotification.mdx +2 -2
  36. package/src/Notification/InlineNotification/_docs/InlineNotification.stickersheet.stories.tsx +2 -2
  37. package/src/Notification/InlineNotification/_docs/InlineNotification.stories.tsx +1 -1
  38. package/src/Notification/ToastNotification/_docs/ToastNotification.mdx +2 -2
  39. package/src/Notification/subcomponents/GenericNotification/GenericNotification.module.scss +4 -4
  40. package/src/Notification/subcomponents/GenericNotification/_mixins.scss +24 -67
  41. package/src/Popover/Popover.module.scss +21 -11
  42. package/src/Tag/Tag.module.scss +1 -1
  43. package/src/Tile/InformationTile/_docs/InformationTile.stickersheet.stories.tsx +3 -3
  44. package/src/Tile/MultiActionTile/_docs/MultiActionTile.stickersheet.stories.tsx +2 -2
  45. package/src/Tile/subcomponents/GenericTile/GenericTile.module.scss +10 -4
  46. package/src/Tile/subcomponents/GenericTile/_docs/GenericTile.stickersheet.stories.tsx +2 -2
  47. package/src/Well/Well.module.scss +12 -14
  48. package/src/__overlays__/Tooltip/v1/Tooltip.module.scss +13 -17
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kaizen/components",
3
- "version": "1.56.1",
3
+ "version": "1.57.0",
4
4
  "description": "Kaizen component library",
5
5
  "author": "Geoffrey Chong <geoff.chong@cultureamp.com>",
6
6
  "homepage": "https://cultureamp.design",
@@ -100,7 +100,7 @@
100
100
  "ts-jest": "^29.2.3",
101
101
  "tslib": "^2.6.3",
102
102
  "tsx": "^4.16.2",
103
- "@kaizen/design-tokens": "10.5.0",
103
+ "@kaizen/design-tokens": "10.5.1",
104
104
  "@kaizen/package-bundler": "1.1.3"
105
105
  },
106
106
  "devDependenciesComments": {
@@ -4,32 +4,43 @@
4
4
 
5
5
  .wrapper {
6
6
  color: $color-purple-800;
7
- background-color: $color-white;
7
+ border: var(--border-width-1) solid;
8
8
  border-radius: $border-borderless-border-radius;
9
9
  box-shadow: $shadow-small-box-shadow;
10
10
  }
11
11
 
12
+ .default {
13
+ border-color: var(--color-gray-500);
14
+ background-color: var(--color-white);
15
+ }
16
+
12
17
  .informative {
18
+ border-color: var(--color-blue-400);
13
19
  background-color: $color-blue-100;
14
20
  }
15
21
 
16
22
  .positive {
23
+ border-color: var(--color-green-500);
17
24
  background-color: $color-green-100;
18
25
  }
19
26
 
20
27
  .cautionary {
28
+ border-color: var(--color-yellow-700);
21
29
  background-color: $color-yellow-100;
22
30
  }
23
31
 
24
32
  .destructive {
33
+ border-color: var(--color-red-500);
25
34
  background-color: $color-red-100;
26
35
  }
27
36
 
28
37
  .assertive {
38
+ border-color: var(--color-orange-600);
29
39
  background-color: $color-orange-100;
30
40
  }
31
41
 
32
42
  .highlight {
43
+ border-color: var(--color-purple-400);
33
44
  background-color: $color-purple-100;
34
45
  }
35
46
 
@@ -63,13 +63,6 @@ export const StickerSheetDefault: StickerSheetStory = {
63
63
  name: "Sticker Sheet (Default)",
64
64
  }
65
65
 
66
- export const StickerSheetReversed: StickerSheetStory = {
67
- ...StickerSheetTemplate,
68
- name: "Sticker Sheet (Reversed)",
69
- parameters: { backgrounds: { default: "Purple 700" } },
70
- args: { isReversed: true },
71
- }
72
-
73
66
  export const StickerSheetRTL: StickerSheetStory = {
74
67
  ...StickerSheetTemplate,
75
68
  name: "Sticker Sheet (RTL)",
@@ -5,59 +5,48 @@
5
5
  @import "~@kaizen/design-tokens/sass/animation";
6
6
 
7
7
  $heading-active-color: $color-gray-200;
8
- $border-color: rgba($color-gray-600-rgb, 0.2);
8
+ $divider-color: rgba($color-gray-600-rgb, 0.2);
9
+ $container-border-width: var(--border-width-1);
10
+
11
+ // We need a full border radius on this container element, then have classes
12
+ // beneath to toggle nested borders off and on for different use cases.
13
+ .container {
14
+ background-color: $color-white;
15
+ box-shadow: $shadow-small-box-shadow;
16
+ border: $container-border-width var(--border-solid-border-style)
17
+ var(--color-gray-500);
18
+ border-radius: $border-borderless-border-radius;
19
+ }
9
20
 
10
21
  .header {
11
22
  display: flex;
12
23
  align-items: center;
13
- text-align: left;
24
+ text-align: start;
14
25
  background-color: $color-white;
15
26
  border: none;
27
+ border-radius: var(--border-borderless-border-radius);
16
28
  transition: background-color $animation-duration-rapid;
17
- padding: $spacing-sm $spacing-sm $spacing-sm $spacing-md;
29
+ padding-block: calc(var(--spacing-12) - #{$container-border-width});
30
+ padding-inline: var(--spacing-24) var(--spacing-12);
18
31
 
19
32
  &:hover {
20
33
  background-color: $heading-active-color;
21
34
  }
22
35
 
23
- [dir="rtl"] & {
24
- text-align: right;
25
- padding-left: $spacing-sm;
26
- padding-right: $spacing-md;
27
- }
28
-
29
36
  // Round the bottom corners of the header so when the container is open, the
30
37
  // header background is not rounded on the corners and flush with the content beneath.
31
- .open {
38
+ &.open {
32
39
  border-bottom-left-radius: 0;
33
40
  border-bottom-right-radius: 0;
34
41
  }
35
42
  }
36
43
 
37
- // We need a full border radius on this container element, then have classes
38
- // beneath to toggle nested borders off and on for different use cases.
39
- .container {
40
- background-color: $color-white;
41
- box-shadow: $shadow-small-box-shadow;
42
- border-radius: $border-borderless-border-radius;
43
- }
44
-
45
- .single {
46
- .header {
47
- border-radius: $border-borderless-border-radius;
48
- }
49
- }
50
-
51
44
  .separated {
52
45
  & + .separated {
53
46
  margin-top: calc(#{$spacing-md} * 0.3);
54
47
  margin-right: 0;
55
48
  margin-left: 0;
56
49
  }
57
-
58
- .header {
59
- border-radius: $border-borderless-border-radius;
60
- }
61
50
  }
62
51
 
63
52
  // When a collapsible group is rendered, we need the first group to have a rounded
@@ -65,17 +54,24 @@ $border-color: rgba($color-gray-600-rgb, 0.2);
65
54
  // is open we remove the rounded edge as the content sits beneath and needs to be straight.
66
55
  .groupItem {
67
56
  & + .groupItem {
68
- border-top: 1px $border-solid-border-style $border-color;
57
+ border-top: 1px $border-solid-border-style $divider-color;
58
+ }
59
+
60
+ .header {
61
+ border-radius: 0;
62
+ padding-block: var(--spacing-12);
69
63
  }
70
64
 
71
65
  &:first-of-type > .header {
72
66
  border-top-left-radius: $border-borderless-border-radius;
73
67
  border-top-right-radius: $border-borderless-border-radius;
68
+ padding-block-start: calc(var(--spacing-12) - #{$container-border-width});
74
69
  }
75
70
 
76
71
  &:last-of-type > .header:not(.open) {
77
72
  border-bottom-left-radius: $border-borderless-border-radius;
78
73
  border-bottom-right-radius: $border-borderless-border-radius;
74
+ padding-block-end: calc(var(--spacing-12) - #{$container-border-width});
79
75
  }
80
76
  }
81
77
 
@@ -93,7 +89,7 @@ $border-color: rgba($color-gray-600-rgb, 0.2);
93
89
  }
94
90
 
95
91
  .clearVariant {
96
- border-bottom: 1px $border-solid-border-style $border-color;
92
+ border-bottom: 1px $border-solid-border-style $divider-color;
97
93
  }
98
94
 
99
95
  .sticky {
@@ -103,7 +99,7 @@ $border-color: rgba($color-gray-600-rgb, 0.2);
103
99
  }
104
100
 
105
101
  .section {
106
- padding: $spacing-md;
102
+ padding: var(--spacing-24);
107
103
  }
108
104
 
109
105
  .noPadding {
@@ -46,7 +46,7 @@ export const Collapsible = ({
46
46
  sticky,
47
47
  noSectionPadding,
48
48
  onToggle,
49
- variant,
49
+ variant = "default",
50
50
  lazyLoad,
51
51
  controlled,
52
52
  classNameOverride,
@@ -81,9 +81,7 @@ export const Collapsible = ({
81
81
  classNameOverride,
82
82
  isContainer && styles.container,
83
83
  group && !separated && styles.groupItem,
84
- separated && styles.separated,
85
- isOpen && styles.open,
86
- !group && styles.single
84
+ separated && styles.separated
87
85
  )}
88
86
  data-testid={`collapsible-container-${id}`}
89
87
  {...restProps} // `title` is missing because it is used for the header; requires breaking change to fix
@@ -33,9 +33,12 @@ const StickerSheetTemplate: StickerSheetStory = {
33
33
  render: () => (
34
34
  <StickerSheet>
35
35
  <StickerSheet.Body>
36
- <StickerSheet.Row rowTitle="Default">
36
+ <StickerSheet.Row rowTitle="Open">
37
37
  <CollapsibleWrapped title="Collapsible" />
38
38
  </StickerSheet.Row>
39
+ <StickerSheet.Row rowTitle="Closed">
40
+ <CollapsibleWrapped title="Closed" open={false} />
41
+ </StickerSheet.Row>
39
42
  <StickerSheet.Row rowTitle="noSectionPadding">
40
43
  <CollapsibleWrapped title="No Padding" noSectionPadding />
41
44
  </StickerSheet.Row>
@@ -6,5 +6,7 @@
6
6
  .container {
7
7
  background-color: white;
8
8
  box-shadow: $shadow-small-box-shadow;
9
+ border: var(--border-width-1) var(--border-solid-border-style)
10
+ var(--color-gray-500);
9
11
  border-radius: $border-borderless-border-radius;
10
12
  }
@@ -46,9 +46,16 @@ const StickerSheetTemplate: StickerSheetStory = {
46
46
  render: ({ isReversed }) => (
47
47
  <StickerSheet isReversed={isReversed}>
48
48
  <StickerSheet.Body>
49
- <StickerSheet.Row rowTitle="default">
49
+ <StickerSheet.Row rowTitle="Open">
50
50
  <CollapsibleGroupWrapped />
51
51
  </StickerSheet.Row>
52
+ <StickerSheet.Row rowTitle="Closed">
53
+ <CollapsibleGroup>
54
+ <CollapsibleWrapped open={false} />
55
+ <CollapsibleWrapped open={false} />
56
+ <CollapsibleWrapped open={false} />
57
+ </CollapsibleGroup>
58
+ </StickerSheet.Row>
52
59
  <StickerSheet.Row rowTitle="noSectionPadding">
53
60
  <CollapsibleGroupWrapped noSectionPadding />
54
61
  </StickerSheet.Row>
@@ -4,7 +4,8 @@
4
4
 
5
5
  .expertAdviceContainer {
6
6
  background-color: $color-purple-100;
7
- border: 2px $border-solid-border-style $color-purple-300;
7
+ border: var(--border-width-1) var(--border-solid-border-style)
8
+ var(--color-purple-400);
8
9
  box-shadow: none;
9
10
  color: $color-purple-800;
10
11
 
@@ -4,20 +4,21 @@
4
4
  @import "./mixins";
5
5
 
6
6
  .container {
7
+ --border-width: var(--border-width-1);
8
+
7
9
  display: flex;
8
10
  justify-content: space-around;
9
11
  width: 100%;
10
- padding: 2% $spacing-md;
12
+ padding: calc(2% - var(--border-width))
13
+ calc(var(--spacing-24) - var(--border-width));
11
14
  color: $color-purple-800;
12
- border: $border-solid-border-width $border-solid-border-style
13
- $border-borderless-border-color-id;
15
+ border: var(--border-width) var(--border-solid-border-style);
14
16
  border-radius: $border-solid-border-radius;
15
17
 
16
18
  @include small {
17
19
  flex-direction: column;
18
20
  align-items: center;
19
- padding-top: $spacing-md;
20
- padding-bottom: $spacing-md;
21
+ padding-block: calc(var(--spacing-24) - var(--border-width));
21
22
  }
22
23
 
23
24
  &.straightCorners {
@@ -38,26 +39,27 @@
38
39
  padding-bottom: $spacing-md;
39
40
  }
40
41
  }
42
+ }
41
43
 
42
- &.positive {
43
- background-color: $color-green-100;
44
- }
45
-
46
- &.negative {
47
- background-color: $color-red-100;
48
- }
44
+ .positive {
45
+ border-color: var(--color-green-500);
46
+ background-color: $color-green-100;
47
+ }
49
48
 
50
- &.action {
51
- background-color: $color-orange-100;
52
- }
49
+ .negative,
50
+ .action {
51
+ border-color: var(--color-red-500);
52
+ background-color: $color-red-100;
53
+ }
53
54
 
54
- &.neutral {
55
- background-color: $color-purple-100;
56
- }
55
+ .neutral {
56
+ border-color: var(--color-purple-400);
57
+ background-color: $color-purple-100;
58
+ }
57
59
 
58
- &.informative {
59
- background-color: $color-blue-100;
60
- }
60
+ .informative {
61
+ border-color: var(--color-blue-400);
62
+ background-color: $color-blue-100;
61
63
  }
62
64
 
63
65
  .illustrationSide,
@@ -3,7 +3,6 @@ import classnames from "classnames"
3
3
  import { HeadingProps, Heading } from "~components/Heading"
4
4
  import {
5
5
  AnimatedSceneProps,
6
- EmptyStatesAction,
7
6
  EmptyStatesInformative,
8
7
  EmptyStatesNegative,
9
8
  EmptyStatesNeutral,
@@ -21,7 +20,7 @@ const ILLUSTRATIONS: Record<
21
20
  neutral: EmptyStatesNeutral,
22
21
  negative: EmptyStatesNegative,
23
22
  informative: EmptyStatesInformative,
24
- action: EmptyStatesAction,
23
+ action: EmptyStatesNegative,
25
24
  }
26
25
 
27
26
  type IllustrationType =
@@ -65,7 +65,7 @@ $form-text-color-label-reversed: rgba($color-white-rgb, 0.8);
65
65
  }
66
66
 
67
67
  .caution & {
68
- color: $color-yellow-500;
68
+ color: var(--color-yellow-700);
69
69
  }
70
70
 
71
71
  .reversed & {
@@ -33,16 +33,16 @@ $scene-illustration-size: 300px;
33
33
  }
34
34
 
35
35
  .banner {
36
+ --border-width: var(--border-width-1);
37
+
36
38
  display: flex;
37
39
  flex-direction: column;
38
40
  gap: $spacing-sm;
39
- background: $color-white;
40
41
  min-width: 320px;
41
42
  max-width: $layout-breakpoints-large;
42
- border: $border-borderless-border-width $border-borderless-border-style
43
- $border-borderless-border-color;
43
+ border: var(--border-width) var(--border-solid-border-style);
44
44
  border-radius: $border-solid-border-radius;
45
- padding: $bannerPadding;
45
+ padding: calc(#{$bannerPadding} - var(--border-width));
46
46
  box-shadow: $shadow-small-box-shadow;
47
47
  position: relative;
48
48
  top: -1px;
@@ -214,27 +214,34 @@ $scene-illustration-size: 300px;
214
214
  color: $color-purple-800;
215
215
  }
216
216
 
217
+ .default {
218
+ border-color: var(--color-gray-500);
219
+ background: var(--color-white);
220
+ }
221
+
217
222
  .positive {
223
+ border-color: var(--color-green-500);
218
224
  background: $color-green-100;
219
225
  }
220
226
 
221
- .negative {
227
+ .negative,
228
+ .assertive {
229
+ border-color: var(--color-red-500);
222
230
  background: $color-red-100;
223
231
  }
224
232
 
225
233
  .informative {
234
+ border-color: var(--color-blue-400);
226
235
  background: $color-blue-100;
227
236
  }
228
237
 
229
238
  .cautionary {
239
+ border-color: var(--color-yellow-700);
230
240
  background: $color-yellow-100;
231
241
  }
232
242
 
233
- .assertive {
234
- background: $color-orange-100;
235
- }
236
-
237
243
  .prominent {
244
+ border-color: var(--color-purple-400);
238
245
  background: $color-purple-100;
239
246
  }
240
247
 
@@ -46,35 +46,24 @@ $dt-assertive-header-background: $color-orange-100;
46
46
  .positiveHeader {
47
47
  background-color: $dt-positive-header-background;
48
48
 
49
- .spotIcon,
50
- .svgIcon > svg {
49
+ .spotIcon {
51
50
  color: $color-green-500;
52
51
  }
53
52
  }
54
53
 
55
- .assertiveHeader {
56
- background-color: $dt-assertive-header-background;
57
-
58
- .spotIcon,
59
- .svgIcon > svg {
60
- color: $color-orange-500;
61
- }
62
- }
63
-
64
54
  .informativeHeader {
65
55
  background-color: $dt-informative-header-background;
66
56
 
67
- .spotIcon,
68
- .svgIcon > svg {
57
+ .spotIcon {
69
58
  color: $color-blue-500;
70
59
  }
71
60
  }
72
61
 
73
- .negativeHeader {
62
+ .negativeHeader,
63
+ .assertiveHeader {
74
64
  background-color: $dt-negative-header-background;
75
65
 
76
- .spotIcon,
77
- .svgIcon > svg {
66
+ .spotIcon {
78
67
  color: $color-red-500;
79
68
  }
80
69
  }
@@ -82,9 +71,8 @@ $dt-assertive-header-background: $color-orange-100;
82
71
  .cautionaryHeader {
83
72
  background-color: $dt-cautionary-header-background;
84
73
 
85
- .spotIcon,
86
- .svgIcon > svg {
87
- color: $color-yellow-500;
74
+ .spotIcon {
75
+ color: var(--color-yellow-700);
88
76
  }
89
77
  }
90
78
 
@@ -105,8 +93,7 @@ $dt-assertive-header-background: $color-orange-100;
105
93
  }
106
94
  }
107
95
 
108
- .spotIcon,
109
- .svgIcon > svg {
96
+ .spotIcon {
110
97
  width: 30px;
111
98
  height: 30px;
112
99
 
@@ -138,8 +125,7 @@ $dt-assertive-header-background: $color-orange-100;
138
125
  }
139
126
  }
140
127
 
141
- .spotIcon,
142
- .svgIcon > svg {
128
+ .spotIcon {
143
129
  width: 155px;
144
130
  height: 155px;
145
131
  margin: 0 auto;
@@ -2,7 +2,7 @@ import { Canvas, Controls, Meta, Description} from "@storybook/blocks"
2
2
  import { KAIOInstallation, ResourceLinks } from "~storybook/components"
3
3
  import * as GlobalNotificationExamples from "./GlobalNotification.stories"
4
4
 
5
- <Meta title="Components/Notifications/Global Notification" />
5
+ <Meta of={GlobalNotificationExamples} />
6
6
 
7
7
  # GlobalNotification
8
8
 
@@ -10,7 +10,7 @@ import {
10
10
  } from "../GlobalNotification"
11
11
 
12
12
  export default {
13
- title: "Components/Notifications/Global Notification",
13
+ title: "Components/Notifications/GlobalNotification",
14
14
  parameters: {
15
15
  chromatic: { disable: false },
16
16
  controls: { disable: true },
@@ -85,7 +85,7 @@ const VARIANTS_PROPS: Array<{
85
85
  const StickerSheetTemplate: StickerSheetStory = {
86
86
  render: ({ isReversed }) => (
87
87
  <>
88
- <StickerSheet heading="Button" isReversed={isReversed}>
88
+ <StickerSheet heading="GlobalNotification" isReversed={isReversed}>
89
89
  <StickerSheet.Body>
90
90
  {VARIANTS_PROPS.map(({ title, props }) => (
91
91
  <StickerSheet.Row key={title} rowTitle={title}>
@@ -11,7 +11,7 @@ const DEFAULT_PROPS: Partial<GlobalNotificationProps> = {
11
11
  }
12
12
 
13
13
  const meta = {
14
- title: "Components/Notifications/Global Notification",
14
+ title: "Components/Notifications/GlobalNotification",
15
15
  component: GlobalNotification,
16
16
 
17
17
  args: {
@@ -2,9 +2,9 @@ import { Canvas, Controls, Meta, Description} from "@storybook/blocks"
2
2
  import { KAIOInstallation, ResourceLinks } from "~storybook/components"
3
3
  import * as InlineNotificationExamples from "./InlineNotification.stories"
4
4
 
5
- <Meta title="Components/Notifications/Inline Notification" />
5
+ <Meta of={InlineNotificationExamples} />
6
6
 
7
- # Inline Notification
7
+ # InlineNotification
8
8
 
9
9
  <ResourceLinks
10
10
  sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/Notification/InlineNotification"
@@ -10,7 +10,7 @@ import {
10
10
  } from "../InlineNotification"
11
11
 
12
12
  export default {
13
- title: "Components/Notifications/Inline Notification",
13
+ title: "Components/Notifications/InlineNotification",
14
14
  parameters: {
15
15
  chromatic: { disable: false },
16
16
  controls: { disable: true },
@@ -160,7 +160,7 @@ const VARIANTS_PROPS: Array<{
160
160
  const StickerSheetTemplate: StickerSheetStory = {
161
161
  render: ({ isReversed }) => (
162
162
  <>
163
- <StickerSheet heading="Button" isReversed={isReversed}>
163
+ <StickerSheet heading="InlineNotification" isReversed={isReversed}>
164
164
  <StickerSheet.Body>
165
165
  {VARIANTS_PROPS.map(({ title, props }) => (
166
166
  <StickerSheet.Row key={title} rowTitle={title}>
@@ -16,7 +16,7 @@ const DEFAULT_PROPS: Partial<InlineNotificationProps> = {
16
16
  }
17
17
 
18
18
  const meta = {
19
- title: "Components/Notifications/Inline Notification",
19
+ title: "Components/Notifications/InlineNotification",
20
20
  component: InlineNotification,
21
21
  args: {
22
22
  ...DEFAULT_PROPS,
@@ -2,9 +2,9 @@ import { Canvas, Controls, Meta } from "@storybook/blocks"
2
2
  import { ResourceLinks, KAIOInstallation, LinkTo } from "~storybook/components"
3
3
  import * as ToastNotificationStories from "./ToastNotification.stories"
4
4
 
5
- <Meta title="Components/Notifications/ToastNotification" />
5
+ <Meta of={ToastNotificationStories} />
6
6
 
7
- # Toast Notification
7
+ # ToastNotification
8
8
 
9
9
  <ResourceLinks
10
10
  sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/Notification/ToastNotification"
@@ -33,15 +33,15 @@
33
33
  align-items: center;
34
34
  justify-content: center;
35
35
 
36
- &:focus {
36
+ &:focus,
37
+ &:focus-visible {
37
38
  outline: none;
38
39
  }
39
40
 
40
41
  &:focus-visible::after {
41
- content: "";
42
-
43
- $focus-ring-offset: 6px;
42
+ $focus-ring-offset: var(--spacing-2);
44
43
 
44
+ content: "";
45
45
  pointer-events: none;
46
46
  position: absolute;
47
47
  background: transparent;