Problem/Motivation

After enable the admin toolbar module with gin theme, in top navigation Local Task menu item alignment not matched with other menu item. Need to keep same theme to all like - shortcut's, admin items list.

Steps to reproduce

  1. Install the gin theme and admin toolbar module
  2. navigate to top navigation -> local task menu item -> hover -> menu item right align

Issue fork gin-3355036

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

Harish1688 created an issue. See original summary.

Harish1688’s picture

Status: Active » Needs review
StatusFileSize
new869.34 KB
new402 bytes

Hi,

Created a patch for this issue, please review the patch Local-Task-menu-item-alignment-3355036-1.patch .
After patch image attached.

tanuja bohra’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new23.58 KB
new30.32 KB

This patch is working, the menu items are now aligned to the left. Moving it to RTBC.

galactus86’s picture

I had this on my list to tackle... nice work! Verified the patch works!

galactus86’s picture

Assigned: Unassigned » galactus86
Status: Reviewed & tested by the community » Needs work

While initial test works, when reviewing the code I see that the dist/.css file was changed NOT the .scss file. So next time anyone compiles the CSS this change will be lost.

I'm going to take a few minutes and update.

galactus86’s picture

Assigned: galactus86 » Unassigned
Status: Needs work » Needs review
StatusFileSize
new762 bytes

Updated the toolbar_secondary.scss file instead so it compiles correctly and won't get over written in the future. I also removed the float as a best practice.

Patch attached for review.

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

martijn de wit’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new192.42 KB
new182.33 KB

Unsetting the float is a neater solution, then adding extra styling.

Using patch #6

The bug in our case:

with bug

With the patch:

with bug

thnx!

saschaeggi’s picture

Great, thanks y'all!

saschaeggi’s picture

Status: Reviewed & tested by the community » Fixed
sahal_va’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.