Skip to content

[BUGFIX] DPL-173: Let DeeplBaseScgIconProvider return inline svg correctly#80

Merged
sbuerk merged 1 commit into
mainfrom
dpl-173-modeaware-icon-rendering-issue
Jul 5, 2026
Merged

[BUGFIX] DPL-173: Let DeeplBaseScgIconProvider return inline svg correctly#80
sbuerk merged 1 commit into
mainfrom
dpl-173-modeaware-icon-rendering-issue

Conversation

@sbuerk

@sbuerk sbuerk commented Jul 5, 2026

Copy link
Copy Markdown
Member

Simply generating a svg use markup for inline svg icons worked for
chrome based browser but failed for Firefox.

TYPO3 v14 changed the implementation mainly due to the introduction of
the system resource api and AbstractSvgIconProvider::getInlineSvg()
seems to work pretty fine if used in the custom icon provider. However,
that does not solve the problem for TYPO3 v13 instances.

To get mode aware svg icons working for TYPO3 v13 and v14 our custom
implementation uses getInlinveSvg() for both with the core-version
aware workaround to properly resolve to a full absolute path to the
svg file to ensure the content can be found and inlined.

Important

Due to the strict backend icon caching that possible requires
a manual refresh (clear) of the browser local storage cache,
otherwise consuming extension are required to register icons
under a new name to ensure that it got resolved completly new.

Firefox v13 - ensured cleared local icon storage

image

Firefox v14 - ensured cleared local icon storage

image

@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown

Documentation rendering

You can find files attached to the below linked Workflow Run URL (Logs).

Please note that files only stay for around 5 days!

Name Link
Commit 83a080b
Logs https://github.com/web-vision/deepl-base/actions/runs/28752298641
Documentation https://github.com/web-vision/deepl-base/actions/runs/28752298641/artifacts/8095027317

@sbuerk sbuerk force-pushed the dpl-173-modeaware-icon-rendering-issue branch from f3bc3d4 to bd80377 Compare July 5, 2026 19:29
…rrectly

Simply generating a `svg use` markup for inline svg icons worked for
chrome based browser but failed for `Firefox`.

TYPO3 v14 changed the implementation mainly due to the introduction of
the system resource api and `AbstractSvgIconProvider::getInlineSvg()`
seems to work pretty fine if used in the custom icon provider. However,
that does not solve the problem for TYPO3 v13 instances.

To get mode aware svg icons working for TYPO3 v13 and v14 our custom
implementation uses `getInlinveSvg()` for both with the core-version
aware workaround to properly resolve to a full absolute path to the
`svg` file to ensure the content can be found and inlined.

> [!IMPORTANT]
> Due to the strict backend icon caching that possible requires
> a manual refresh (clear) of the browser local storage cache,
> otherwise consuming extension are required to register icons
> under a new name to ensure that it got resolved completly new.
@sbuerk sbuerk force-pushed the dpl-173-modeaware-icon-rendering-issue branch from bd80377 to 83a080b Compare July 5, 2026 19:30
@sbuerk sbuerk changed the title [BUGFIX] DPL-174: Let DeeplBaseScgIconProvider return inline svg correctly [BUGFIX] DPL-173: Let DeeplBaseScgIconProvider return inline svg correctly Jul 5, 2026
@sbuerk sbuerk merged commit 611c8ee into main Jul 5, 2026
8 checks passed
@sbuerk sbuerk deleted the dpl-173-modeaware-icon-rendering-issue branch July 5, 2026 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants