Toolbar menu icons not displayed when active

Created on 14 October 2020, over 3 years ago
Updated 14 February 2024, 4 months ago

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"

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.

๐Ÿ› Bug report
Status

RTBC

Version

1.7

Component

Code

Created by

๐Ÿ‡ง๐Ÿ‡ชBelgium Pnoia

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • ๐Ÿ‡ฑ๐Ÿ‡นLithuania vibrasphere

    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
  • Status changed to Needs review 10 months ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia djsagar

    Created patch for toolbar menu icons issue.
    Kindly review.

    Regards!

  • ๐Ÿ‡ฑ๐Ÿ‡นLithuania vibrasphere

    Patch works. Thanks.

  • ๐Ÿ‡ซ๐Ÿ‡ฎFinland thatguy

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

  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia Shyam_Bhatt Gujarat

    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

  • Status changed to RTBC 9 months ago
  • ๐Ÿ‡ฉ๐Ÿ‡ชGermany markusk Dรผsseldorf

    Patch from #12 ๐Ÿ› Toolbar menu icons not displayed when active RTBC works nicely and should be preferred over the patch from #9 ๐Ÿ› Toolbar menu icons not displayed when active RTBC : 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.

  • Patch from #12 also works for us, thanks.

  • ๐Ÿ‡ฆ๐Ÿ‡บAustralia marc.groth

    Yep, patch #12 also working this side.

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

  • ๐Ÿ‡จ๐Ÿ‡ฆCanada TrevorBradley

    Another thumbs up for #12.

  • ๐Ÿ‡ช๐Ÿ‡ธSpain rcodina

    Patch on #12 works like a charm!

  • 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.

Production build 0.69.0 2024