Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions frontend/src/components/Requirements.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ export default function Requirements({ onChange, requirements, schedule }) {
reqLabel,
popoverInstance,
{
hideDelayMs: 0,
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Restore a nonzero hover hide delay for requirement popovers

Using hideDelayMs: 0 causes bindManualHoverPopover to run the hide check immediately on trigger mouseleave, so when the pointer crosses the trigger→popover gap and relatedTarget is null, the popover is hidden before users can reach interactive content. This regresses existing behavior for sub-requirement popovers (notably the Find Satisfying Courses button) and can also affect the new header-link popovers; a small delay is needed to make hover-to-popover transitions reliable.

Useful? React with 👍 / 👎.

onShow: (popoverEl) => {
if (!popoverEl) return;
const reqPath = reqLabel.getAttribute('reqpath');
Expand Down
7 changes: 7 additions & 0 deletions frontend/src/styles/Requirements.css
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,13 @@
margin-top: 5px;
}

/* Main-req popover only (paired classes in Requirements.jsx); resets scroll/height from .popoverContentContainer */
.popoverContentContainer.main-req-popover-wrap {
max-height: none;
margin-top: 0;
overflow: visible;
}

.fa-exclamation-circle {
color: #e74c3c;
}
Expand Down
Loading