Integrate the footer from new.drupal.org into the D7 version

Created on 21 October 2024, 7 months ago

Problem/Motivation

https://new.drupal.org shows a new footer, where the components and CSS is all in the 2.x branch of Bluecheese.
We want to bring those designs to the Drupal 7 site so if we jump between sites we have some sort of common elements.

📌 Task
Status

Active

Version

2.0

Component

Code

Created by

🇪🇸Spain fjgarlin

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @fjgarlin
  • First commit to issue fork.
  • 🇬🇧United Kingdom opdavies Wales

    opdavies changed the visibility of the branch palantir-backport to hidden.

  • 🇬🇧United Kingdom opdavies Wales

    I've moved the commits onto the branch related to this issue/MR.

    The manual steps I can recall are:

    • Disabling the Home link in the main menu, as this is now added outside of the menu.
    • Populating the footer menu with the appropriate links.
    • Creating and populating the "Footer social links" (menu-footer-social-links) menu with lower-case names for each social network.
    • Placing the Footer menu block in the "Footer Nav" region and the "Footer social links" block in the "Footer Social" region.
  • 🇬🇧United Kingdom opdavies Wales

    Creating and populating the "Footer social links" (menu-footer-social-links) menu with lower-case names for each social network.

    There is a script in tools/scripts/populate-footer-social-links-menu.php that does this.

  • 🇬🇧United Kingdom opdavies Wales
  • Assigned to opdavies
  • Status changed to Needs review 29 days ago
  • 🇬🇧United Kingdom opdavies Wales

    The main content issues were caused by box-sizing: border-box; instead of box-sizing: content-box;.

    Changing this adds margin and padding in addition to a maximum width value rather than inside of it.

    The latest changes update some of the D10 files from the 2.x branch and add some additional D7 specific overrides.

  • 🇬🇧United Kingdom opdavies Wales

    Here's the small script I wrote to download the updated files from the 2.x branch and easily keep any backported files up to date.

    I'm happy to commit it to the 7.x-2.x branch if it would be useful.

    #!/usr/bin/env bash
    
    set -o errexit
    set -o nounset
    set -o pipefail
    
    remote_branch="2.x"
    upstream_url="https://git.drupalcode.org/project/bluecheese/-/raw/$remote_branch"
    
    files=(
      "components/components/footer/footer.css"
      "components/foundations/grid/grid.css"
      "css/sass-generated-basic-elements.css"
      "css/global-variables.css"
      "css/icons.css"
    )
    
    for file in "${files[@]}"; do
      curl "$upstream_url/$file" --output "d10-backport/${file}"
    done
    
Production build 0.71.5 2024