"clicking" a focused button by pressing enter or double tapping with talkback with send an event with coordinates originating from 0, 0.
isInStoryPageSideEdge_
will return true
and navigate back as a result.
Test by opening page 4 of this story pressing tab until link1
is selected, then press enter.
We could read the location of the event target instead of the click.
Or we could make an exception if the click originates from 0, 0.
Discovered when testing a11y of #31552.
Screenshot of click origin when tabbing, clicking the !
button:
This bug is related to 30183
cc @ampproject/wg-stories
Note: once this is fixed it needs to be added as an a11y test in the manual QA.
Great catch!!
Making an exception for the (0, 0) case would be much easier than looking at the event target position, which would be a breaking change from how things work today, where an element can partially be in the protected zone but still be clickable.
Added the following manual QA checks:
Note: this was actually NOT added to our manual QA testing since a11y testing is not currently included in our instructions to testers and more work is needed to start a11y testing thoroughly.
Most helpful comment
Great catch!!
Making an exception for the (0, 0) case would be much easier than looking at the event target position, which would be a breaking change from how things work today, where an element can partially be in the protected zone but still be clickable.