"colours" button remains lit while menu is open
This commit is contained in:
parent
85d616a828
commit
d3c35e7b8c
|
@ -50,6 +50,7 @@ export function bind() {
|
||||||
const dropdown = document.getElementById("colours-dropdown");
|
const dropdown = document.getElementById("colours-dropdown");
|
||||||
|
|
||||||
colours_toggle.addEventListener("click", () => {
|
colours_toggle.addEventListener("click", () => {
|
||||||
|
colours_toggle.classList.toggle("active");
|
||||||
dropdown.classList.toggle("active");
|
dropdown.classList.toggle("active");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -91,10 +91,6 @@ header a {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
a#colours {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
ul#colours-dropdown {
|
ul#colours-dropdown {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 2.5em;
|
top: 2.5em;
|
||||||
|
|
Loading…
Reference in a new issue