From 440b8edc411646c591dbc845e0a014477483e730 Mon Sep 17 00:00:00 2001
From: Fons van der Plas
Date: Wed, 3 Jan 2024 12:21:02 +0100
Subject: [PATCH] Misc ARIA improvements
---
frontend/components/BottomRightPanel.js | 1 +
frontend/components/ExportBanner.js | 8 ++++----
frontend/components/FrontmatterInput.js | 3 ++-
frontend/components/ProcessTab.js | 5 ++++-
4 files changed, 11 insertions(+), 6 deletions(-)
diff --git a/frontend/components/BottomRightPanel.js b/frontend/components/BottomRightPanel.js
index df7c8b2a2c..40fe5ff245 100644
--- a/frontend/components/BottomRightPanel.js
+++ b/frontend/components/BottomRightPanel.js
@@ -123,6 +123,7 @@ export let BottomRightPanel = ({
? null
: html`
-
+
Preview
<${FeaturedCard}
entry=${
diff --git a/frontend/components/ProcessTab.js b/frontend/components/ProcessTab.js
index b9785023ca..8da46878e2 100644
--- a/frontend/components/ProcessTab.js
+++ b/frontend/components/ProcessTab.js
@@ -190,6 +190,8 @@ const StatusItem = ({ status_tree, path, my_clock_is_ahead_by, nbpkg, backend_la
}
}
+ const can_open = Object.values(mystatus.subtasks).length > 0
+
return path.length === 0
? inner
: html`
0,
+ can_open,
})}
+ aria-expanded=${can_open ? is_open : undefined}
>
{