You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we use styled-components and amp , the needed properties for amp are not rendered,
because @emotion/is-prop-valid does not allow these properties.
Proposed solution
I would like to add properties option, fallback in packages/is-prop-valid/src/props.js.
@probablyup any objections against adding those? I personally have unpleasant sensations in my stomach when I think about adding amp-related props but we've done that in the past so 🤷♂️
The problem
When we use
styled-components
andamp
, the needed properties for amp are not rendered,because
@emotion/is-prop-valid
does not allow these properties.Proposed solution
I would like to add properties
option
,fallback
inpackages/is-prop-valid/src/props.js
.Alternative solutions
workaround is like this:
But we need a useless DOM.
Additional context
Almost same situations here:
on
not passed to the DOM styled-components/styled-components#2689Reference:
Example:
https://codesandbox.io/s/magical-tharp-9kutn?file=/src/App.js
The text was updated successfully, but these errors were encountered: