From cf4040da6dc4cb818c0a83b7f1813e93e47c9b68 Mon Sep 17 00:00:00 2001
From: Helen Chong <119173961+helenclx@users.noreply.github.com>
Date: Sat, 6 Jul 2024 18:21:42 +0800
Subject: [PATCH] Implement Scott O'Hara's ARIA tooltips
---
src/_includes/global/baselayout.njk | 14 ++
src/assets/css/components.css | 22 --
src/assets/css/tooltips.css | 49 +++++
src/assets/js/tooltips.js | 303 ++++++++++++++++++++++++++++
src/index.njk | 6 +-
src/links/websites.njk | 5 +-
src/pages/links.njk | 1 +
7 files changed, 372 insertions(+), 28 deletions(-)
create mode 100644 src/assets/css/tooltips.css
create mode 100644 src/assets/js/tooltips.js
diff --git a/src/_includes/global/baselayout.njk b/src/_includes/global/baselayout.njk
index 8b94d08c..8382aa27 100644
--- a/src/_includes/global/baselayout.njk
+++ b/src/_includes/global/baselayout.njk
@@ -9,6 +9,9 @@
{# CSS #}
{% include "global/css-bundle.njk" %}
+ {% if hasTooltips %}
+
+ {% endif %}
{% if customCSSSheets %}
{%- for sheet in customCSSSheets -%}
@@ -46,5 +49,16 @@
{{ content | safe }}
{% block footer %}{% include "global/footer.njk" %}{% endblock %}
+ {% if hasTooltips %}
+
+
+ {% endif %}