Page 1 of 1

Making Hotspots Focusible

Posted: Thu Jul 08, 2021 9:28 pm
by Curtisio
Hello,

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

Thanks.

Re: Making Hotspots Focusible

Posted: Thu Jul 08, 2021 9:54 pm
by Curtisio
Maybe looping through the hotspots and adding ARIA role=“button” might work?

I'll try tomorrow.

Re: Making Hotspots Focusible

Posted: Fri Jul 09, 2021 9:30 am
by Curtisio
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!");
});

Re: Making Hotspots Focusible

Posted: Fri Jul 09, 2021 10:16 am
by Curtisio
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.

Re: Making Hotspots Focusible

Posted: Fri Jul 09, 2021 1:12 pm
by Hopki
HI Curtisio,
Thanks for the heads up, we will correct as necessary.
Regards,

Re: Making Hotspots Focusible

Posted: Fri Jun 10, 2022 1:27 pm
by PaulB
Hi, can anyone explain how this is achieved? what code needs to be added where to make hotspots focussable?

Thanks
Paul