From d22a1a401db0cc0d14a0bb60a5abd7fbc92b6975 Mon Sep 17 00:00:00 2001
From: Jordan Willis <31868510+will0684@users.noreply.github.com>
Date: Thu, 31 Oct 2024 03:24:30 -0700
Subject: [PATCH] Post-2.0.0 Release Fixes (#1115)
* used meta name for twitter tags
* announce Feedback.js form submission to screen readers
* fix ProjectInfo modal position in Firefox mobile
---
components/fragment_renderer/PageHead.js | 12 +++----
components/organisms/Feedback.js | 41 ++++++++++++++++--------
styles/globals.css | 2 +-
3 files changed, 34 insertions(+), 21 deletions(-)
diff --git a/components/fragment_renderer/PageHead.js b/components/fragment_renderer/PageHead.js
index 7972152531..337b0765e4 100644
--- a/components/fragment_renderer/PageHead.js
+++ b/components/fragment_renderer/PageHead.js
@@ -115,9 +115,9 @@ export default function PageHead(props) {
/>
{/* Twitter */}
-
+
{
+ if (ref.current) {
+ ref.current.focus();
+ }
+ }, 100);
+ }
+
return (
{isSubmitted && (
@@ -36,8 +52,10 @@ function Feedback() {
height={25}
style={{ width: 25, height: 25 }}
priority
- >
-
{t("feedback.thank-you")}
+ />
+
+ {t("feedback.thank-you")}
+
)}
@@ -54,7 +72,7 @@ function Feedback() {
name="what-was-wrong"
value="cant-find-info"
required
- >
+ />
{t("feedback.cant-find-info")}
@@ -98,7 +111,7 @@ function Feedback() {
aria-describedby="extra-info maximum-characters"
maxLength={300}
className="p-1"
- >
+ />