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
Improve visibility of focused elements in Course and Lesson tours #7570
Conversation
When inserted at bottom, sometimes it goes behind the tour modal
Test the previous changes of this PR with WordPress Playground. |
WordPress Dependencies ReportThe
This comment was automatically generated by the |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## trunk #7570 +/- ##
============================================
- Coverage 51.78% 51.76% -0.03%
Complexity 11323 11323
============================================
Files 641 641
Lines 48165 48186 +21
Branches 469 470 +1
============================================
+ Hits 24941 24942 +1
- Misses 22844 22863 +19
- Partials 380 381 +1
Continue to review full report in Codecov by Sentry.
|
Test the previous changes of this PR with WordPress Playground. |
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.
Looks good and works well!
I just have a small suggestion to update the lesson tour to also use the scrollToCenter
for the correctAnswerField
since now we have this function.
Sure! I've moved the function to Also I've added some additional calls here 1687172 to try to improve the visibility a bit in lesson steps as well |
Test the previous changes of this PR with WordPress Playground. |
Test the previous changes of this PR with WordPress Playground. |
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.
Looks good and works well!
Resolves #7556
Proposed Changes
In some scenarios (especially when using the Astra theme), for a couple of steps in the Course tour (especially when there are many lessons in the Course outline block, for example, when the user installs the dummy Course from Sensei home and then takes the Tour using that particular course), and particularly when the screen size is small, the focused element got partially hidden behind the Tour modal, especially the
Save Lessons
step. We've added some improvements here by scrolling the action area to the center to make them more visible to the user.Testing Instructions
Screen.Recording.2024-04-01.at.4.39.27.PM.mov
Pre-Merge Checklist