Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
toolbar.module
Priority:
Normal
Category:
Bug report
Assigned:
Issue tags:
Reporter:
Created:
14 May 2014 at 07:30 UTC
Updated:
13 Sep 2015 at 12:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
michaelmol commentedComment #2
michaelmol commentedComment #3
petednz commentedComment #4
petednz commentedcan you add your code that is adding the title-less menu entry so others can quickly replicate and try to progress this?
Comment #5
michaelmol commentedHere the implementation of hook_toolbar, with an empty title element.
I have used the class toolbar-icon-user class so the user icon is rendered.
Comment #6
wim leersCan you explain why this is not a problem for the Contextual module's toolbar tab, then?
Comment #7
vollepeer commentedComment #8
vollepeer commentedThis problem also affects the icons in the Contextual module's toolbar (see attached screenshot). Working on a patch now.
Comment #9
vollepeer commentedAlignment issue can be solved by adding a vertical align for the Contextual module's toolbar icons, and a min-height for all toolbar icons in general. Needs to be tested for cross-browser compatibility.
Comment #10
vollepeer commentedComment #11
vollepeer commentedComment #12
vollepeer commentedComment #13
wim leersThe contextual toolbar tab does have (fallback) text, and is aligned correctly, so I don't see why this is necessary.
If this is necessary to solve the generic case, then this doesn't belong in
contextual.toolbar.css, but in the appropriate Toolbar CSS.Everything is em-based in this CSS file AFAICT, so we should probably stick to that.
Comment #14
wim leersAlso, in principle you must define a title: it's necessary for accessibility purposes — how else are screen reader users supposed to know what a toolbar tab is for? :)
Comment #15
vollepeer commentedvertical-align: top;Targets the problem that multiple icons in the Contextual module's toolbar are defined without a title text. I leave this one out as it is an edge case.
min-height: 40px;Converted to em's.
Comment #16
vollepeer commentedComment #18
wim leersLovely — nice & simple! :)
I'd love to have RTBC'd this, but unfortunately I found a regression… (this is in Chrome).
Comment #19
vollepeer commentedThanks for reviewing. Fixed regression problem.
Comment #21
vollepeer commented19: toolbar-css-2267037-19.patch queued for re-testing.
Comment #22
wim leersPerfect, thanks :)
(Manually tested and confirmed, also with different font sizes.)
Comment #23
alexpottCommitted d82a0ff and pushed to 8.x. Thanks!
Comment #26
dobe commentedI am not sure whether to open a different issue or reopen this one. I am dealing with the same regression as #18 in latest dev.
Comment #27
MattA commented@dobe Then you will likely want to see #2546196: Toolbar's orientation-toggling arrows broken by #2173527 instead.