Review 12.4 Merged

81080[TASK] Streamline applying stylesheets in lit-element components

Benjamin Franzke CR +2 V +2 Hard +185 −171 updated 09/19/23, 08:59

Commit message

This change extracts dynamic stylesheets of web components that
are attached to the light DOM to a corresponding static file in
the directory `Build/Sources/Sass/element/` (it will be merged
to `backend.css` during the build process).

This change allows to get rid of the `window.litNonce` helper
function that was introduced to allow CSP for dynamic styles.

Besides that, the shadow DOM component `typo3-backend-spinner`
now uses constructed stylesheets directly. In addition, the
missing component names have been added to the global map.

Review

  • Code review CR +2 Done
    • Benjamin Franzke +2
  • Verified V +2 Done
    • Benjamin Franzke +2
    • core-ci +1 CI

Issues 1

Files 17

Review log 23

  1. Benjamin Franzke uploaded patch set 1 09/19/23, 08:49

  2. core-ci voted on patch set 1 V +1 09/19/23, 08:58 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/46742

  3. Benjamin Franzke merged patch set 2 09/19/23, 08:59