styled-components / styled-components

Visual primitives for the component age. Use the best bits of ES6 and CSS to style your apps without stress 💅
https://styled-components.com
MIT License
40.11k stars 2.48k forks source link

Additional closing brackets result in globally applied css rules #4253

Open jzaeske opened 3 months ago

jzaeske commented 3 months ago

Environment

System:

but also in provided stackblitz with version 6.1.8

Reproduction

see Stackblitz https://react-ts-3sywqk.stackblitz.io

InnerContainerError applies the rule for h1 globally, so the h1 outside the component is also rendered green.

Steps to reproduce

Add additional } after a ${...}block.

Expected Behavior

Actual Behavior