Repository navigation
[10004] fix: translated aria labels for sidebar toggles - #10005
Vishesh-Verma-07 wants to merge 1 commit into
Conversation
The "More"/extended-sidebar toggles referenced `aria_labels.app_sidebar.*`, a namespace no locale file defines. i18next therefore fell back to the key, so screen readers announced the raw string instead of a label. Point the toggles at `aria_labels.projects_sidebar.open_extended_sidebar` / `close_extended_sidebar`, which already exist with translations in every locale. Fixes makeplane#10004
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
Description
The sidebar "More"/extended-sidebar toggles set their
aria-labelfromaria_labels.app_sidebar.*, but no locale file defines that namespace (packages/i18n/src/locales/*/accessibility.jsononly definesaria_labels.projects_sidebar,auth_forms,breadcrumb,commonandcolor_picker). i18next falls back to the key, so the raw string is used as the accessible name.This affects two buttons:
#extended-sidebar-toggle) insidebar-menu-items.tsx#extended-project-sidebar-toggle) inprojects-list.tsxBoth now reference
aria_labels.projects_sidebar.open_extended_sidebar/close_extended_sidebar, which already exist with translations in all locales. No new translation keys are introduced.Type of Change
Screenshots and Media (if applicable)
Test Scenarios
[...document.querySelectorAll('[aria-label]')].map(e => e.getAttribute('aria-label')).filter(v => v.startsWith('aria_labels.'))aria_labels.app_sidebar.close_extended_sidebar/open_extended_sidebar).References
apps/web/components/...after the webcore/flatten ([GIT-351] chore: flatten web components out of core/ #9883); the branch is based onpreviewatbab49bb978, the commit the issue measured.🤖 Generated with OpenCode
Summary by CodeRabbit