Skip to content
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

Allow for consumers to control whether or not styles are added to cues #39

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

evanfarina
Copy link
Contributor

It is difficult and somewhat annoying to override inline styles that are being set on the cues. This PR still provides consumers with the styles that VTT feels are most accessible, but makes their application optional. Consumers, if they pass an option, will be notified via callback function when cue styles can be applied; the callback will receive a single argument, a hash of style properties to values, which it can use to set styles on its own.

Base automatically changed from master to main January 22, 2021 18:43
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.

1 participant