diff --git a/src/styled.js b/src/styled.js index 20e4431..57b68f8 100644 --- a/src/styled.js +++ b/src/styled.js @@ -129,12 +129,12 @@ const styled = ({element, ownStyle, mountSheet, jss}: StyledArgs) => { // $FlowIgnore StyledElement.valueOf = () => { if (!staticClassName) { - staticClassName = `.${jss.generateClassName({ + staticClassName = `${jss.generateClassName({ key: generateTagName('static') })}` } - return staticClassName + return `.${staticClassName}` } // $FlowIgnore diff --git a/src/tests/__snapshots__/functional.spec.jsx.snap b/src/tests/__snapshots__/functional.spec.jsx.snap index 78af8a3..ca92fc7 100644 --- a/src/tests/__snapshots__/functional.spec.jsx.snap +++ b/src/tests/__snapshots__/functional.spec.jsx.snap @@ -168,7 +168,7 @@ exports[`functional tests should use Styled Component classname in string 1`] = >
name
@@ -177,7 +177,7 @@ exports[`functional tests should use Styled Component classname in string 1`] = width={30} >