Creates the AxFocusFixDirective
the global document
variable
a reference to the host element
used to listen to the current route
the global window
variable
Sets the aria-hidden
attribute of the host element.
the global document
variable
a reference to the host element
used to listen to the current route
A reference to the router subscription created in skipIfHome.
A reference to the scroll subscription created in ngOnInit.
This directive will not affect skipped routes.
the global window
variable
Removes subscription to scroll when the host component is removed.
Set host element to visible by screen readers on tab keypress.
the keypress event object
On tab keyup, If: the host element is not focused, then set it to hidden for screen readers Otherwise: scroll to the top of the page.
the keyup event object
On scroll set the host element to hidden only if the page has scrolled.
Sets the host's aria-hidden
to true if skipRoute is not enabled.
This directive only applies to the home route
Generated using TypeDoc
This makes the Chrome accesibility audit pass for AX_FOCUS_01.
------------------------------------------
aria-hidden="true"
when they are not visible or clickable.