Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

refactor a11y-behaviors to account for options in simple colors #3

Open
btopro opened this issue Jun 20, 2018 · 0 comments
Open

refactor a11y-behaviors to account for options in simple colors #3

btopro opened this issue Jun 20, 2018 · 0 comments

Comments

@btopro
Copy link
Contributor

btopro commented Jun 20, 2018

https://github.com/LRNWebComponents/a11y-behaviors/blob/master/a11y-behaviors.html#L18 more specifically. It would be good to validate this function and ensure that whenever a color is selected for background that a safe text color can be requested via function. video-player and other tags that implement the accessible color swap capability will allow the user to pick a color and then calculate what text color to use. Some manner (either this function or just a simple class alternating based on light / dark theme) should be enough to ensure that this happens.

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

No branches or pull requests

1 participant