This repository has been archived by the owner on Jan 9, 2023. It is now read-only.
Correctly sets YouTube atom data attributes #256
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this change?
This PR aims to fix a user reported issue with the Teleporter
Copy Embed Link
behaviour for YouTube atoms. The way the current data attributes are configured means the outputted link is incorrect. Thedata-atom-id
should be set to the id of the media atom and thedata-atom-type
should be set to "media".This change is designed to account for the issues a change to the interface might cause by making the new property optional. The upgrade is also only significant for DCR, as this is what Teleporter uses.
How to test
I have attempted to test this using npm link but I found the video player didn't work with or without my change. It does however work when the package isn't linked. I would be interested in pairing on testing this if anyone knows where I'm going wrong.
How can we measure success?
Users can press the
Copy Embed Link
button in Teleporter and be confident it will work as expected.Have we considered potential risks?
Any change to the interface can be frustrating to implement in each of the consumers. This change attempts to mitigate problems by making the necessary parameter optional.
Accessibility