-
Notifications
You must be signed in to change notification settings - Fork 30
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
Conversation
b241809
to
06ef1e2
Compare
f35bca2
to
fcb3412
Compare
fcb3412
to
b2a7934
Compare
@@ -137,8 +137,8 @@ export const LoopVideoPlayer = forwardRef( | |||
id={loopVideoId} | |||
css={videoStyles(width, height)} | |||
ref={ref} | |||
role="button" |
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.
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.
Seen on PROD (merged by @domlander 10 minutes and 31 seconds ago) Please check your changes! |
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.