wnr / element-resize-detector

Optimized cross-browser resize listener for elements.
MIT License
1.32k stars 118 forks source link

ADA compliance issue: <object/> element is swipe-able #105

Closed nodeEnthu closed 5 years ago

nodeEnthu commented 5 years ago

I came across an issue where the <object tabindex="-1" type="text/html" data="about:blank" style="display: block; position: absolute; top: 0px; left: 0px; width: 100%; height: 100%; border: none; padding: 0px; margin: 0px; opacity: 0; z-index: -1000; pointer-events: none;"></object> becomes swipe-able using google talkback. Is there a way we can add aria-hidden=“true” attribute to the element

wnr commented 5 years ago

Absolutely! Would you like to create a PR?

nodeEnthu commented 5 years ago

cool .. let me give it a go ... thanks

nodeEnthu commented 5 years ago

here you go https://github.com/wnr/element-resize-detector/pull/106

nodeEnthu commented 5 years ago

@wnr .. could you please create a release with that fix

wnr commented 5 years ago

Release as 1.1.15 now. Thanks for the contribution!