Skip to content

Commit 9b25aeb

Browse files
Devyani JainCopilot
andcommitted
fix: make dynamically loaded dots hoverable and clickable
Remove el.disabled=true/false from dot buttons — CSS pointer-events:none on the color class already blocks unsubmitted dots; setting disabled on a <button> blocks platform-level mouse events even after re-enabling, which is why loadSubmittedDots-hydrated dots were non-interactive. Unsubmitted dots now rely purely on CSS pointer-events:none + tabIndex=-1. Submitted dots (via form submission or loadSubmittedDots) get dot--submitted class which applies pointer-events:auto via the existing CSS rules. Also closed inbox issues #3 (Rachel), #4 (old April), #5 (Ricky) so only April's latest submission (#6, with public feedback) shows as a dot. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 02919104-34f1-44e8-91db-7bfd688b1b6e
1 parent f247ffa commit 9b25aeb

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

index.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,6 @@ <h3 class="h3">This art inspiration</h3>
514514
el.addEventListener('mouseenter', () => showTooltip(dot, el));
515515
el.addEventListener('mouseleave', hideTooltip);
516516
} else {
517-
el.disabled = true;
518517
el.setAttribute('aria-hidden', 'true');
519518
el.tabIndex = -1;
520519
}
@@ -832,7 +831,6 @@ <h3 class="h3">This art inspiration</h3>
832831
const el = document.getElementById('dot-' + target.id);
833832
if (el) {
834833
el.classList.add('dot--submitted');
835-
el.disabled = false;
836834
el.removeAttribute('aria-hidden');
837835
el.tabIndex = 0;
838836
el.setAttribute('aria-label', `View feedback from ${target.f.n}`);
@@ -1010,7 +1008,6 @@ <h3 class="h3">This art inspiration</h3>
10101008
const el = document.getElementById('dot-' + dot.id);
10111009
if (el) {
10121010
el.classList.add('dot--submitted');
1013-
el.disabled = false;
10141011
el.removeAttribute('aria-hidden');
10151012
el.tabIndex = 0;
10161013
el.setAttribute('aria-label', `View feedback from ${dot.f.n}`);

0 commit comments

Comments
 (0)