Published: April 18, 2025
My LocalGov Drupal contributions for week-ending April 18th, 2025
A slightly quieter week than I would have liked, but you can't get everything done all the time. That said, I worked on two pretty large issues - Font Awesome Icons in LocalGov Base and config setting for JS mobile breakpoint.

Meetings and Meet-ups
- Merge Tuesday: Y'all'll be glad to hear LocalGov Publications Importer is coming along very well, thanks to some great work from Andy and Rupert.
Code Contributions
- Nik opened an interesting issue last week with Gin/Gin Toolbar CSS being called on the frontend when opening things in modals, but not being available since we are not in the backend of the website. I'm not fully sure of the solution for this just yet, but I've added to the conversation an idea that I think will allow us to use the needed styles without doing much work (or future maintenance). Win!
- We have a small set of icons in our
localgov_base
theme. But everytime I am implementing a custom theme, I need to use different icons (e.g. X instead of Twitter or a new social media platform has become popular). I usually try to have these contributed back to LocalGov Base so everyone can use them. Then I thought: "why not put the whole of font-awesome into LocalGov Base?" so we have a really good library of available icons. So that's what I did in this PR. - Here's a juicy one: at the moment our header.js file presumes all sites will use 768px as the breakpoint for when mobile menus, etc kick in. We now have a PR to create a theme setting, so individual sites can decide at what breakpoint they want the mobile JS items to kick in so they won't need to override the whole of header.js.
- Live previews module is almost ready for the big time, and now has some tests available as well.