Skip to content

Commit

Permalink
Merge pull request #44725 from nextcloud/backport/44717/stable29
Browse files Browse the repository at this point in the history
[stable29]  fix(oc-dialog): Get rid of the overlay
  • Loading branch information
blizzz authored Apr 11, 2024
2 parents 8b45d76 + f5f9822 commit 884eb0c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions core/src/jquery/css/jquery.ocdialog.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
border-radius: var(--border-radius-large);
box-shadow: 0 0 30px var(--color-box-shadow);
padding: 24px;
z-index: 10000;
z-index: 100001;
font-size: 100%;
box-sizing: border-box;
min-width: 200px;
Expand Down Expand Up @@ -69,7 +69,7 @@
.oc-dialog-dim {
background-color: #000;
opacity: .2;
z-index: 9999;
z-index: 100001;
position: fixed;
top: 0;
left: 0;
Expand Down
2 changes: 1 addition & 1 deletion core/src/jquery/ocdialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ $.widget('oc.ocdialog', {
}
this.overlay = $('<div>')
.addClass('oc-dialog-dim')
.appendTo(contentDiv)
.insertBefore(this.$dialog)
this.overlay.on('click keydown keyup', function(event) {
if (event.target !== self.$dialog.get(0) && self.$dialog.find($(event.target)).length === 0) {
event.preventDefault()
Expand Down
4 changes: 2 additions & 2 deletions dist/core-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/core-main.js.map

Large diffs are not rendered by default.

0 comments on commit 884eb0c

Please sign in to comment.