Patch #43206
openRemove deprecated icon-* classes from stylesheets
Added by Marius BĂLTEANU about 1 month ago. Updated about 8 hours ago.
0%
Files
| redmine_issue_templates-before@2x.png (110 KB) redmine_issue_templates-before@2x.png | Go MAEDA, 2025-10-23 12:03 | ||
| redmine_issue_templates-after@2x.png (107 KB) redmine_issue_templates-after@2x.png | Go MAEDA, 2025-10-23 12:04 | ||
| administration-before@2x.png (107 KB) administration-before@2x.png | Go MAEDA, 2025-10-23 12:09 | ||
| administration-after@2x.png (116 KB) administration-after@2x.png | Go MAEDA, 2025-10-23 12:09 |
Related issues
Updated by Marius BĂLTEANU about 1 month ago
- Subject changed from Removes deprecated icon-* classes to Remove deprecated icon-* classes from stylesheets
Updated by Marius BĂLTEANU 20 days ago
- Category set to Code cleanup/refactoring
- Status changed from New to Resolved
- Assignee set to Marius BĂLTEANU
Updated by Go MAEDA 14 days ago
- Related to Defect #43337: Missing icons for scroll buttons in the project menu added
Updated by Go MAEDA 3 days ago
- File redmine_issue_templates-before@2x.png redmine_issue_templates-before@2x.png added
- File redmine_issue_templates-after@2x.png redmine_issue_templates-after@2x.png added
- File administration-before@2x.png administration-before@2x.png added
- File administration-after@2x.png administration-after@2x.png added
- Status changed from Closed to Reopened
This removal is correct for core, but many third-party plugins still use raster icons. As a result, their icons no longer render correctly since r24029.
Plugins probably use raster icons for various reasons. One is that they need to remain compatible with Redmine 5.1 and earlier. Another is that the author has not yet found the time to migrate to SVG icons.
To preserve compatibility with existing plugins, could you consider reverting r24029?
Before r24029 (redmine_issue_templates plugin):
After:
Before r24029 (Administration page with two plugins installed):
After:
Updated by Marius BĂLTEANU 1 day ago
It is expected to cause this issue with some plugins that are not updating their icons, this is why I didn't removed the classes when I introduced the icons in Redmine 6.0.0 and I waited for next major version (7.0.0).
I prefer to not keep this complexity in the core just because we break some plugins, but I'm open to provide a easier way for plugins to keep the compatibility. Maybe one option is to move all the rules to an icons-legacy.css file and let the plugins include the file based on their needs? Any other suggestion is welcomed.
Updated by Go MAEDA about 8 hours ago
Marius BĂLTEANU wrote in #note-6:
Maybe one option is to move all the rules to an icons-legacy.css file and let the plugins include the file based on their needs?
That is a good idea.
For plugin developers, a more descriptive name such as legacy-icons-compat.css would make its purpose clearer.