-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[CL-806] Focus main content after side nav navigation occurs #17112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #17112 +/- ##
==========================================
- Coverage 41.25% 41.24% -0.01%
==========================================
Files 3546 3547 +1
Lines 102024 102044 +20
Branches 15302 15306 +4
==========================================
+ Hits 42087 42089 +2
- Misses 58173 58191 +18
Partials 1764 1764 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Great job! No new security vulnerabilities introduced in this pull request |
apps/web/src/app/app.component.ts
Outdated
| return { | ||
| navEvent, | ||
| currentNavInfo: info, | ||
| }; | ||
| }), | ||
| filter((navEventAndData) => { | ||
| const info = navEventAndData.currentNavInfo; | ||
|
|
||
| return info === undefined ? true : info?.focusMainAfterNav !== false; | ||
| }), | ||
| ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why return navEvent and info if we are only using info?
apps/web/src/app/app.component.ts
Outdated
| if (this.isFirstPageLoad) { | ||
| this.isFirstPageLoad = false; | ||
| return false; | ||
| } | ||
|
|
||
| return true; | ||
| } | ||
|
|
||
| return false; | ||
| }), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can call skip(1) from rxjs instead of using the class property isFirstPageLoad
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should move this logic into a service in libs/components/a11y
|
Thoughts on feature flagging this? |

🎟️ Tracking
📔 Objective
📸 Screenshots
⏰ Reminders before review
🦮 Reviewer guidelines
:+1:) or similar for great changes:memo:) or ℹ️ (:information_source:) for notes or general info:question:) for questions:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion:art:) for suggestions / improvements:x:) or:warning:) for more significant problems or concerns needing attention:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt:pick:) for minor or nitpick changes