Skip to content
This repository has been archived by the owner on Aug 13, 2023. It is now read-only.

Moving image sizes attribute to source tags #4626

Merged
merged 5 commits into from
Feb 15, 2022

Conversation

amoore108
Copy link
Contributor

@amoore108 amoore108 commented Feb 15, 2022

Resolves #9858

Overall change: Adds the sizes attribute to the <source /> tags for our images. This was previously on the <img /> tag, which meant that the <source /> tags couldn't determine which size of image to use

Code changes:

  • Updates the psammead-image component to set the sizes attributes on <source /> tags instead of the fallback <img /> tag

  • (BBC contributors only) This PR follows the repository use guidelines
  • I have assigned myself to this PR and the corresponding issues
  • Automated jest tests added (for new features) or updated (for existing features)
  • This PR requires manual testing

@amoore108 amoore108 self-assigned this Feb 15, 2022
Copy link
Contributor

@MuhammadAHussain MuhammadAHussain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@amoore108 amoore108 merged commit 3d32878 into latest Feb 15, 2022
@amoore108 amoore108 deleted the image-sizes-attribute-fix branch April 13, 2022 12:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Story Promo Component Downloading Oversized Images
3 participants