Disclaimer: I know this probably belongs in a bug report but the bug report website does not recognize my company URL for some reason, so I'm posting it here instead.
Summary: Cloud editor silently converts custom panels to legacy panel macros on publish, losing their background color in view mode
Steps to reproduce:
- Create a new page in the cloud editor. Insert a custom panel (
/custom panel) and pick any background color from the panel's color picker. Publish — the panel renders correctly. - Edit the page again, change one character of unrelated text (do not touch the panel), and publish.
- View the page.
Expected: the custom panel keeps its background color.
Actual: the panel renders with a default white background and default text color. Internally, the ADF custom panel node has been converted to a legacy panel macro (bodied-extension, com.atlassian.confluence.macro.core): the chosen color and emoji are preserved in the macro parameters (bgColor, panelIcon, panelIconId, panelIconText) but are not rendered, and spurious breakoutMode: wide / breakoutWidth parameters (values vary, e.g. 760 or 1800) are stamped on even though I've never touched any width-related setting. Clicking the panel in the editor now opens the legacy macro configuration (hex-code fields) instead of the panel color picker. The conversion does not revert.
Important observations:
- Standard panels (info/note/success/warning/error) are unaffected.
- Custom panels nested inside a layout section (including single-column), an expand, or a table cell are not converted — only top-level custom panels are. This suggests the publish-time breakout normalization only processes top-level nodes and "resolves" custom panels by demoting them to macros.
- Reproduced on multiple pages, including panels written via the public API in ADF-native form, which are then demoted by the next editor publish.
Impact: every editor publish of an affected page silently strips the styling from all top-level custom panels; heavily-formatted knowledge base pages degrade with no warning or undo path short of version-history revert. I also don't want to add a single-column layout everywhere I want to use a custom panel. Please help!
