Skip to content
Snippets Groups Projects
Unverified Commit ef3f3409 authored by Alexis BENOIT's avatar Alexis BENOIT Committed by GitHub
Browse files

[a11y] Recherche : focus sur bouton et nettoyage (#782)

parent 2abe6c69
No related branches found
No related tags found
No related merge requests found
/* eslint-disable no-undef */
import { a11yClick, ariaHideBodyChildren } from '../utils/a11y';
import { isMobile } from '../utils/breakpoints';
import { ariaHideBodyChildren } from '../utils/a11y';
import { focusTrap } from '../utils/focus-trap';
const CLASSES = {
......@@ -153,6 +152,8 @@ class Search {
this.input.focus();
} else {
document.body.style.overflow = 'unset';
this.button.focus();
this.accessibleMessageContainer.innerHTML = '';
}
ariaHideBodyChildren(this.element, open);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment