Responsive CSS Classes #34972
ericwang401
started this conversation in
Feature Request
Replies: 2 comments 3 replies
|
Would be nice.
That's my "workaround", but i'm quite happy with that. |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Describe the Problem
Elementor’s CSS Classes field is not responsive.
Right now, classes are effectively global: you can’t toggle to Tablet/Mobile and add/remove a class so it only applies within that breakpoint range. This is inconsistent with how Elementor handles per-element styles, where you can switch breakpoints and edit a value, and Elementor scopes that change to that device range.
This becomes a real problem if you’re trying to build anything remotely systematic (utility classes, type scales, spacing scales, etc.). Example: I want to apply a typography utility like
text-lgon desktop, but switch totext-baseon tablet/mobile. In Tailwind this is trivial (md:text-lg text-base). In Elementor, I’m forced to either:Given V4 is explicitly pushing developer-facing features (variables, classes, custom CSS), it’s really frustrating that classes have the name but not the capability.
Propose a Solution
Make the CSS Classes control breakpoint-aware
Provide a clear override model (so it’s not a footgun)
Additional Context
A major use case is typography systems. Elementor currently makes it hard to define constrained type "tokens" that include both font-size + line-height in one reusable thing. Creating utility classes is a good workaround, but that workaround falls apart because classes aren’t responsive.
Workarounds today:
All of these are unnecessary if the classes control simply behaved like every other responsive control in Elementor.
Agreement
All reactions