Skip to content

Conversation

0xC0A1
Copy link

@0xC0A1 0xC0A1 commented Dec 16, 2020

This pull request adds proper accessibility tags for the following buttons:

  • Play/Pause
  • Toggle full-screen view

@@ -5,6 +5,13 @@ import { getPlayerStateIcon } from "./utils";
import { Props } from "./MediaControls";
import { PLAYER_STATES } from "./constants/playerStates";

const getAccessibilityProps = (playerState: PLAYER_STATES) => ({
Copy link
Owner

Choose a reason for hiding this comment

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

I don't think this function is necessary. do you mind to move these props into the component itself? That would help to read the component props faster instead of jumping between declarations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants