diff --git a/src/components/Button.js b/src/components/Button.js index 18fef644e..1c659612f 100644 --- a/src/components/Button.js +++ b/src/components/Button.js @@ -5,6 +5,13 @@ import ComponentFactory from './ComponentFactory'; import Link from './Link'; import { css, cx } from '@leafygreen-ui/emotion'; +// TODO: include mapping of colors to use against button 'variant' attributes +const buttonStyling = css` + &.button { + color: #ffffff; + } +`; + const Button = ({ nodeData: { argument, @@ -19,16 +26,7 @@ const Button = ({ } return ( - + {argument.map((child, i) => ( ))} diff --git a/tests/unit/Button.test.js b/tests/unit/Button.test.js index f69a8f41f..06a915ba7 100644 --- a/tests/unit/Button.test.js +++ b/tests/unit/Button.test.js @@ -4,8 +4,23 @@ import Button from '../../src/components/Button'; // data for this component import mockData from './data/Button.test.json'; +import Link from '../../src/components/Link'; -it('renders correctly', () => { - const tree = render(