Skip to content

Commit

Permalink
remove delay
Browse files Browse the repository at this point in the history
  • Loading branch information
mmmavis committed Apr 30, 2024
1 parent 409d914 commit 402621d
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions source/js/components/nav/desktop-dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,12 @@ class NavDesktopDropdown extends Accordion {

open() {
super.open();
setTimeout(() => {
this.titleText.classList.add("large:tw-text-black");
this.titleText.classList.add("large:tw-border-black");
this.titleText.classList.remove("large:tw-border-transparent");
this.accordion.setAttribute("aria-selected", "true");
this.content.classList.remove("large:tw-opacity-0", "large:tw-invisible");
this.content.classList.add("large:tw-opacity-100", "large:tw-visible");
}, 150);
this.titleText.classList.add("large:tw-text-black");
this.titleText.classList.add("large:tw-border-black");
this.titleText.classList.remove("large:tw-border-transparent");
this.accordion.setAttribute("aria-selected", "true");
this.content.classList.remove("large:tw-opacity-0", "large:tw-invisible");
this.content.classList.add("large:tw-opacity-100", "large:tw-visible");

if (this.isDropdownWayfindingActive === "true") {
this.handleWayfindingOpenStyles();
Expand Down

0 comments on commit 402621d

Please sign in to comment.