Skip to content

Commit

Permalink
Merge pull request DSpace#1424 from ybnd/Fix-modal-open-issues
Browse files Browse the repository at this point in the history
Fix minor modal UX issues
  • Loading branch information
tdonohue authored Dec 3, 2021
2 parents 77f9b27 + 8d8b24f commit 46d340a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
class="form-control"
(click)="$event.stopPropagation();"
placeholder="{{'dso-selector.placeholder' | translate: { type: typesString } }}"
[formControl]="input" dsAutoFocus (keyup.enter)="selectSingleResult()">
[formControl]="input" ngbAutofocus (keyup.enter)="selectSingleResult()">
</div>
<div class="dropdown-divider"></div>
<div class="scrollable-menu list-group">
Expand Down
15 changes: 15 additions & 0 deletions src/styles/_global-styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,18 @@ ds-admin-sidebar {
display: none;
}
}

ngb-modal-backdrop {
// ng-bootsrap animates opacity, causing the fully opaque background to flash briefly before the transition starts
// animating background-color between transparent & a RGBA color instead looks smoother
&.fade {
opacity: 1 !important;
background-color: transparent;
transition: background-color 0.15s linear;

&.show {
background-color: rgba(0, 0, 0, 0.5);
}
}
}

0 comments on commit 46d340a

Please sign in to comment.