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.
When using the Sticky option on Top Bar, the stickiness only kicks in at medium screen size. To make it sticky on small screens too you have to use data-option="stickOn:small". I've rolled a patch to fix this.
The patch also includes a couple of other tweaks and enhancements:
- An option to include the language switcher in the Top Bar, if the language module is enabled.
- Tidied up zurb_foundation.settings.yml and added zurb_foundation.schema.yml (I did this while trying to get configuration translation to work so that the Menu text setting could be translated. I didn't manage to get that working but I think the yml file changes are good in any case.
- A couple of coding standards fixes flagged up by code sniffer.
Comment | File | Size | Author |
---|---|---|---|
#6 | 2684161-6.patch | 9.59 KB | samuel.mortenson |
Comments
Comment #2
kevinquillen CreditAttribution: kevinquillen at Velir commentedI made some tweaks, removed some commented code, rerolled. Let me know what you think.
FYI I tend to stick to the
use ...
convention instead of the full name typehint.Comment #3
Peacog CreditAttribution: Peacog as a volunteer commentedThat looks good. The re-rolled patch doesn't include the schema.yml file, but it's not needed for the moment, until I figure out how to translate the theme configuration settings.
Comment #4
kevinquillen CreditAttribution: kevinquillen at Velir commentedThat's odd... I thought I saw it in the list when creating the patch.
Comment #5
samuel.mortensonRe-rolling/reviewing this now...
Comment #6
samuel.mortensonHere's a re-rolled patch (of #2). The only code I changed was the bit that rendered the language block - my main issue with it was that it required the user to have already placed/created the Language Switcher Block somewhere, and when they placed it used the machine name "languageswitcher". This change accesses and renders the Block Plugin directly, without making any assumptions about the user's environment.
Comment #7
Peacog CreditAttribution: Peacog as a volunteer commentedThat's much better, and it all works perfectly. Thanks.
Comment #9
samuel.mortensonCommitted, this was blocking some other setting work I wanted to do on the branch. Thanks for the (informal) review @Peacog!