aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/templates
diff options
context:
space:
mode:
authorGravatar hedy <[email protected]>2024-03-27 12:21:07 +0800
committerGravatar hedy <[email protected]>2024-03-27 12:21:55 +0800
commit422c5fef0fdc5b440c2cf332c94ffbd131e96094 (patch)
tree1d0627b1f9e9e0e111d7b678ae42f0c93dd9dbbb /pydis_site/templates
parentMerge pull request #1266 from python-discord/fix/footer-bulma-logo (diff)
Fix navbar dropdown toggle for touchscreens using Safari
Diffstat (limited to 'pydis_site/templates')
-rw-r--r--pydis_site/templates/base/base.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/pydis_site/templates/base/base.html b/pydis_site/templates/base/base.html
index 0eb10975..8aca1d43 100644
--- a/pydis_site/templates/base/base.html
+++ b/pydis_site/templates/base/base.html
@@ -32,7 +32,9 @@
{% block head %}{% endblock %}
</head>
-<body class="site">
+<!-- The tabindex attribute fixes the inability to toggle the navbar dropdown
+ -- on touchscreens using Safari. -->
+<body class="site" tabindex="-1">
<!-- Git hash for this release: {{ git_sha }} -->
<main class="site-content">