فینورا پرو - سامانه جامع حسابداری و صدور فاکتور

fix(ux): expose the active sidebar route to screen readers with aria-current

davoodmehraban89 committed Oct 30, 2026 at 23:19 UTC f68fbefe06ec4ec9b78474b1fae3955c852090c1
1 file changed +5 -2
src/core/Router.js
+5 -2
@@ -64,8 +64,11 @@ class RouterImpl {
64 }
65 }
66
67 - document.querySelectorAll('[data-page]').forEach(a => {
68 - a.classList.toggle('active', a.dataset.page === name);
67 + document.querySelectorAll('#sidebarMenu [data-page]').forEach(a => {
68 + const active = a.dataset.page === name;
69 + a.classList.toggle('active', active);
70 + if (active) a.setAttribute('aria-current', 'page');
71 + else a.removeAttribute('aria-current');
72 });
73
74 EventBus.emit('route:changed', { name, params, route });