Refactor overlay maximize feedback and improve accessibility

Removes the status message when maximizing the overlay, as the state change is visually clear. Updates comments to clarify that accessibility information is still provided via alt text for screen readers and tooltips.
This commit is contained in:
Nicholas 2025-08-04 22:23:03 -03:00
parent 82bf8a3c3e
commit 533494c790
2 changed files with 3 additions and 8 deletions

File diff suppressed because one or more lines are too long

View file

@ -438,19 +438,14 @@ function buildOverlayMain() {
}
// ==================== ACCESSIBILITY AND USER FEEDBACK ====================
// Update accessibility information and provide user feedback
// Update accessibility information for screen readers and tooltips
// Update alt text to reflect current state for screen readers and tooltips
img.alt = isMinimized ?
'Blue Marble Icon - Minimized (Click to maximize)' :
'Blue Marble Icon - Maximized (Click to minimize)';
// Provide status feedback only when maximizing (avoid clutter in minimized state)
// This gives users confirmation that the action was successful
if (!isMinimized) {
const statusMessage = 'Overlay maximized - All controls restored';
instance.handleDisplayStatus(statusMessage);
}
// No status message needed - state change is visually obvious to users
});
}
).buildElement()