Review main Abandoned

93989[BUGFIX] Render backend notifications in top layer

Himanshu Nitsan CR 0 V 0 Normal +70 −2 updated 05/05/26, 21:10

Commit message

Since v14 the backend modal (<typo3-backend-modal>) uses the native
<dialog> element and is opened via showModal(), which places the dialog
and its ::backdrop in the browser top layer. The notification container
(#alert-container) is a regular DOM element appended to document.body
and therefore rendered below the top layer regardless of its z-index,
hiding flash messages behind every open modal.

This change promotes #alert-container to the top layer via the Popover
API (popover="manual"). After each notification event the popover is
hidden and re-shown so it stacks above any currently open <dialog>,
because top-layer ordering follows open order.

A feature check ('popover' in HTMLElement.prototype) keeps the legacy
fallback for browsers without Popover API support; behavior on those
browsers is identical to before.

Review

  • Code review CR 0
  • Verified V 0
    • core-ci +1 CI

Issues 1

Files 4

Review log 23

  1. Himanshu Nitsan uploaded patch set 1 05/05/26, 13:22

  2. core-ci voted on patch set 1 V +1 05/05/26, 13:30 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/101557

  3. Garvin Hicking abandoned the change 05/05/26, 21:10

    Closing this due to being a dupe to https://review.typo3.org/c/Packages/TYPO3.CMS/+/93246 - maybe you can join efforts there?