SDK: Standardize Component CSS Classes and HTML Structure

Open
#30,547 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
32/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Stale
Tech stack
react
Domain
frontend

Research direction

Start by auditing the React components and their edit/production rendering paths, then compare the generated HTML structure and CSS class usage across both modes. Done means the components use .dot-container, unnecessary edit-mode wrappers are removed, structures match, tests cover consistency, and documentation includes the new classes, specifications, and migration guide.

Written by the indexing model from the issue text.

Description

Doc : Needs Doc Team : Scout

[!CAUTION]
THIS IS A BREAKING CHANGES AND SHOULD BE DOCUMENTED

Problem Statement

Two critical issues in our SDK React components:

  • The generic .container class risks style conflicts
  • Inconsistent HTML structure between load the page in UVE and production modes creates layout issues
User Story

As a frontend developer, I want:

  • Unique, conflict-free CSS class names
  • Consistent HTML structure across all modes So that I can maintain reliable styling and layouts
Technical Implementation Plan
  • Audit component structure
  • Implement unified rendering logic
  • Update CSS classes
  • Add test cases for structure consistency
  • Document changes
Acceptance Criteria
  • Replace .container with .dot-container in all React components
  • Unify HTML structure between edit/production modes
  • Remove unnecessary wrapper divs in edit mode
  • Verify layout consistency across modes
  • Update documentation with:
  • New class names
  • HTML structure specifications
  • Migration guide
  • Test across example sites and dotcms.com
Dominant language
Java
Stars
970
Forks
486
Avg merge
3d 33m
Merged PRs (30d)
170

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.

More from dotCMS/core

All issues in dotCMS/core

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.