Problem/Motivation

The active menu items of the toolbar aren't displaying. The link to the background image is corrupt, the targeted folder should be "000000" instead of "787878"

screenshot of missing toolbar menu items

Steps to reproduce

Install adminimal theme and click e.g. on "appearance".

Proposed resolution

Change code in next release.

Remaining tasks

Adjust the background image links of the active state of all toolbar menu icons.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Pnoia created an issue. See original summary.

dharti patel’s picture

Assigned: Unassigned » dharti patel
dharti patel’s picture

Assigned: dharti patel » Unassigned
Status: Active » Needs review
StatusFileSize
new67.77 KB

Hello @Pnoia,
I've checked this issue in my local setup but I've not found the toolbar icon missing on active state.

Can you please find attached screenshot for the same.

Thanks

himanshu_jhaloya made their first commit to this issue’s fork.

himanshu_jhaloya’s picture

Assigned: Unassigned » himanshu_jhaloya

Hi @Dharti Patel I am reviewing #3

himanshu_jhaloya’s picture

I've checked this issue no icon missing

himanshu_jhaloya’s picture

Assigned: himanshu_jhaloya » Unassigned
Status: Needs review » Reviewed & tested by the community
matas.k’s picture

Version: 8.x-1.6 » 8.x-1.7
Status: Reviewed & tested by the community » Needs work

This is an issue in D10.

  1. E.g. the adminimal_theme/css/adminimal.css at line 759 looks for icons at given path e.g. /core/themes/stable/images/core/icons/787878/puzzlepiece.svg and it gives 404.
  2. It's because there is no /stable/ because it has been removed https://www.drupal.org/node/3309392
  3. The right path to the icon is e.g. /core/misc/icons/787878/puzzlepiece.svg

Also the correct structure and pathing for the icons should be followed as shown here https://api.drupal.org/api/drupal/core!themes!stable9!css!toolbar!toolba... (under View Source) instead of absolute URL that breaks local/sub dir installations, which would also solve this: https://www.drupal.org/project/adminimal_theme/issues/2658148

E.g. go from Adminimal's:

.adminimal .toolbar-icon-system-themes-page:active::before, .adminimal .toolbar-icon-system-themes-page.is-active::before {
	background-image: url(/core/themes/stable/images/core/icons/787878/paintbrush.svg);
}

To toolbar.icons.theme.css format:

.toolbar-icon-system-themes-page::before {
	background-image: url(../../../../misc/icons/787878/paintbrush.svg);
}

Replace the absolute /core/themes/stable/images/core/icons/787878/ with ../../../../misc/icons/787878/

djsagar’s picture

Status: Needs work » Needs review
StatusFileSize
new13.07 KB
new1.68 MB

Created patch for toolbar menu icons issue.
Kindly review.

Regards!

matas.k’s picture

Patch works. Thanks.

thatguy’s picture

Noticed "page not found" errors with Adminimal trying to use the core stable paths for the icons. #9 patch fixed it nicely

shyam_bhatt’s picture

StatusFileSize
new2.43 KB
new12.74 KB
new48.16 KB

This issue is related to Drupal 10.
Please check the below steps to reproduce this issue

  1. Install Drupal 10.
  2. Add "Adminimal" as an administration theme.
  3. Now click on "Structure", for the active menu items, the icons of the toolbar aren't displaying.

It's because there is no stable theme existing in the core folder.

So we need to update the background image path instead of "/core/themes/stable/images/core/icons/787878/file.svg" need to update "/core/misc/icons/787878/file.svg".

Please check the below code with the updated path.

/* Main menu icons. */
.adminimal .toolbar-icon-system-admin-content:active:before,
.adminimal .toolbar-icon-system-admin-content.is-active:before {
  background-image: url(/core/misc/icons/787878/file.svg);
}

.adminimal .toolbar-icon-system-admin-structure:active:before,
.adminimal .toolbar-icon-system-admin-structure.is-active:before {
  background-image: url(/core/misc/icons/787878/orgchart.svg);
}

.adminimal .toolbar-icon-system-themes-page:active:before,
.adminimal .toolbar-icon-system-themes-page.is-active:before {
  background-image: url(/core/misc/icons/787878/paintbrush.svg);
}

.adminimal .toolbar-icon-entity-user-collection:active:before,
.adminimal .toolbar-icon-entity-user-collection.is-active:before {
  background-image: url(/core/misc/icons/787878/people.svg);
}

.adminimal .toolbar-icon-system-modules-list:active:before,
.adminimal .toolbar-icon-system-modules-list.is-active:before {
  background-image: url(/core/misc/icons/787878/puzzlepiece.svg);
}

.adminimal .toolbar-icon-system-admin-config:active:before,
.adminimal .toolbar-icon-system-admin-config.is-active:before {
  background-image: url(/core/misc/icons/787878/wrench.svg);
}

.adminimal .toolbar-icon-system-admin-reports:active:before,
.adminimal .toolbar-icon-system-admin-reports.is-active:before {
  background-image: url(/core/misc/icons/787878/barchart.svg);
}

.adminimal .toolbar-icon-help-main:active:before,
.adminimal .toolbar-icon-help-main.is-active:before {
  background-image: url(/core/misc/icons/787878/questionmark-disc.svg);
}

Please check the updated patch. I have added interdiff file to compare #9 patch.

+Needs review

markusk’s picture

Status: Needs review » Reviewed & tested by the community

Patch from #12 works nicely and should be preferred over the patch from #9: the latter uses data URIs containing icons which seems unnecessary to me given that the icons reside in /core/misc/icons already. Moving to RTBC.

Side node: the patch from #3 fixes some CSS coding standard violations unrelated to this issue (while also introducing some new violations). These should be addressed separately.

joaopauloscho’s picture

Patch from #12 also works for us, thanks.

marc.groth’s picture

Yep, patch #12 also working this side.

Drupal core: 10.1.5
Adminimal Theme: 8.x-1.7

trevorbradley’s picture

Another thumbs up for #12.

rcodina’s picture

Patch on #12 works like a charm!

bbeversdorf’s picture

There is also a reference to stable within the info.yml file. Here is a patch to map core's system theme to the (now contrib) seven theme. This should be applied alongside #12.

cicciobat’s picture

StatusFileSize
new3.76 KB

Hi everyone, I made a patch that merge both the #12 one and the #18 one. Works on Drupal 10.3.1 and adminimal_theme 8.x-1.7.

tonytheferg’s picture

#19 works. Thanks!

malcomio made their first commit to this issue’s fork.

malcomio’s picture

Patch #19 doesn't apply cleanly because it was created from a site root.

I've taken the changes and applied them in https://git.drupalcode.org/project/adminimal_theme/-/merge_requests/17

It fixes the problem for me.

cicciobat’s picture

Hi, I'm sorry for the mistake! I did it on the go when I was working but I'm happy to know that works!