diff --git a/src/components/InlineNotification/InlineNotification-v2.module.css b/src/components/InlineNotification/InlineNotification-v2.module.css index 47438e976..84cd146bd 100644 --- a/src/components/InlineNotification/InlineNotification-v2.module.css +++ b/src/components/InlineNotification/InlineNotification-v2.module.css @@ -48,7 +48,3 @@ .inline-notification__body { flex-grow: 2; } - -.inline-notification__sub-title { - color: var(--eds-theme-color-text-utility-default-secondary) -} diff --git a/src/components/InlineNotification/InlineNotification-v2.test.ts b/src/components/InlineNotification/InlineNotification-v2.test.ts new file mode 100644 index 000000000..05231e98c --- /dev/null +++ b/src/components/InlineNotification/InlineNotification-v2.test.ts @@ -0,0 +1,7 @@ +import { generateSnapshots } from '@chanzuckerberg/story-utils'; +import type { StoryFile } from '@storybook/testing-react'; +import * as stories from './InlineNotification-v2.stories'; + +describe(' (v2)', () => { + generateSnapshots(stories as StoryFile); +}); diff --git a/src/components/InlineNotification/InlineNotification-v2.tsx b/src/components/InlineNotification/InlineNotification-v2.tsx index 89964afc2..3d4073d27 100644 --- a/src/components/InlineNotification/InlineNotification-v2.tsx +++ b/src/components/InlineNotification/InlineNotification-v2.tsx @@ -65,11 +65,7 @@ export const InlineNotification = ({ {title} {subTitle && ( - + {subTitle} )} diff --git a/src/components/InlineNotification/__snapshots__/InlineNotification-v2.test.ts.snap b/src/components/InlineNotification/__snapshots__/InlineNotification-v2.test.ts.snap new file mode 100644 index 000000000..7bd8faf61 --- /dev/null +++ b/src/components/InlineNotification/__snapshots__/InlineNotification-v2.test.ts.snap @@ -0,0 +1,201 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[` (v2) Critical story renders snapshot 1`] = ` +
+ +
+
+ Inline notifications lorem ipsum text +
+
+ Additional text which provides additional detail +
+
+
+`; + +exports[` (v2) Default story renders snapshot 1`] = ` +
+ +
+
+ Inline notifications lorem ipsum text +
+
+
+`; + +exports[` (v2) Favorable story renders snapshot 1`] = ` +
+ +
+
+ Inline notifications lorem ipsum text +
+
+ Additional text which provides additional detail +
+
+
+`; + +exports[` (v2) LongText story renders snapshot 1`] = ` +
+ +
+
+ Long text inline notification. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. +
+
+
+`; + +exports[` (v2) Warning story renders snapshot 1`] = ` +
+ +
+
+ Inline notifications lorem ipsum text +
+
+ Additional text which provides additional detail +
+
+
+`; + +exports[` (v2) WithSubTitle story renders snapshot 1`] = ` +
+ +
+
+ Inline notifications lorem ipsum text +
+
+ Additional text which provides additional detail +
+
+
+`;