0

i have page with iframe in the iframe when i click the button, popup will appear when talback or voiceover is enabled, is it possible to focus trap only in the popup ? so is it possible to achieve that i will be not able to move outside of the popup using swipe gesture ? by outside i mean, than i will be not able to reach address bar or any other part of site or browser.

i found this https://medium.com/@islam.sayed8/trap-focus-inside-a-modal-aa5230326c1b but thats not working on mobile

am i right that its not possible as talback/voiceover are system functions ?

thanks

macho
  • 91
  • 1
  • 12
  • https://a11y-guidelines.orange.com/en/mobile/ios/development/#modal-view and https://a11y-guidelines.orange.com/en/mobile/ios/development/#focus-an-element may help you according to what I understood in your question. – XLE_22 Mar 20 '21 at 06:40
  • thanks, but i need this also for talkback for android, so i want to do this in javascript (if its possible), i guess its not possible. – macho Mar 22 '21 at 07:22
  • Have you tried using [`inert`](https://developer.mozilla.org/docs/Web/API/HTMLElement/inert) in addition to `tabindex="-1"`? – Andy Oct 14 '22 at 12:04
  • I just found a similar question. Apparently, setting `aria-hidden` on the topmost element outside the dialog solves the issue? https://stackoverflow.com/questions/53561764/trap-focus-with-in-popup-modal-only-ios-voiceover – Andy Oct 24 '22 at 08:24

0 Answers0