Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The hook hook_toolbar
was updated in #1847198-73: Update the structure returned by hook_toolbar().
With these changes, we can finally improve the design of the Edit mode toggle. Here is a screenshot with the updated toggle indicated by an arrow.
Comment | File | Size | Author |
---|---|---|---|
#1 | edit-toolbar-tab-on-the-right.png | 5.31 KB | jessebeach |
#1 | edit-toolbar_1908624-1.patch | 2.99 KB | jessebeach |
toolbar-edit-toggle-design-update.png | 8.24 KB | jessebeach |
Comments
Comment #1
jessebeach CreditAttribution: jessebeach commentedThis patch floats the edit toolbar tab to the right.
It also removes some dead JavaScript and CSS code dealing with trays that was required by
hook_toolbar
's previous structure.Comment #2
Gábor HojtsyLooks good to me as a small next step :)
Comment #3
Wim LeersManually tested, works perfectly. RTBC +1
Comment #4
webchickRock! Committed and pushed to 8.x.
Btw, I know this looks like an Acquia pig-pile atm ;), but this design direction has been discussed elsewhere as a good thing to do, since it's not a navigation element like everything else on the LH side.
Comment #5
Bojhan CreditAttribution: Bojhan commentedYup, I think this was suggested in a very early review a long time ago. So +1.
Comment #7
Wim Leers.