From 86037747782bab5483fde1e0644fd5c9471058df Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Fri, 24 Jan 2025 18:52:24 +0100 Subject: [PATCH] chore: do not use hx for non structural headings --- umap/static/umap/js/modules/caption.js | 6 +++--- umap/static/umap/map.css | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/umap/static/umap/js/modules/caption.js b/umap/static/umap/js/modules/caption.js index ecda2cc0..30113708 100644 --- a/umap/static/umap/js/modules/caption.js +++ b/umap/static/umap/js/modules/caption.js @@ -8,9 +8,9 @@ const TEMPLATE = `

-
-

-
+

+

+
diff --git a/umap/static/umap/map.css b/umap/static/umap/map.css index aeaa125f..e91e2788 100644 --- a/umap/static/umap/map.css +++ b/umap/static/umap/map.css @@ -697,6 +697,11 @@ a.umap-control-caption, .umap-caption .header i.icon { flex-shrink: 0; } +.umap-caption hgroup p, +.umap-caption hgroup button { + margin: 0; + padding: 0; +} .umap-browser .main-toolbox { padding-left: 4px; /* Align with toolbox below */ border-top: 1px solid var(--color-mediumGray);