Problem/Motivation

In #3156863: Gin Toolbar support and #3247637: Improvements when using Gin theme support was add for the Gin admin theme and the related toolbar. Gin also works well with the Admin Toolbar module, however when Environment Indicator is enabled the flyout menus are very hard to open due to an unwanted margin:

Steps to reproduce

Enable:

  • Gin
  • Gin Toolbar
  • Admin Toolbar
  • Environment Indicator

Proposed resolution

Override the Gin vertical toolbar styles to take the new margin into account.

Remaining tasks

  • Validate the proposed solution
  • Write code
  • Reviews

User interface changes

API changes

None

Data model changes

None

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

plach created an issue. See original summary.

plach’s picture

Issue summary: View changes
plach’s picture

Issue summary: View changes
StatusFileSize
new122.85 KB

plach’s picture

Assigned: plach » Unassigned
Status: Active » Needs review

This implements the suggested fix.

plach’s picture

StatusFileSize
new92.02 KB

Does it make sense to use margin-inline-start? However, if this is mimicking Gin's implementation, I would rather keep it like this.

Hey, thanks for the fast review!

Yes, I just copied the original Gin code and tweaked it to take the additional 3px into account.

I just pushed a commit to restore the proposal at #3156863-6: Gin Toolbar support, since it seems it regressed in the meantime:

(plus a cleanup commit, sorry for the scope-creep ;)

e0ipso’s picture

Status: Needs review » Fixed

I don't use Gin, so I cannot test locally. I trust the screenshots and the work here.

Merging. Drupal.org is not working right now. I will retry later.

  • e0ipso committed c8eca01 on 4.x authored by plach
    Issue #3309626 by plach: Integration with Gin Toolbar and Admin Toolbar
    
plach’s picture

Awesome, thanks!

Status: Fixed » Closed (fixed)

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