Skip to content

[BUGFIX] Keep the icons from recolouring other icons - #46

Merged
achimfritz merged 2 commits into
masterfrom
bugfix/inline-safe-icons
Dec 2, 2026
Merged

achimfritz merged 2 commits into
masterfrom
bugfix/inline-safe-icons

Conversation

@davidsteeb

Copy link
Copy Markdown
Contributor

The TYPO3 backend renders SVG icons inline in several places (module menu, user menu, context menu, select trees). A <style> block with generic class names (.cls-1, .st0, …) then becomes CSS for the whole backend page, so rules from one icon change the colours of other inlined icons, depending on which icons are on the page.

The affected SVGs now carry their colours as presentation attributes, without <style> blocks or classes. Referenced IDs (e.g. gradients) are kept.

Checked with a pixel comparison of every changed icon before and after (rendered in isolation: no differing pixels), and inline next to icons that still ship such rules.

The TYPO3 backend renders SVG icons inline, e.g. in the module menu,
so a <style> block with generic class names became CSS for the
whole page and changed the colours of other icons. The icons now
carry their colours as presentation attributes and look the same
as before.
Use the standard credits block and tag links to b13.com.
@achimfritz
achimfritz merged commit f7a091f into master Dec 2, 2026
0 of 12 checks passed
@achimfritz
achimfritz deleted the bugfix/inline-safe-icons branch December 2, 2026 07:47
@davidsteeb davidsteeb mentioned this pull request Dec 3, 2026
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.

3 participants