possibly fix popup issues on mobile safari

This commit is contained in:
2025-07-26 10:48:18 +02:00
parent f70f421087
commit 0449fc6baa
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ projects.sort((a, b) => a.data.name.localeCompare(b.data.name));
</button>
<div popover id={`project-${[index]}`} class="window popup" aria-label={`Details about ${project.data.name}`} data-title={project.data.name}>
<div class="buttons">
<button popovertarget={`project-${[index]}`} popovertargetaction="hide" aria-label="Close project details">
<button popovertarget={`project-${[index]}`} popovertargetaction="hide" tabindex="0" aria-label="Close project details">
<span class="icon">❌</span>
</button>
</div>
+2 -2
View File
@@ -38,13 +38,13 @@ const permalink = Astro?.site?.href ?? '/';
<div class="window-row">
<div class="window" data-title="Projects" id="projects" aria-label="Projects">
<div class="buttons">
<button popovertarget="projects-info" popovertargetaction="show" aria-label="Projects info">
<button popovertarget="projects-info" popovertargetaction="show" tabindex="0" aria-label="Projects info">
<span class="icon">️</span>
</button>
</div>
<div popover="auto" id="projects-info" class="window">
<div class="buttons">
<button popovertarget="projects-info" popovertargetaction="hide" aria-label="Close projects info">
<button popovertarget="projects-info" popovertargetaction="hide" tabindex="0" aria-label="Close projects info">
<span class="icon">❌</span>
</button>
</div>