Skip to content
Snippets Groups Projects
Commit 232b444b authored by Chris Lawton's avatar Chris Lawton
Browse files

re-add modifier to header to be able to change header icon colours

parent 3461b2df
No related branches found
No related tags found
No related merge requests found
...@@ -20,6 +20,9 @@ class Search { ...@@ -20,6 +20,9 @@ class Search {
// swap the icons // swap the icons
this.node[0].querySelector('.header__icon--open-search').classList.toggle('is-hidden'); this.node[0].querySelector('.header__icon--open-search').classList.toggle('is-hidden');
this.node[0].querySelector('.header__icon--close-search').classList.toggle('is-unhidden'); this.node[0].querySelector('.header__icon--close-search').classList.toggle('is-unhidden');
// add modifier to header to be able to change header icon colours
document.querySelector('.header').classList.toggle('search-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