{if $menuItemNode->getOutstandingItems() > 0}
<span class="boxMenuLinkOutstandingItems badge badgeUpdate" aria-label="{lang}wcf.page.menu.outstandingItems{/lang}">{#$menuItemNode->getOutstandingItems()}</span>
{/if}
+ {if $menuItemNode->hasChildren()}
+ {icon size=16 name='caret-down' type='solid'}
+ {/if}
</a>
{if $menuItemNode->hasChildren()}<ol class="boxMenuDepth{@$menuItemNode->getDepth()}">{else}</li>{/if}
{event name='settings'}
-<a href="#" id="pageHeaderSearchMobile" class="pageHeaderSearchMobile" role="button" tabindex="0" aria-expanded="false" aria-label="{lang}wcf.global.search{/lang}">
+<button id="pageHeaderSearchMobile" class="pageHeaderSearchMobile" aria-expanded="false" aria-label="{lang}wcf.global.search{/lang}">
{icon size=32 name='magnifying-glass'}
-</a>
+</button>
<div id="pageHeaderSearch" class="pageHeaderSearch">
<form method="post" action="{link controller='Search'}{/link}">
<div id="pageHeaderSearchInputContainer" class="pageHeaderSearchInputContainer">
<div class="pageHeaderSearchType dropdown">
- <a href="#" class="button dropdownToggle" id="pageHeaderSearchTypeSelect"><span class="pageHeaderSearchTypeLabel">{@$__searchTypeLabel}</span></a>
+ <a href="#" class="button dropdownToggle" id="pageHeaderSearchTypeSelect">
+ <span class="pageHeaderSearchTypeLabel">{@$__searchTypeLabel}</span>
+ {icon size=16 name='caret-down' type='solid'}
+ </a>
<ul class="dropdownMenu">
<li><a href="#" data-extended-link="{link controller='Search'}extended=1{/link}" data-object-type="everywhere">{lang}wcf.search.type.everywhere{/lang}</a></li>
<li class="dropdownDivider"></li>
closeSearch();
searchButton.setAttribute("aria-expanded", "false");
+ searchButton.querySelector("fa-icon")!.setIcon("magnifying-glass");
} else {
// iOS Safari behaves unpredictable when the keyboard focus
// is moved into a HTML element that is inside a parent with
}
searchButton.setAttribute("aria-expanded", "true");
+ searchButton.querySelector("fa-icon")!.setIcon("xmark");
}
});
closeSearch();
searchButton.setAttribute("aria-expanded", "false");
+ searchButton.querySelector("fa-icon")!.setIcon("magnifying-glass");
}
});
}
-<a href="#" id="pageHeaderSearchMobile" class="pageHeaderSearchMobile" role="button" tabindex="0" aria-expanded="false" aria-label="{lang}wcf.global.search{/lang}">
+<button id="pageHeaderSearchMobile" class="pageHeaderSearchMobile" aria-expanded="false" aria-label="{lang}wcf.global.search{/lang}">
{icon size=32 name='magnifying-glass'}
-</a>
+</button>
<div id="pageHeaderSearch" class="pageHeaderSearch" data-disable-auto-focus="true">
<div class="pageHeaderSearchInputContainer">
if (searchButton.getAttribute("aria-expanded") === "true") {
closeSearch();
searchButton.setAttribute("aria-expanded", "false");
+ searchButton.querySelector("fa-icon").setIcon("magnifying-glass");
}
else {
// iOS Safari behaves unpredictable when the keyboard focus
document.body.scrollTop = 0;
}
searchButton.setAttribute("aria-expanded", "true");
+ searchButton.querySelector("fa-icon").setIcon("xmark");
}
});
_pageHeaderSearch.addEventListener("click", (event) => {
event.preventDefault();
closeSearch();
searchButton.setAttribute("aria-expanded", "false");
+ searchButton.querySelector("fa-icon").setIcon("magnifying-glass");
}
});
}
> a[aria-expanded="true"] ~ .boxMenuDepth1 {
visibility: visible;
}
-
- > a {
- &::after {
- content: $fa-var-angle-down;
- display: block;
- font-family: "FontAwesome";
- font-size: 14px;
- height: 24px;
- line-height: 24px;
- margin-left: 5px;
- width: 10px;
- }
- }
}
.boxMenuDepth1 {
color: $wcfHeaderMenuLink;
display: flex;
max-width: 200px;
- min-width: 140px;
+ min-width: 130px;
padding: 4px 8px;
position: relative;
text-align: left;
- &::after {
- color: inherit;
- content: $fa-var-caret-down;
- flex: 1;
- font-family: FontAwesome;
- margin-left: 10px;
- text-align: right;
- }
-
> .pageHeaderSearchTypeLabel {
flex: 0 auto;
overflow: hidden;
.pageHeaderSearchMobile {
grid-area: search;
-
- .icon::before {
- color: $wcfHeaderLink;
- }
-
- &[aria-expanded="true"] .icon::before {
- color: $wcfHeaderLinkActive;
- content: $fa-var-times;
- }
}
.userPanel {