Skip to content

Commit

Permalink
Merge pull request #4916 from nextcloud-libraries/enh/noid/modal-mask…
Browse files Browse the repository at this point in the history
…-dark
  • Loading branch information
szaimen authored and ShGKme committed Dec 11, 2023
2 parents 5e8aa01 + c4e33d0 commit a300991
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/NcModal/NcModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export default {
<div v-show="showModal"
ref="mask"
class="modal-mask"
:class="{ 'modal-mask--dark': dark }"
:class="{ 'modal-mask--dark': dark || !closeButtonContained || hasPrevious || hasNext }"
:style="cssVariables"
role="dialog"
aria-modal="true"
Expand Down Expand Up @@ -462,7 +462,10 @@ export default {
default: true,
},
/** Makes the modal backdrop black if true */
/**
* Makes the modal backdrop black if true
* Will be overwritten if some buttons are shown outside
*/
dark: {
type: Boolean,
default: false,
Expand Down

0 comments on commit a300991

Please sign in to comment.