Skip to content

Commit

Permalink
revert changes for desktop
Browse files Browse the repository at this point in the history
  • Loading branch information
mmmavis committed May 1, 2024
1 parent 2313d23 commit 432b499
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{% fragment as content_base_styles %}tw-py-0 tw-px-0 tw-gap-8 tw-overflow-y-auto tw-transition-all tw-duration-500{% endfragment %}
{% fragment as dropdown_selector_base %}tw-flex tw-flex-row tw-items-center tw-justify-between tw-w-full tw-py-12 tw-px-8 tw-gap-4{% endfragment %}

{% fragment as content_desktop %}large:tw-max-w-[1250px] xlarge:tw-max-w-[1350px] 2xl:tw-max-w-[1600px] large:tw-w-full large:tw-px-24 large:tw-grid large:tw-duration-100 large:tw-invisible large:tw-opacity-0{% endfragment %}
{% fragment as content_desktop %}large:tw-max-w-[1250px] xlarge:tw-max-w-[1350px] 2xl:tw-max-w-[1600px] large:tw-w-full large:tw-px-24 large:tw-hidden{% endfragment %}
{% fragment as content_desktop_border %}large:tw-border large:tw-border-gray-20{% endfragment %}
{% comment %} 40 (5rem) is the height of the navbar {% endcomment %}
{% fragment as content_desktop_positioning %}large:tw-fixed large:tw-top-40 large:tw-left-0 large:tw-right-0 large:tw-mx-auto{% endfragment %}
Expand Down
9 changes: 4 additions & 5 deletions source/js/components/nav/desktop-dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,8 @@ class NavDesktopDropdown extends Accordion {
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");

this.content.classList.add("large:tw-grid");
this.content.classList.remove("large:tw-hidden");
if (this.isDropdownWayfindingActive === "true") {
this.handleWayfindingOpenStyles();
}
Expand Down Expand Up @@ -94,8 +93,8 @@ class NavDesktopDropdown extends Accordion {
this.titleText.classList.remove("large:tw-border-black");
this.titleText.classList.add("large:tw-border-transparent");
this.accordion.setAttribute("aria-selected", "false");
this.content.classList.remove("large:tw-opacity-100", "large:tw-visible");
this.content.classList.add("large:tw-opacity-0", "large:tw-invisible");
this.content.classList.remove("large:tw-grid");
this.content.classList.add("large:tw-hidden");
if (this.isDropdownWayfindingActive === "true") {
this.handleWayfindingClosedStyles();
}
Expand Down

0 comments on commit 432b499

Please sign in to comment.