It may be linked to using admin_toolbar and how they handle the link tree, but the commerce toolbar integration adds an empty link in the toolbar.

I am not super familiar with this space, but I believe this to be a result of not implementing the tab key, which seems to be standard for other hook_toolbar instances.

Comments

Bcwald created an issue. See original summary.

Bcwald’s picture

bojanz’s picture

Category: Task » Bug report
Status: Active » Needs review
bojanz’s picture

Can you provide a screenshot of the empty link?
I just installed admin_toolbar and I'm seeing nothing wrong.

Bcwald’s picture

StatusFileSize
new226.69 KB

Uploaded. I am not really sure what happened to make it show up in our build, though I know that code fixes it. I guess it could be specific to our build. We do have outside_in module enabled, potentially another toolbar change that could affect it.

bojanz’s picture

Great, I see it now as well. Didn't know where to look.

  • bojanz committed 6eebae4 on 8.x-2.x
    Issue #2835097 by Bcwald, bojanz: Commerce toolbar integration adds an...
bojanz’s picture

Status: Needs review » Fixed

Turns out we shouldn't be having hook_toolbar() at all, that's only for tray items (top row), the hook was only added to attach the icon CSS, the Commerce item is included automatically because it's in the Admin menu.

So I've converted hook_toolbar() to hook_toolbar_alter() and cleaned up our CSS a bit along the way.

Thanks for getting the ball rolling!

Bcwald’s picture

Ah that makes sense -- Great!

Status: Fixed » Closed (fixed)

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