UNPKG

@stormid/cookie-banner

Version:

GDPR compliant cookie banner

10 lines (8 loc) 455 B
/* istanbul ignore file */ export const ACCEPTED_TRIGGERS = ['button', 'a']; export const FOCUSABLE_ELEMENTS = ['a[href]', 'area[href]', 'input:not([disabled]):not([type=hidden])', 'select:not([disabled])', 'textarea:not([disabled])', 'button:not([disabled])', 'iframe', 'object', 'embed', '[contenteditable]', '[tabindex]:not([tabindex="-1"])']; export const EVENTS = { SHOW: 'banner.show', HIDE: 'banner.hide', CONSENT: 'banner.consent' };