-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Refactor dropwdown link for accessibility"
This reverts commit 8d8db5b.
- Loading branch information
Ben Morse
committed
Feb 16, 2024
1 parent
391de87
commit d703343
Showing
2 changed files
with
83 additions
and
148 deletions.
There are no files selected for viewing
78 changes: 48 additions & 30 deletions
78
network-api/networkapi/templates/fragments/buyersguide/category_dropdown.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,51 @@ | ||
{% load static wagtailcore_tags localization bg_nav_tags wagtailimages_tags i18n %} | ||
<div class="pni-category-dropdown tw-hidden tw-relative"> | ||
<button | ||
class=" | ||
tw-inline-flex | ||
pni-category-dropdown-button | ||
tw-bg-transparent | ||
tw-items-center | ||
tw-relative | ||
tw-pr-10 | ||
tw-py-4 | ||
tw-mr-auto | ||
tw-font-sans | ||
tw-font-bold | ||
tw-text-sm | ||
tw-group | ||
hover:tw-text-black | ||
tw-text-gray-40 | ||
" | ||
aria-controls="pni-category-dropdown-select" | ||
aria-expanded="false" | ||
aria-label="{% trans 'Open category dropdown' %}" | ||
data-aria-close-label="{% trans 'Close category dropdown' %}" | ||
> | ||
<span>{% trans "More Categories" %}</span> | ||
<svg aria-hidden="true" focusable="false" width="11" height="7" viewBox="0 0 11 7" fill="none" xmlns="http://www.w3.org/2000/svg" class="tw-ml-4 tw-origin-center tw-stroke-gray-40 group-hover:tw-stroke-black"> | ||
<path d="M1 1L5.02504 5.02504L9.05007 1" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> | ||
</svg> | ||
</button> | ||
<ul id="pni-category-dropdown-select" class="tw-hidden tw-list-none tw-absolute tw-top-full tw-w-auto tw-right-0 tw-p-0 tw-z-50 tw-border-gray-20 tw-border tw-pb-4 tw-bg-white"> | ||
|
||
<button | ||
class=" | ||
pni-category-dropdown | ||
tw-hidden | ||
tw-bg-transparent | ||
tw-items-center | ||
tw-relative | ||
tw-pr-10 | ||
tw-py-4 | ||
tw-mr-auto | ||
tw-font-sans | ||
tw-font-bold | ||
tw-text-sm | ||
tw-group | ||
hover:tw-text-black | ||
tw-text-gray-40 | ||
" | ||
> | ||
<span>{% trans "More Categories" %}</span> | ||
<svg width="11" height="7" viewBox="0 0 11 7" fill="none" xmlns="http://www.w3.org/2000/svg" class="tw-ml-4 tw-origin-center tw-stroke-gray-40 group-hover:tw-stroke-black"> | ||
<title>{% trans "Open category drop down" %}</title> | ||
<path d="M1 1L5.02504 5.02504L9.05007 1" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> | ||
</svg> | ||
<ul id="pni-category-dropdown-select" class="tw-hidden tw-list-none tw-absolute tw-right-0 tw-p-0 tw-top-0 tw-z-50 tw-border-gray-20 tw-border tw-pb-4 tw-bg-white"> | ||
<li class=" | ||
tw-bg-white | ||
tw-w-full | ||
tw-mr-0 | ||
tw-font-sans | ||
tw-font-bold | ||
tw-no-underline | ||
tw-px-8 | ||
tw-py-4 | ||
tw-mb-0 | ||
tw-text-black | ||
tw-flex | ||
tw-items-center | ||
tw-justify-end | ||
tw-text-sm | ||
"> | ||
<span>{% trans "More Categories" %}</span> | ||
<svg width="11" height="7" viewBox="0 0 11 7" fill="none" xmlns="http://www.w3.org/2000/svg" class="tw-ml-4 tw-origin-center tw-stroke-black tw-rotate-180"> | ||
<title>{% trans "Close category drop down" %}</title> | ||
<path d="M1 1L5.02504 5.02504L9.05007 1" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> | ||
</svg> | ||
</li> | ||
</ul> | ||
</div> | ||
|
||
</button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters