webstudio-is / webstudio

Open source website builder and Webflow alternative. 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
4.58k stars 510 forks source link

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

Open johnsicili opened 1 month ago

johnsicili commented 1 month 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 weeks ago

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