Conversation
Bullet and ordered list items rendered with no markers in the
`dotcms-block-editor` web component. Two host-cascade causes:
- Tailwind preflight (`ol, ul, menu { list-style: none }` in `@layer base`)
beats `prose` in the web-component build, stripping ul/ol markers.
- The admin JSP additionally ships an unlayered `li { list-style: none }`
set directly on the <li>, overriding the inherited list-style-type, and
prose colors `li::marker` a light gray.
Add self-contained, unlayered list CSS to the editor so markers render
regardless of the host's Tailwind/prose setup: ul/ol markers + indentation,
nested-marker cycling (disc/circle/square), `li { list-style: inherit }` to
defeat the JSP li reset, and `li::marker { color: currentColor }` so markers
match the editor text instead of prose's gray.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Claude finished @rjvelazco's task in 46s —— View job Rollback Safety Analysis
Result: ✅ Safe To RollbackThis PR modifies a single file: Analysis against all unsafe categories:
The change is pure presentation-layer CSS scoped to Label applied: AI: Safe To Rollback |
🤖 Bedrock Review —
|
|
Tick the box to add this pull request to the merge queue (same as
|
Block Editor: list markers not rendering in the web component
Bullet and ordered lists rendered without markers (no bullets/numbers) in the new Block Editor when it runs as the
dotcms-block-editorweb component. Follow-up to #36235, found during the #35980 bug hunt.Root cause
The editor was relying on the host page's Tailwind
proseto render list markers — a fragile dependency for a web component meant to drop into arbitrary host pages. Two host-cascade effects defeated it:ol, ul, menu { list-style: none }in@layer base. In the web-component build's layer order this beatsprose, so<ul>/<ol>lost their markers.li { list-style: none }set directly on the<li>, overriding thelist-style-typethe<li>would otherwise inherit from its list parent. On top of that, prose colorsli::markera light gray.Proposed Changes
Add self-contained, unlayered list CSS to
editor.component.cssso markers render regardless of the host's Tailwind/prose setup (same pattern the file already uses for tables/code/figures):ul → disc,ol → decimal, withpadding-leftso the markers are visible (list-style-position: outsidepaints them in the indent).disc → circle → square.li { list-style: inherit }— re-derives the marker from the list parent, defeating the JSP'sli { list-style: none }..tiptap li(0,2,1) out-specifies JSP'sli(0,0,1).li::marker { color: currentColor }— markers match the editor text instead of prose's gray.li/li > pspacing so markers align with the first line of text.Checklist
new-block-editor; verified via build + manual)Additional Info
.tiptap ul/ol/li); unlayered so it wins over layered Tailwind resets in both the web-component (dotcms-block-editor) and Angular (dot-block-editor) hosts.nx run dotcms-block-editor:build --configuration=production); the bundle-budget line is a pre-existing warning unrelated to this change.Video
video.mov
Related to #35980
This PR fixes: #35980