UNPKG

ngx-extended-pdf-viewer

Version:

Embedding PDF files in your Angular application. Highly configurable viewer including the toolbar, sidebar, and all the features you're used to.

24 lines (23 loc) • 955 B
/** * #3295 The ARIA attributes of a shy button. The toolbar button and its entry in the secondary * menu both use this function, so screen readers announce them the same way. * * Each state only where it applies: aria-expanded only on a button that opens something, * aria-checked only on a radio, aria-pressed only on a toggle button. */ export interface ShyButtonAria { role: string | null; expanded: 'true' | 'false' | null; checked: 'true' | 'false' | null; pressed: 'true' | 'false' | null; haspopup: string | null; controls: string | null; } export interface ShyButtonAriaInput { toggled: boolean; toggleButton?: boolean | undefined; role?: string | undefined; ariaHasPopup?: boolean | 'true' | 'menu' | 'dialog' | undefined; ariaControls?: string | undefined; } export declare function shyButtonAria({ toggled, toggleButton, role, ariaHasPopup, ariaControls }: ShyButtonAriaInput): ShyButtonAria;