Skip to content
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

Remove placeholder image from billboard #11625

Merged
merged 3 commits into from
May 15, 2024

Conversation

karinathomasbbc
Copy link
Collaborator

@karinathomasbbc karinathomasbbc commented May 14, 2024

Overall changes

Removes the background / placeholder image from the billboard when the image is transparent

Before:
Screenshot 2024-05-14 at 15 53 05

Code changes

  • Pass placeholder from Billboard -> MaskedImage - Image component

After:

Screenshot 2024-05-14 at 16 04 16

Testing

  • Storybook
  • Hindi Homepage (local with live data)

@karinathomasbbc karinathomasbbc self-assigned this May 14, 2024
@karinathomasbbc karinathomasbbc marked this pull request as ready for review May 14, 2024 15:03
@@ -14,11 +14,13 @@ const MaskedImage = ({
imageUrlTemplate,
imageWidth,
altText = '',
showPlaceholder = true,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I wonder if this should be defaulted to true or not. The default for the Image component is true so an undefined value will become true... 🤔

placeholder = true,

Copy link
Contributor

Choose a reason for hiding this comment

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

I think its ok to have it default to true here since it has been true anyway as you say.

Copy link
Contributor

@shayneahchoon shayneahchoon left a comment

Choose a reason for hiding this comment

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

Looks really stylish!

@karinathomasbbc karinathomasbbc merged commit c5ed06b into latest May 15, 2024
11 checks passed
@karinathomasbbc karinathomasbbc deleted the remove-placeholder-image-from-billboard branch May 15, 2024 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants