Skip to content

Commit 6ce85de

Browse files
MatusBekeclaude
authored andcommitted
UFAL/Fix self-delete tooltip being clipped by the EPeople table (#1373)
The disabled delete button's ngbTooltip renders inside the table's .table-responsive wrapper, which has overflow-x: auto — clipping the tooltip popover since the button sits near the table's right edge. Add container="body" so the tooltip is appended to <body> instead, escaping the overflow-clipped ancestor (same convention already used elsewhere in this codebase, e.g. health-status and orcid-queue). Fixes dataquest-dev/dspace-customers#800 Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com> (cherry picked from commit 96209c4)
1 parent 3fedefa commit 6ce85de

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/app/access-control/epeople-registry/epeople-registry.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ <h3 id="search" class="border-bottom pb-2">{{labelPrefix + 'search.head' | trans
7575
</button>
7676
<ng-container *ngIf="epersonDto.ableToDelete && currentAuthenticatedUserId">
7777
<ng-container *ngIf="isCurrentUser(epersonDto.eperson); else enabledDeleteButton">
78-
<span tabindex="0" [ngbTooltip]="selfDeleteWarningLabel | translate">
78+
<span tabindex="0" [ngbTooltip]="selfDeleteWarningLabel | translate" container="body">
7979
<button [disabled]="true"
8080
tabindex="-1"
8181
[attr.aria-label]="selfDeleteWarningLabel | translate"

src/app/access-control/epeople-registry/eperson-form/eperson-form.component.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,10 @@ <h2 class="border-bottom pb-2">{{messagePrefix + '.edit' | translate}}</h2>
4040
<span *ngIf="(canDelete$ | async) && (activeEPerson$ | async) as activeEPerson">
4141
<span *ngIf="isCurrentUser(activeEPerson); else enabledDeleteButton"
4242
tabindex="0"
43-
[ngbTooltip]="selfDeleteWarningLabel | translate">
43+
[ngbTooltip]="selfDeleteWarningLabel | translate"
44+
container="body">
4445
<button class="btn btn-danger delete-button" [disabled]="true" tabindex="-1" type="button">
46+
4547
<i class="fas fa-trash"></i> {{'admin.access-control.epeople.actions.delete' | translate}}
4648
</button>
4749
</span>

0 commit comments

Comments
 (0)