SDK: Standardize React Component CSS Classes and HTML Structure #30955
Labels
OKR : Documentation
Owned by Jamie
OKR : Technical User Experience
Owned by Freddy
Priority : 3 Average
Team : Scout
Triage
Type : Task
Caution
THESE ARE BREAKING CHANGES AND SHOULD BE DOCUMENTED
Parent Issue
#30943
Overview
Currently, the
Container
component renders an extra wrapper<div>
when inside the editor to initialize inline editing. This wrapper includes inline attributes such asdata-dot-*
. However, when styling the page, this extra<div>
can disrupt user-definedCSS
, leading to inconsistent layouts and unexpected behavior.Task
Container
React component to always include the extra wrapperdiv
.data-dot-*
) to the wrapperdiv
only when inside the editor (isInsideEditor
).dot-container
.CSS
classes to include thedot-
prefix (e.g.,dot-container
).Proposed Objective
Technical User Experience
Proposed Priority
Priority 3 - Average
Acceptance Criteria
Assumptions & Initiation Needs
isInsideEditor
reliably indicates whether the component is inside the dotCMS editor environment.data-dot-*
attributes.div
does not cause rendering or structural issues when attributes are removed.Quality Assurance Notes & Workarounds
dot-
prefix.data-dot-*
) are not applied outside the editor, ensuring a clean DOM structure.Sub-Tasks & Estimates
Documentation
The text was updated successfully, but these errors were encountered: