Issue Bug Closed

#100901Missing custom CSS in NewContentElementWizard

Nikita Hovratov 05/19/23, 10:05 updated 10/06/26, 15:18

Description

Since the new web component based NewContentElementWizard custom included CSS via TBE_STYLES is not included anymore.
This leads to broken preview icons, if a custom IconProvider was used. E.g. Mask uses FontAwesome Icons, but the CSS is not included from
@$GLOBALS[‘TBE_STYLES’][‘skins’][‘fontawesome_provider’][‘stylesheetDirectories’][‘css’] = ‘EXT:fontawesome_provider/Resources/Public/Css/’;@

The backend.css file seems to be hard-coded:

Build/Sources/TypeScript/backend/new-content-element-wizard.ts:343

    // Load shared css file
    const link = document.createElement('link');
    link.setAttribute('rel', 'stylesheet');
    link.setAttribute('href', TYPO3.settings.cssUrls.backend);
    this.shadowRoot.appendChild(link);

typo3/sysext/core/Classes/Page/PageRenderer.php:2244

    protected function addGlobalCSSUrlsToInlineSettings()
    {
        $this->inlineSettings['cssUrls'] = [
            'backend' => $this->getStreamlinedFileName('EXT:backend/Resources/Public/Css/backend.css'),
        ];
    }

mask-fa-icon.png

Reviews 1

Files 1

History 810

  1. Urs Braem commented <span data-processor="relativetime" data-value="2023-11-30T10:13:40+00:00" > 11/30/23, 10:13 </span>

    The font custom icons for mask elements are very important to make the new content element wizard user friendly. This bug will break that for upgrades and make creating new icons more tedious.

    Maybe we can sponsor the fix?

  2. Georg Ringer commented and changed status Accepted Closed <span data-processor="relativetime" data-value="2026-10-06T15:18:26+00:00" > 10/06/26, 15:18 </span>

    not needed anymore, can be closed