Issue #1994πŸ’¬ AnsweredOpened May 1, 2019by webdeveloper04290 reactions

Is it possible to add StyleManager property for only class name

Quick answerby artf

No style manager can only change style properties (CSS) for any other thing you have to use Traits

Read full answer below ↓

Question

Thank for this awesome library.

I am gonna to add style controller to sector. This style will be for only one class name and won't set target. For example ".xxx-wrapper div.active button:before" (xxx will be identifier of component so that inside buttons will be controlled by this sector) I tried to find in document but I can't find. pls help. Thanks in advance.

Answers (3)

artfβ€’ May 1, 2019

No style manager can only change style properties (CSS) for any other thing you have to use Traits

webdeveloper0429β€’ May 1, 2019

Thank you artf. so we can't use nested css selector (".xxx-wrapper div.active button:before") in cssCompose?

artfβ€’ May 2, 2019

You can create any CSS Rule by using setRule method but only class-based are visible in Style Manager

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins β†’
Premium option

Premium plugins ship with support, regular updates, and production-ready features β€” save days of integration work.

Browse premium plugins β†’

Related tutorials

In-depth guides on the same topic.

All tutorials β†’

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.