-
Notifications
You must be signed in to change notification settings - Fork 14
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
Merge course popovers #551
Conversation
…to merge-course-popovers update from main
…to merge-course-popovers update from main
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.
wrapped a couple elements in braces {}
and tweaked some styles. just check it, make any fixes, and feel free to merge
After updating from main (the Roadmap Search Redesign), there is now a problem with the popover positions, currently unpredictable, and it should be resolved before this is merged because it can severely impact the usage of the website. Description
Steps to replicate (potentially):
Notes
|
The above problem is now fixed by wrapping the conditional icon in a |
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.
LGTM, works on mobile and dark/light mode
Merge the course info popover and the missing prerequisites popover into one, merge their icons, refactor this into a new component, update styles
Description
Currently, there are two popovers for a course: the course information popover, and the warning popover for missing prerequisites.
Course
where we want the popover to open to the left, the propopenPopoverLeft={true}
must be explicitly set, because Boostrap'sauto
placement was broken and it often went off screen. IfopenPopoverLeft
is not included, the popover will open to the right.CoursePopover
ppc-popover
is now an available CSS class inApp.scss
for such popovers (React Bootstrap popovers)Screenshots
Before:
After:
Dark mode, and opening on the left side (from the roadmap search) (note that the hoverable icon looks small due to the quarter offerings and small width, which will be fixed later when the Roadmap Search Redesign PR is merged):
Opening on the bottom in mobile:
Test Plan
Check the above changes in the staging instance:
Verify successful deployment
Issues
Closes #526