From 01e8e691e510c119a261e64d6d9efa53a0489a3e Mon Sep 17 00:00:00 2001
From: Kevin Paxman <kpaxman@uwaterloo.ca>
Date: Thu, 30 Jan 2025 16:03:43 -0500
Subject: [PATCH] ISTWCMS-7270: ensure footer link blocks links have white text
 when on no background, and black text when on white background

---
 .../04-components/links/_links-vars.scss      | 24 +++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/src/patterns/04-components/links/_links-vars.scss b/src/patterns/04-components/links/_links-vars.scss
index 4154b78b..ac450a58 100644
--- a/src/patterns/04-components/links/_links-vars.scss
+++ b/src/patterns/04-components/links/_links-vars.scss
@@ -245,6 +245,25 @@
   }
 
   .uw-link__link-color--#{$faculty} {
+    .uw-site-footer & a {
+      &.uw-link-list__related,
+      &.uw-link-list__navbar,
+      &.uw-link-list__option,
+      &.uw-link-list__quick {
+        @include link(
+            var(--uw-white),
+            var(--uw-white)
+        );
+      }
+      @if $faculty != org-default {
+        &.uw-link-list__buttons {
+          @include link(
+              var(--uw-white),
+              var(--uw-white)
+          );
+        }
+      }
+    }
     @if $faculty == org-default {
       a {
         &.uw-link-list__buttons {
@@ -489,6 +508,11 @@ a {
     --link-color-2: var(--uw-white);
   }
 
+  // Overrode background colour for black background links in the footer.
+  .uw-site-footer__content .uw-link__bg-color.uw-link__bg-color--org-default-b & {
+    --link-color-2: var(--uw-black);
+  }
+
   // Force links black.
   .uw-link__image-link-color--black-with &,
   .uw-link__image-link-color--black-without &,
-- 
GitLab