amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

Enable responsive attributes generally in AMP?

Open dmanek opened this issue 6 years ago • 1 comments

Summary

amp-base-carousel uses ResponsiveAttributes to respond to media queries and invoke callbacks when the matching media query changes. While fixing #31042, we realized that this service is potentially useful, as might be the case with other extensions that need to react to media query changes. Should we look at enabling this generally in AMP?

dmanek avatar Nov 12 '20 18:11 dmanek

Done. Available via MediaQueryProps utility.

dvoytenko avatar Feb 16 '21 22:02 dvoytenko