Making Hotspots Focusible

Q&A about the latest versions
Post Reply
Curtisio
Posts: 35
Joined: Wed Jan 09, 2013 8:29 pm

Hello,

Has anyone got a good method to make hotspots focusable for better accessibility?

Thanks.
Curtisio
Posts: 35
Joined: Wed Jan 09, 2013 8:29 pm

Maybe looping through the hotspots and adding ARIA role=“button” might work?

I'll try tomorrow.
Curtisio
Posts: 35
Joined: Wed Jan 09, 2013 8:29 pm

Hopki

There's a typo in the JavaScript reference

Code: Select all

javascript:"";
player.("imagesready", function() {
alert("Panorama loaded!");
});
should be

Code: Select all

javascript:"";
player.on("imagesready", function() {
alert("Panorama loaded!");
});
Last edited by Curtisio on Fri Jul 09, 2021 1:18 pm, edited 2 times in total.
Curtisio
Posts: 35
Joined: Wed Jan 09, 2013 8:29 pm

YES !!! Once the panorama is loaded a little JS to loop through the hotspots to add aria role=button and tabindex works OK. They still don't all tab in the order in the DOM but it's definitely better for accessibility.
User avatar
Hopki
Gnome
Posts: 13005
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

HI Curtisio,
Thanks for the heads up, we will correct as necessary.
Regards,
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
PaulB
Posts: 17
Joined: Tue Mar 30, 2021 4:07 pm

Hi, can anyone explain how this is achieved? what code needs to be added where to make hotspots focussable?

Thanks
Paul
Post Reply