From 7c25dc9699440b1318391a3ed1f63289072ca2d8 Mon Sep 17 00:00:00 2001 From: Jeff Carbonella Date: Fri, 16 Dec 2016 14:10:20 -0500 Subject: [PATCH] fix(Header): Remove duplicate class (#1040) --- src/elements/Header/Header.js | 2 +- test/specs/elements/Header/Header-test.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/elements/Header/Header.js b/src/elements/Header/Header.js index 46030bcd65..a68264be0b 100644 --- a/src/elements/Header/Header.js +++ b/src/elements/Header/Header.js @@ -53,7 +53,7 @@ function Header(props) { const iconElement = Icon.create(icon) const imageElement = Image.create(image) - const subheaderElement = HeaderSubheader.create(subheader, { className: 'sub header' }) + const subheaderElement = HeaderSubheader.create(subheader) if (iconElement || imageElement) { return ( diff --git a/test/specs/elements/Header/Header-test.js b/test/specs/elements/Header/Header-test.js index 7d5c04c054..0e957c4793 100644 --- a/test/specs/elements/Header/Header-test.js +++ b/test/specs/elements/Header/Header-test.js @@ -29,7 +29,6 @@ describe('Header', () => { common.implementsShorthandProp(Header, { propKey: 'subheader', ShorthandComponent: HeaderSubheader, - shorthandDefaultProps: { className: 'sub header' }, mapValueToProps: val => ({ content: val }), })