createAdfRendererIframeProps - Support background color customization and transparency for platform-managed ADF renderer iframe

XMLWordPrintable

    • 4
    • 1

      When using createAdfRendererIframeProps in a Forge Custom UI macro, the function generates a nested, platform-managed iframe to render ADF content. This iframe has a hardcoded white background that cannot be overridden from app code because:

      The inner iframe's <body> is not accessible from the outer Custom UI context (cross-origin restriction). The surfaceColor property passed in the context only affects ADF content theming (text/component colors), not the iframe's background color. There is no supported API or parameter to control the background styling of this platform-managed iframe.
      Expected behaviour: Developers should be able to either set a custom background color or enable transparency for the iframe generated by createAdfRendererIframeProps, either via a dedicated parameter in the function or via the surfaceColor/context API.
      Use case: Apps that render nested ADF content inside Forge macros cannot visually blend with the Confluence page background, resulting in a jarring white box even when the surrounding UI has a different background. This is particularly impactful for apps that render rich content in light/dark themed Confluence pages.

              Assignee:
              Unassigned
              Reporter:
              Gabriel Vilhena (Inactive)
              Votes:
              13 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: