Issue #5293Opened August 10, 2023by craigharman0 reactions

BUG: Can't overwrite gjs-selected class

Question

GrapesJS version

  • I confirm to use the latest version of GrapesJS

What browser are you using?

Arc 1.1.1

Reproducible demo link

https://jsfiddle.net/3bprucnv/3/

Describe the bug

How to reproduce the bug?

Add custom css rule for .gjs-selected eg. change the border color to red.

.gjs-selected { outline-color: red; }

What is the expected behavior? When selecting an element within grapesjs editor, the border of the selection should be red.

What is the current behavior? Border/outline remains blue.

Note: All other css overrides related to selection/highlighting are successfully overwritten (eg. highlighter, highlighter-sel)

Code of Conduct

  • I agree to follow this project's Code of Conduct

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...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.