Apply remaining audit fixes; document radii and code palette in DESIGN.md
- Token sweep: exact-value gold literals now use --wg-border / --wg-border-soft / --wg-focus - Topbar: drop invalid role="menuitem" (no parent role="menu") - topics_list: topic-select icons get role="checkbox", tabindex, aria-label; client.js makes them keyboard-operable and syncs aria-checked - category.tpl: copy-handle link gets an accessible name, "View Original" moved to i18n, external-link icon aria-hidden, stretched link inside aria-hidden alert removed from tab order - Footer: all copy moved to [[westgate:footer.*]] keys; year injected via filter:middleware.renderFooter instead of hard-coded 2026 - client.js: batch table measurements before writes (no interleaved reflow), .catch on the category class map so search results never hang, category selector match uses fw-bold class instead of inline style - Forced-colors focus fallback: transparent outline alongside the box-shadow focus ring - DESIGN.md: real radius scale (3/4/6/8px), code-block palette, motion & modes section, placeholder alpha Verified against the sow-nodebb dev container: themed code blocks render in posts, footer i18n + year, checkbox roles in served HTML. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -32,22 +32,22 @@
|
||||
{{{ if config.loggedIn }}}
|
||||
<ul id="wg-topbar-logged-in-menu" class="wg-topbar__utility-list list-unstyled d-flex align-items-center mb-0">
|
||||
{{{ if (config.searchEnabled && user.privileges.search:content) }}}
|
||||
<li component="sidebar/search" class="nav-item search dropdown position-relative" title="[[global:header.search]]" role="menuitem">
|
||||
<li component="sidebar/search" class="nav-item search dropdown position-relative" title="[[global:header.search]]">
|
||||
<!-- IMPORT partials/sidebar/search.tpl -->
|
||||
</li>
|
||||
{{{ end }}}
|
||||
|
||||
<li component="notifications" class="nav-item notifications dropdown" title="[[global:header.notifications]]" role="menuitem">
|
||||
<li component="notifications" class="nav-item notifications dropdown" title="[[global:header.notifications]]">
|
||||
<!-- IMPORT partials/sidebar/notifications.tpl -->
|
||||
</li>
|
||||
|
||||
{{{ if canChat }}}
|
||||
<li class="nav-item chats dropdown" title="[[global:header.chats]]" role="menuitem">
|
||||
<li class="nav-item chats dropdown" title="[[global:header.chats]]">
|
||||
<!-- IMPORT partials/sidebar/chats.tpl -->
|
||||
</li>
|
||||
{{{ end }}}
|
||||
|
||||
<li component="sidebar/drafts" class="nav-item drafts dropdown" title="[[global:header.drafts]]" role="menuitem">
|
||||
<li component="sidebar/drafts" class="nav-item drafts dropdown" title="[[global:header.drafts]]">
|
||||
<!-- IMPORT partials/sidebar/drafts.tpl -->
|
||||
</li>
|
||||
|
||||
@@ -57,14 +57,14 @@
|
||||
</li>
|
||||
{{{ end }}}
|
||||
|
||||
<li id="user_label" class="nav-item usermenu dropdown" title="{user.username}" role="menuitem">
|
||||
<li id="user_label" class="nav-item usermenu dropdown" title="{user.username}">
|
||||
<!-- IMPORT partials/sidebar/user-menu.tpl -->
|
||||
</li>
|
||||
</ul>
|
||||
{{{ else }}}
|
||||
<ul id="wg-topbar-logged-out-menu" class="wg-topbar__utility-list wg-topbar__utility-list--guest list-unstyled d-flex align-items-center mb-0">
|
||||
{{{ if (config.searchEnabled && user.privileges.search:content) }}}
|
||||
<li component="sidebar/search" class="nav-item search dropdown position-relative" title="[[global:header.search]]" role="menuitem">
|
||||
<li component="sidebar/search" class="nav-item search dropdown position-relative" title="[[global:header.search]]">
|
||||
<!-- IMPORT partials/sidebar/search.tpl -->
|
||||
</li>
|
||||
{{{ end }}}
|
||||
|
||||
Reference in New Issue
Block a user