-
Notifications
You must be signed in to change notification settings - Fork 230
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
Render amp-img
for AMP HTML version
#681
Labels
Milestone
Comments
sareh
added
Refinement Needed
This is ready for refinement. It shouldn't be worked on until it has been refined by Dev & Test.
AMP
Work related to AMP
labels
Sep 20, 2018
To save having a seperate context API for just amp we should pass the |
jtart
added
blocked
This issue should not be worked on until another internal issue is completed - see desc for details
and removed
Refinement Needed
This is ready for refinement. It shouldn't be worked on until it has been refined by Dev & Test.
labels
Sep 20, 2018
|
BogdanDogaru
removed
the
blocked
This issue should not be worked on until another internal issue is completed - see desc for details
label
Oct 17, 2018
Blocked pending resolving a possible bug in our AMP route (on our composition layer) |
jtart
added
the
blocked
This issue should not be worked on until another internal issue is completed - see desc for details
label
Oct 17, 2018
Superseded by #953. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
We currently render
<img>
elements for the AMP HTML pages. We should render<amp-img>
elements instead.Example URLs:
http://localhost:7080/news/articles/amp/c0000000027o AMP
http://localhost:7080/news/articles/c0000000027o Canonical
Describe the solution you'd like
We should use the
amp
prop in the Article Container. We could pass down the value as a prop, or we could use Context API.The current path our application logic takes is through these components:
[*corrected as per @pjlee11 's comment below]
The Image component file renders an
<img>
element.We should discuss whether it is worth using the Context API before a PR is opened for this work.
We should discuss whether we want an
component/AmpImage
or a parentcomponent/Image
that exports both anAmpImg
and aImg
.The choices made here will form the pattern for conditional rendering of alternate components, so it is worth discussing in depth.
We should particularly think about the re-usability of components and containers, when they are pulled out into a separate component library.
Testing
npm run test:ampValidate
should have no errors related to amp-imageThe text was updated successfully, but these errors were encountered: