Skip to content

Loop Video: interaction stories #14232

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

Merged
merged 4 commits into from
Jul 22, 2025
Merged

Conversation

domlander
Copy link
Contributor

@domlander domlander commented Jul 16, 2025

What does this change?

Add interaction stories for the Loop Video component.

Removes role="button" from the video element.

Why?

Increase test coverage.

Setting the role to button is more unhelpful than helpful to a user, given that the primary function of the video is not a button.

@domlander domlander self-assigned this Jul 16, 2025
@domlander domlander added run_chromatic Runs chromatic when label is applied fronts + curation and removed dotcom-rendering labels Jul 16, 2025
Copy link

github-actions bot commented Jul 16, 2025

@github-actions github-actions bot removed the run_chromatic Runs chromatic when label is applied label Jul 16, 2025
Copy link

github-actions bot commented Jul 16, 2025

@domlander domlander force-pushed the doml/loop-video-interaction-stories branch from b241809 to 06ef1e2 Compare July 16, 2025 20:16
@domlander domlander added the run_chromatic Runs chromatic when label is applied label Jul 16, 2025
@github-actions github-actions bot removed the run_chromatic Runs chromatic when label is applied label Jul 16, 2025
@domlander domlander force-pushed the doml/loop-video-interaction-stories branch from f35bca2 to fcb3412 Compare July 17, 2025 10:48
@domlander domlander force-pushed the doml/loop-video-interaction-stories branch from fcb3412 to b2a7934 Compare July 17, 2025 10:51
@domlander domlander added the run_chromatic Runs chromatic when label is applied label Jul 17, 2025
@domlander domlander marked this pull request as ready for review July 17, 2025 10:51
@@ -137,8 +137,8 @@ export const LoopVideoPlayer = forwardRef(
id={loopVideoId}
css={videoStyles(width, height)}
ref={ref}
role="button"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I initially added this as the video has click functionality - it pauses and plays the video. However, I think setting the role to button is more unhelpful than helpful to a user, given that the primary function of the video is not a button.

@github-actions github-actions bot removed the run_chromatic Runs chromatic when label is applied label Jul 17, 2025
@domlander domlander added the run_chromatic Runs chromatic when label is applied label Jul 17, 2025
@github-actions github-actions bot removed the run_chromatic Runs chromatic when label is applied label Jul 17, 2025
@domlander domlander added the run_chromatic Runs chromatic when label is applied label Jul 17, 2025
@github-actions github-actions bot removed the run_chromatic Runs chromatic when label is applied label Jul 17, 2025
@domlander domlander added the run_chromatic Runs chromatic when label is applied label Jul 17, 2025
@github-actions github-actions bot removed the run_chromatic Runs chromatic when label is applied label Jul 17, 2025
@domlander domlander requested a review from abeddow91 July 17, 2025 12:28
@domlander domlander added the run_chromatic Runs chromatic when label is applied label Jul 17, 2025
@github-actions github-actions bot removed the run_chromatic Runs chromatic when label is applied label Jul 17, 2025
@domlander domlander merged commit b27bedc into main Jul 22, 2025
34 checks passed
@domlander domlander deleted the doml/loop-video-interaction-stories branch July 22, 2025 09:11
@prout-bot
Copy link

Seen on PROD (merged by @domlander 10 minutes and 31 seconds ago) Please check your changes!

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