UNPKG

@reaktly-js/tone-accessibility

Version:

A vanilla JS Accessability Widget compliant with ADA and WCAG 2.2.

26 lines (25 loc) 763 B
/** * @class TextSpacing * @extends HTMLElement * @description A custom element providing a clickable card to cycle through global * text spacing settings (letter and word spacing). It applies a data attribute to the <html> element. * It reuses the <tone-card> and <tone-card-content> design. */ export declare class TextSpacing extends HTMLElement { private shadow; private currentModeIndex; private toneCard; private toneCardContent; constructor(); connectedCallback(): void; disconnectedCallback(): void; private attachListeners; private removeListeners; private handleClick; private applyMode; private loadState; private handleReset; private saveState; private updateUI; private render; }