Do not hardcode icons paths to /themes/contrib/

Created on 9 March 2025, 28 days ago

Problem/Motivation

Currently, after πŸ› File icon paths are broken Fixed , the paths to multiple icons are hardcoded to be on /themes/contrib/bootstrap_barrio/images/icons/ path. The theme can be installed even outside of the contrib folder (which is possible if installer-paths in composer.json are changed.

Can we make the paths to icons relative to the theme installation path?

Steps to reproduce

Install bootstrap_barrio in /themes/bootstrap_barrio/ and see that for example file icons (themes/bootstrap_barrio/css/components/file.css) are not working. Here are the definitions causing issues:

https://git.drupalcode.org/project/bootstrap_barrio/-/blob/5.x/css/compo...
https://git.drupalcode.org/project/bootstrap_barrio/-/blob/5.5.x/css/com...
https://git.drupalcode.org/project/bootstrap_barrio/-/blob/5.5.x/css/com...
https://git.drupalcode.org/project/bootstrap_barrio/-/blob/5.5.x/css/com...
https://git.drupalcode.org/project/bootstrap_barrio/-/blob/5.5.x/scss/co...

Proposed resolution

Make the paths to icons relative to the theme installation path.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

5.5

Component

Code

Created by

πŸ‡ΈπŸ‡°Slovakia poker10

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024