[Story] CTAs in Web Stories should be limited to reasonable sizes
Some Stories end up with a single tap target that cover a large part of the page, making the Story harder to consume e.g. page five in this Story.
We should ensure that a CTA tap target does not trigger if it covers more than X% of the screen (to be defined by UX) or if it falls outside the permissible interaction area.
Further improvements (for discussion) might include making this situation a validation failure, and ensuring that only visually distinct elements can have a tap target.
@hongcatlover @newmuis
Agree the problem needs solving; we'll need to brainstorm on the solution space.
I take it that these cases are intentionally seeking this user experience, so we'd need something robust enough to prevent someone who's seeking it out. e.g. even if each CTA can only take max 50% width or height, you could still fill the screen with 4 such CTAs.
Open to ideas here, but I think at the very least we could:
- Increase the gutter size on the pre-tap state (i.e. tapping within X pixels of the left/right edge of the screen should advance you to the next page even when the whole page is a tap target)
- Increase the navigation tap target size in the post-tap state (i.e. while the tooltip is active, the user is shown left and right arrows; independently of making the arrow UI more prominent, we could invisibly make the tap target area larger)
- Make the post-tap arrows more prominent
Since these are system-controlled, we can change this without having any effect on publisher stories (although for (1), maybe we need to make sure that the entire tap target is not in the gutter).
We can also make changes to publisher-facing APIs, like you suggest:
- Enforce a maximum width/height of clickable elements. This might be difficult because it can break designs for perfectly valid scenarios.
- Enforce a maximum area of clickable elements. This gives some flexibility (a long skinny CTA button across the bottom? a more square CTA?) but it's very hard to reason about and would potentially differ across devices.
- Only allow a fixed, enumerated set of CTA sizes (small circle for products, CTA button along the bottom, etc). This seems very very limiting, and would be a large deprecation effort; I don't think this seems wise.
All of these still suffer from the problem that unless you also set calculated limits on the number of CTAs, you could just stack a bunch of CTAs to still cover the whole area of the page.
The validator can't make good assertions about layout because we allow CSS. Separately, I consider it technically infeasible to determine (even at runtime) whether an element is visually distinct.
Didn't mean to close this 🤦♂️
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.