Open ciampo opened 1 month ago
Thanks for opening this issue! It was an unfortunate side-effect in #48664, but on balance appeared to be worth it for the performance and styling benefits of using a single iframe.
What we could do, is to:
Yes, effectively intercepting tabbing behaviour there and moving to the next / previous tabbable as appropriate seems to be about the most direct way to handle it I think.
Not sure how robust this approach would be, though.
Indeed, we'd likely need to test it quite carefully to make sure it's working as expected in all cases.
Originally posted by @ciampo in https://github.com/WordPress/gutenberg/issues/65047#issuecomment-2329250061
Yeah, I noticed that too — it was added in https://github.com/WordPress/gutenberg/pull/48664 by @andrewserong , who added this paragraph in the PR description:
We can't set
tabindex="-1"
on theiframe
either, because that should skip its contents entirely. What we could do, is to:onFocus
event listener on theiframe
, and:Not sure how robust this approach would be, though.