navbar: rebuild mock header from the Next implementation (source of truth)
- markup: lang + theme moved into .mu-topbar-tools (theme first, then lang), same order as web-at-transit: brand, nav, menu, tools, CTA - CSS: replaced mock's .mu-lang-*/.mu-theme-* buttons with the Next rules (.mu-pop / .mu-pop-btn / .mu-pop-btn-lang / .mu-pop-panel / .mu-pop-item, 40px tall, radius 8px, surface bg, 44px on coarse pointers) - lang button keeps short label + 12px chevron; menu items use .mu-pop-item-th/.mu-pop-item-en and data-active for the selected row - nav 0.95rem (was .92rem), header border -> var(--c-border) - theme.js was never included in the shell (regex missed the versioned src) — added after i18n.js + precached with theme.css; that was why the theme menu did not open in the previous build - VERSION 2026.09.27.120
This commit is contained in:
1 parent
5800a61da3
commit
eabcff197c
7 files changed
+134
-102
No files matched your search
@@ -100,6 +100,7 @@
|
||||
var on = btn.getAttribute('data-i18n-switch') === current;
|
||||
btn.classList.toggle('active', on);
|
||||
btn.setAttribute('aria-checked', on ? 'true' : 'false');
|
||||
if (on) btn.setAttribute('data-active', '1'); else btn.removeAttribute('data-active');
|
||||
});
|
||||
var label = document.getElementById('lang-label');
|
||||
if (label) label.textContent = current === 'en' ? 'EN' : 'ไทย';
|
||||
|
||||
Reference in new issue
Block a user