Skip to content

fix(dropdowns): stop menus and pickers clipping in tables - #947

Merged
danieltruong merged 2 commits into
developfrom
fix-admin-dropdowns
Sep 24, 2026
Merged

danieltruong merged 2 commits into
developfrom
fix-admin-dropdowns

Conversation

@danieltruong

Copy link
Copy Markdown
Collaborator

Menus, date pickers and select lists inside .bottom-container were cut off, because that container has overflow: hidden.

  • The Actions menus on project documents, notification documents, comment period details and project detail now render in document.body. Their items use ngbDropdownItem, so arrow keys move between them. Upload Document(s) is a plain link instead of a button inside a link.
  • Date pickers use container="body" and ng-selects use appendTo="body" on project documents, document edit and document upload.
  • A global NgbDropdownConfig adds popper's hide modifier. With the CSS rule [data-popper-reference-hidden] { visibility: hidden }, a menu hides once its toggle scrolls under the fixed header, instead of painting over it.
  • bootstrap.min.js is removed from angular.json. It was Bootstrap 5 JS, which ignores the Bootstrap 4 data-toggle attributes this app uses, so it did nothing. It also threw an error on arrow keys in menus, which happens in prod today.
  • The page-size menu under tables uses the grey highlight like the other menus.

popper.min.js is still loaded as a global script. Nothing needs it now; removing it is a follow-up.

The eagle-helper-pods functional test selector .upload-docs #button-d (ProjectDocumentsPage.groovy:21) was already broken before this change.

Tests: specs for the project documents Actions menu (in body, link target, arrow keys) and for the hide modifier.

- Actions menus render in body and use ngbDropdownItem
- Datepickers and ng-selects attach to body so .bottom-container
  no longer clips them
- Global NgbDropdownConfig adds popper hide modifier; CSS hides a
  menu whose toggle scrolled out of view
- Drop unused bootstrap.min.js from angular.json
@danieltruong
danieltruong merged commit f1bb631 into develop Sep 24, 2026
4 checks passed
@danieltruong
danieltruong deleted the fix-admin-dropdowns branch September 24, 2026 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant