Skip to content

Commit 7c25dc9

Browse files
jeffcarbslevithomason
authored andcommitted
fix(Header): Remove duplicate class (Semantic-Org#1040)
1 parent c7fc9d4 commit 7c25dc9

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/elements/Header/Header.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function Header(props) {
5353

5454
const iconElement = Icon.create(icon)
5555
const imageElement = Image.create(image)
56-
const subheaderElement = HeaderSubheader.create(subheader, { className: 'sub header' })
56+
const subheaderElement = HeaderSubheader.create(subheader)
5757

5858
if (iconElement || imageElement) {
5959
return (

test/specs/elements/Header/Header-test.js

-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ describe('Header', () => {
2929
common.implementsShorthandProp(Header, {
3030
propKey: 'subheader',
3131
ShorthandComponent: HeaderSubheader,
32-
shorthandDefaultProps: { className: 'sub header' },
3332
mapValueToProps: val => ({ content: val }),
3433
})
3534

0 commit comments

Comments
 (0)