webstudio-is / webstudio

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.
https://webstudio.is
GNU Affero General Public License v3.0
5.4k stars 664 forks source link

Using capital `Class` is different than `className`/`class` and breaks styles #3942

Open johnsicili opened 3 months ago

johnsicili commented 3 months ago

Adding capital Class to an instance breaks styles on that instance. No style source styles are applied on live site (they show in the editor though).

This was discovered on a Radix component as class and className are disallowed, so the user tried Class, and it applied, but all styles broke. Styles break on native components too.

johnsicili commented 3 months ago

Related https://github.com/webstudio-is/webstudio/issues/4004