You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Online

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

#107394 area map

Posted in ‘Mediabox’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by Ryan on Wednesday, 14 April 2021 11:32 BST

teamkipp
Hi,

I´m working an a side where area maps are used to open images in a popup window. The problem is that if the popup is closed the part of the area map which had been selected now is in focus, meaning there is an outline around this part of the area. I could blend that out setting focus outline and border to 0 in the css file, working for Edge and Chrome but not for Firefox which always shows the dotted line indicating the focus.

I tried every css solution I found but it didn´t work, is it maybe possible to prevent the popup to return the focus to the area map? Or maybe there´s another solution I did miss?

here an example
https://bit.ly/2Q1SUPf

regards
Greta

Ryan
I tried every css solution I found but it didn´t work, is it maybe possible to prevent the popup to return the focus to the area map? Or maybe there´s another solution I did miss?


Focus is returned to the area tag for accessability, so a user could tab to the next area tag, as focus it removed by the popup, so removing it is not really an option.

I can see on stackideas that others have also tried in vain to remove it using css, so I guess this should be classed as a Firefox bug.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

teamkipp
Hi Ryan,

thanks for your answer!

But now we have another problem, we also noticed that on smaller resolutions the popup content will be cut off at the bottom. This occurs when the image is in protrait format and the image descrption is detailed, is there a solution to avoid the cropping?

the first image here:

https://bit.ly/324FG7h

Ryan
I've been struggling with this issue for some time, and have not been able to find an adequate solution. It occurs on popups with a long description text.

I've made a small change in Mediabox 2.1.2 RC7 that in some tests gives a good result. You can download it here - https://www.joomlacontenteditor.net/downloads/mediabox/development

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.