-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
🐛 [Story attachment] Fix cta-image=none showing link icon #38109
Conversation
…of github.com:ampproject/amphtml
Hey @gmajoulet, @newmuis! These files were changed:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for catching, fixing and adding the unit test.
Can you link the bug report, with real world Story examples? Is amphtml/extensions/amp-story/validator-amp-story.protoascii Lines 908 to 914 in c813c13
|
The bug was reported on Slack (so no issue I think), and could be tested with the local story The validation seems to confirm the attribute set to "none" is valid, though I don't know exactly where this validation rule comes from. https://validator.ampproject.org/ seems to agree that it's valid AMP.
|
The cta-image=none on outlinks should hide the link icon, but due to a regression on #36706 the link icon was being shown. This PR hides the icon if cta-image=none for the open-page-attachment UI.
Added tests to verify this behavior so it's not broken in the future.
It now works (vis diff for no-image CTA was wrong before):