-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make amp-carousel always show controls in emails #25714
Conversation
ea346fa
to
ba935e6
Compare
I feel like this should be done in a generic way, at some level asking the viewer if they support swipe. There are other components that may need the same treatment. Another option is to enforce the usage of the /cc @dvoytenko |
I like this. Maybe even a doc-level parameter that overrides This not just solves the issue for email (since email clients control the viewer and can choose to override this), but also helps test mouse-related functionality for developers.
This was my first idea, but it breaks existing emails and templates and puts needless burden on developers. I'd rather we solve this on runtime or viewer level if at all possible. |
I'm pretty sure that has already been done at some point before. For instance, don't we always show carousel controls on desktop? |
Carousel 0.1 uses It seems like carousel is the only AMP-internal thing using |
They don't show on my Linux laptop that has a touchscreen.
This isn't sufficient I think - I just checked, my laptop has both Now that Gmail is rolling out mobile support, I'd merge this PR as a temporary solution for #25713. I'm happy to revert it when we have a better way to do it, e.g. via a viewer capability, but I'd like to avoid carousels breaking on mobile as more users start getting AMP emails there and we haven't communicated proactively enough about this feature. |
* master: (54 commits) inabox-resources: Minor test improvement (ampproject#26916) DocInfo: replace metaTags with viewport in API (ampproject#26687) 🐛 SwG now uses AMP sendBeacon interface (ampproject#26970) 🏗 Allow array destructuring on preact hooks (ampproject#26901) Gulp Dep Check: fail on unused entries (ampproject#26981) Update no-import lint rule to forbid sub-paths (ampproject#26531) 🐛 amp-ad type blade - fix bladeOnLoad callback (ampproject#26627) 📖 Clarify when max-age is required (ampproject#26956) ♻️ Consolidate players as .i-amphtml-media-component (ampproject#26967) Add Preact Enzyme tests (ampproject#26529) Fixes `update_tests` flag on `gulp validator` (ampproject#26965) 📦 Update dependency google-closure-library to v20200224 (ampproject#26986) 🏗 Transform aliased configured components (ampproject#26541) ✨ InaboxResources: Observe intersections for some elements' viewportCallbacks (ampproject#26942) variable substitutions: Support allowlist lookup in AmpDocShadow (ampproject#26731) cl/297197875 Revision bump for ampproject#26877 (ampproject#26982) Json fix (ampproject#26971) 📦 Update dependency mocha to v7.1.0 (ampproject#26976) Add documentation for amp-access-scroll (ampproject#26782) make controls always shown in amp for email (ampproject#25714) ...
Fixes #25713