-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
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
feat(modals): add an options to append modals to element #731
Comments
I want to make it clear that both common modal and child modal open with the whole document (maybe ),but I want to it show based on a subelement (like a child div) |
@zl810881283 This hack is needed, so that the modal_component can access the DOM of the app-root, to add a backdrop. |
@zl810881283 Sorry, I did not saw the second comment. So what do you mean with this:
|
@valorkin I want modal only show in #holder . do not dark the whole document <div class="container">
<div class="row">
<div class="col-md-4">
some code...
</div>
<div class="col-md-8" id="holder">
some code...
<div bsModal></div>
</div>
</div>
</div> |
@zl810881283 not yet implemented, but planned |
@valorkin could you please clarify: is this issue about appending backdrop component to some given element? This is something I would like to have. I was envisioning something like this maybe: <div bsModal [config]="{ backdrop: boolean | 'static' | 'sibling' }">...</div> |
Why not add a <div bsModal [config]="{ container: <HTMLElement> }">...</div> |
@turnerguo more likely it will appear in modal service as target option |
I think ticket 2609 was more appropriate for the following issue but it was closed and pointed to this one. My application needs to be VPAT complaint and one of the accessibility rules is that "All page content must be contained by landmarks". see https://dequeuniversity.com/rules/axe/3.1/region?application=AxeChrome Currently the popover component can only be attached to the body via container="body". Could that be extended to append to any DOM element? If so, I could attach to a landmark instead and meet the requirement. |
Hey @valorkin do we have any workaround for this now ? |
已经收到您的来信,我会尽快回复。
|
I follow the modal doc, and find that I should do a small hack in the root component, which is need in my project. I wonder whether I can set modals to child component. what should I do?
The text was updated successfully, but these errors were encountered: