Bug #100901
openMissing custom CSS in NewContentElementWizard
0%
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'), ]; }
Files
Updated by Gerrit Code Review over 1 year ago
- Status changed from New to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/79093
Updated by Gerrit Code Review over 1 year ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/79093
Updated by Nikita Hovratov over 1 year ago
- File mask-fa-icon.png mask-fa-icon.png added
- Description updated (diff)
Updated by Markus Klein 4 months ago
- Status changed from Under Review to Accepted
Updated by Markus Klein 4 months ago
Cross-link: https://github.com/Gernott/mask/issues/551