Hello,
I noticed an accessibility issue with the Elfsight Accessibility widget on my website.
When running automated accessibility checks (LambdaTest), the floating accessibility button is flagged for:
Missing accessible name (aria-label)
SVG icon not marked as decorative (aria-hidden=“true”)
To temporarily resolve this, I implemented a JavaScript fix that adds an appropriate ARIA label (“Open accessibility settings”) and marks the SVG as decorative.
Here’s the simplified version of my workaround:
(function(){
function enhance(){
var portal = document.querySelector('#__EAPPS_PORTAL, [id^="__EAPPS_PORTAL"]');
if(!portal) return;
var btn = portal.querySelector('button');
if(!btn) return;
// Add accessible name
var lang = (document.documentElement.lang || 'it').toLowerCase();
var label = lang.startsWith('en')
? 'Open accessibility settings'
: 'Apri impostazioni di accessibilità';
btn.setAttribute('aria-label', label);
// Mark SVG as decorative
var svg = btn.querySelector('svg');
if(svg){
svg.setAttribute('aria-hidden','true');
svg.setAttribute('focusable','false');
var t = svg.querySelector('title, desc'); if(t) t.remove();
}
}
enhance();
new MutationObserver(enhance).observe(document.documentElement,{childList:true,subtree:true});
})();
Could you please confirm whether this accessibility improvement is planned for a future release?
It would be helpful to know when I can safely remove the custom fix and rely on the updated widget instead.
Could you please double-check it? If you still see a missing aria-label attribute without using a custom script, please send me a screenshot. We’ll gladly look into this further.
As for the SVG icon not marked as decorative, our devs will try to fix it and I’ll update you once it’s done
The thing is that currently the Seizure Safe mode disables only CSS animations. On your website, you’re using the JS animation, which is why it’s still in place with the Seizure Safe mode enabled.
Our devs are aware of these issues, and we do have plans to resolve it along with the “SVG icon not marked as decorative”. We can’t promise a soon fix, but as soon as we have any news, we’ll immediately inform you here