The Drupal toolbar in D8 seems to be inconsistent when moving from administration theme to main theme. In the administration theme the admin toolbar is themed towards adminimal, but when viewing the site it switches back. I'm not sure if this is intentional or not but it would make since IMO to provide a consistency on the menu no matter what theme you are in.
Also if you install the add on Admin Toolbar it becomes unusable in adminimal. This module seems like it is becoming a standard for menus in D8 so it would be helpful if the styling was not affected.
I think the easiest fix would be to have a theme setting that toggles the theming for that menu. Then separating the toolbar css into its own file.
Comment | File | Size | Author |
---|---|---|---|
#3 | make-toolbar-theme-optional-2882548-3.patch | 10.94 KB | sreenivasparuchuri |
Comments
Comment #2
brayfe CreditAttribution: brayfe commentedAgreed. When using Adminimal theme with Admin Toolbar, the toolbar theming becomes strange. It is sometime the standard black, but also some links are partially tan. Very difficult to work with, especially with contrast on links.
Comment #3
sreenivasparuchuri CreditAttribution: sreenivasparuchuri as a volunteer commentedAdding a patch for it for this issue. Please review.
Created new theme setting
theme_get_setting('toolbar_css');
based on this value new css fileadminimal-toolbar.css
will load.Comment #4
andrey.troeglazov CreditAttribution: andrey.troeglazov at DrupalJedi commentedWith the stable version of admin toolbar and dev version of adminimal it works good for me.
Comment #5
andrey.troeglazov CreditAttribution: andrey.troeglazov at DrupalJedi commentedComment #6
andrey.troeglazov CreditAttribution: andrey.troeglazov at DrupalJedi commented