dotCMS / dotCMS/core

CSS syntax highlighting shows warnings on valid CSS

Open
#31,322 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Type : Defect
Dominant language
Java
Stars
970
Forks
486
Avg merge
3d 33m
Merged PRs (30d)
170

Description

Parent Issue

No response

Problem Statement

Looks like Monaco code editor running in dotCMS is version 0.33. This version is quite out of date now, and doesn't have good highlighting support for things like css nesting, :has selector, etc that are baseline.

Steps to Reproduce
  1. Open a css file through the dotCMS UI
  2. Type or paste in CSS that includes these features
  3. Observe red squiggles and a warning on mouseover

Image

Some example CSS that shows errors:

.foo {
  .bar {
    display: none;
  }
}

.foo:has(> .bar) {
  display: block;
}
Acceptance Criteria

Update Monaco to a more recent version

dotCMS Version

24.12.05

Proposed Objective

Code Maintenance

Proposed Priority

Priority 3 - Average

External Links... Slack Conversations, Support Tickets, Figma Designs, etc.

No response

Assumptions & Initiation Needs

No response

Quality Assurance Notes & Workarounds

No response

Sub-Tasks & Estimates

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in the dotCMS UI code that configures the Monaco editor and check where version 0.33 is pinned. Reproduce the nested CSS and :has examples there; done means the updated editor no longer shows red squiggles or warnings for this valid CSS.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.