We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If one NcModal is nested to another, some styles (size modal is confirmed) may fall through to the nested modal, breaking the size
To reproduce on https://nextcloud-vue-components.netlify.app/#/Components/NcModal:
<template> <div> <NcButton @click="showModal">Show Modal with fields</NcButton> <NcModal v-if="modal" @close="closeModal" name="Name inside modal"> <div id="first-modal-id" class="modal__content"> <NcButton @click="showModal2">Show Modal</NcButton> <NcModal v-if="modal2" container="#test" @close="closeModal2" size="small" class="emoji-modal"> {{"NcModal container='#first-modal-id' size='small'" }} </NcModal> </div> </NcModal> </div> </template> <script> export default { data() { return { modal: false, modal2: false, } }, methods: { showModal() { this.modal = true }, closeModal() { this.modal = false }, showModal2() { this.modal2 = true }, closeModal2() { this.modal2 = false }, } } </script> <style> #first-modal-id { height: 200px; } </style>
use direct child selector: .modal-wrapper--normal > .modal-container
.modal-wrapper--normal > .modal-container
The text was updated successfully, but these errors were encountered:
Antreesy
Successfully merging a pull request may close this issue.
Requirements:
Issue
If one NcModal is nested to another, some styles (size modal is confirmed) may fall through to the nested modal, breaking the size
Reproduciton
To reproduce on https://nextcloud-vue-components.netlify.app/#/Components/NcModal:
Possible solution:
use direct child selector:
.modal-wrapper--normal > .modal-container
The text was updated successfully, but these errors were encountered: