rsnext/packages/next/build/swc/tests/fixture/styled-jsx/tpl-placeholder-2-as-part-of-value/output.js
Donny/강동윤 2874791ab1
Fix styled-jsx: Don't drop extra selectors (#29791)
Co-authored-by: kdy1 <kdy1@users.noreply.github.com>
2021-10-11 08:36:23 +02:00

35 lines
876 B
JavaScript

import _JSXStyle from "styled-jsx/style";
export default class {
render() {
return <div className={_JSXStyle.dynamic([
[
"4dca1c13af6604d3",
[
a[b],
-1 * (c || 0),
d
]
]
])}>
<p className={_JSXStyle.dynamic([
[
"4dca1c13af6604d3",
[
a[b],
-1 * (c || 0),
d
]
]
])}>test</p>
<_JSXStyle id={"4dca1c13af6604d3"} dynamic={[
a[b],
-1 * (c || 0),
d
]}>{`.a:hover .b.__jsx-style-dynamic-selector {a:${a[b]}px!important;
b:translate3d(0, ${-1 * (c || 0)}px, -${d}px) scale(1)!important}`}</_JSXStyle>
</div>;
}
};