Closed hirasso closed 1 year ago
Closes #42
Description
Allows to customize the focus for a visit per fragment rule, if Accessibility Plugin is installed.
This will not move the focus at all:
{ focus: false }
Exception: If the currently focused element will be replaced during the visit, the focus will automatically be moved to the body by the browser.
body
This will move the focus to the first element matching #my-element:
#my-element
{ focus: '#my-element' }
Checks
master
npm run lint
Looking great! 🍾 Just found a tiny typo, added a comment.
Closes #42
Description
Allows to customize the focus for a visit per fragment rule, if Accessibility Plugin is installed.
This will not move the focus at all:
Exception: If the currently focused element will be replaced during the visit, the focus will automatically be moved to the
body
by the browser.This will move the focus to the first element matching
#my-element
:Checks
master
branchnpm run lint
)