@area17/a17-helpers
Advanced tools
Changelog
3.1.0
setFocusOnTarget
focusTrap
isVisible
getFocusableElements
listeners
(listeners.add()
and listeners.remove()
)nl2br
removeEmoji
removeHTMLentities
removeNoneASCIICharacters
removeNonePrintableCharacters
replaceAccentedCharacters
Along with tests for each.
Changelog
3.0.3
resized
: attempt to fire a resize
(and so resized
and mediaQueryUpdated
) events on Firefox text scaling - which doesn't fire a native resize
event. This was an issue because as you text scale, you will also likely be changing your visible breakpoint, as you go up in text size, you'll likely go down in breakpoint.Changelog
3.0.2
ios100vhFix
: get the greater of document.documentElement.clientHeight versus window.innerHeight to fix incorrect height when the browser UI is hiding on iOS15 and above.Changelog
3.0.0
oritentationChangeFix
renamed to orientationChangeFix
.manageBehaviors
and createBehaviors
- behaviors and behavior management has been split out into its own library A17-Behaviors.fontLoadObserver
- use https://github.com/zachleat/fontfaceonloadlazyLoad
- use https://www.npmjs.com/package/@area17/a17-lazyloadfocusTrap
and setFocusOnTarget
will clean up its tabindex
attribute if they had to set it to focusgetMetaContentByName
returns null of no meta tag foundcookieHandler
copyTextToClipboard
debounce
focusDisplayHandler
focusTrap
getMetaContentByName
getOffset
ios100vhFix
isBreakpoint
orientationChangeFix
resized
setFocusOnTarget
ajaxRequest
jsonpRequest
messages
responsiveImageUpdate
sendEventToSegmentio
store
Changelog
2.1.4
getCurrentMediaQuery
now replaces out " in returned current breakpoint CSS variableisBreakpoint
can now accept a list of breakpoints to check against (doesn't need a global)