Issue #2033💬 AnsweredOpened May 24, 2019by charlieshum11 reactions

How to change the style of the outline of selected components

快速解答by artf1

Only selected component style is inside the canvas, so you have to use canvasCss option https://github.com/artf/grapesjs/blob/8915ae417bed25a4834b34d8f0ecc08f0e03fd64/src/editor/config/config.js#L74-L78 for the rest, you can use simple CSS as always

Read full answer below ↓

Question

Hi @artf

I can change the style of outline of a hovered component with .gjs-cv-canvas .gjs-highlighter { ...... }

How can I change the outline style of a selected component? I cannot apply the style using '.gjs-comp-selected'

Also, how can I change the style of the component type/name label of hovered/selected components?

Thanks!

Answers (1)

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 →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.