@reaktly-js/tone-accessibility
Version:
A vanilla JS Accessability Widget compliant with ADA and WCAG 2.2.
9 lines (8 loc) • 418 B
TypeScript
/**
* @function applyFiltersToHtmlAndMediaElements
* @description Reads the current `data-tone-appearance` and `data-tone-saturation`
* attributes from the html element and applies the combined CSS filter
* to the html element and media (img, video, canvas) elements.
* This function should be called whenever either data attribute changes.
*/
export declare function applyFiltersToHtmlAndMediaElements(): void;