diff --git a/packages/components/package.json b/packages/components/package.json
index 8e64a9eb1..25da3c8b3 100644
--- a/packages/components/package.json
+++ b/packages/components/package.json
@@ -39,7 +39,8 @@
},
"dependencies": {
"@chanzuckerberg/czedi-kit-styles": "^0.0.0",
- "@chanzuckerberg/czedi-kit-tokens": "^0.0.0"
+ "@chanzuckerberg/czedi-kit-tokens": "^0.0.0",
+ "classnames": "^2.2.6"
},
"devDependencies": {
"@babel/core": "^7.6.4",
diff --git a/packages/components/src/button/button.spec.tsx b/packages/components/src/button/button.spec.tsx
index efe92f00c..b52777d6b 100644
--- a/packages/components/src/button/button.spec.tsx
+++ b/packages/components/src/button/button.spec.tsx
@@ -1,21 +1,28 @@
import { axe } from "jest-axe";
import { render } from "@testing-library/react";
-import { text } from "./button.stories";
+import { variants } from "./button.stories";
describe("", () => {
it("renders the component", () => {
- const { container } = render(text());
+ const { container } = render(variants());
expect(container.firstChild).toMatchInlineSnapshot(`
-
+
+
+
+
`);
});
it("passes accessibility checks", async () => {
- const { container } = render(text());
+ const { container } = render(variants());
const results = await axe(container);
expect(results).toHaveNoViolations();
});
diff --git a/packages/components/src/button/button.stories.tsx b/packages/components/src/button/button.stories.tsx
index 18eebc378..fc1c05d15 100644
--- a/packages/components/src/button/button.stories.tsx
+++ b/packages/components/src/button/button.stories.tsx
@@ -12,6 +12,17 @@ export const text = (): JSX.Element => (
);
+export const variants = (): JSX.Element => (
+
+
+
+
+);
+
export const emoji = (): JSX.Element => (