Skip to content

🐛 [amp story shopping] shopping CTA label fix#37502

Merged
processprocess merged 1 commit intoampproject:mainfrom
processprocess:shopping-label
Jan 27, 2022
Merged

🐛 [amp story shopping] shopping CTA label fix#37502
processprocess merged 1 commit intoampproject:mainfrom
processprocess:shopping-label

Conversation

@processprocess
Copy link
Copy Markdown
Contributor

Building the attachment was refactored as part of #37278 to be a separate component and introduced a regression which was not caught since Percy diffs were broken at the time of submitting the PR. this.element is now a reference to amp-story-page-outlink or amp-story-page-attachment and never amp-story-shopping-attachment.

This PR checks the parent element to see if it's an amp-story-shopping-attachment to create the appropriate label.

@amp-owners-bot
Copy link
Copy Markdown

Hey @gmajoulet, @newmuis, @mszylkowski! These files were changed:

extensions/amp-story-page-attachment/0.1/amp-story-open-page-attachment.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants