ng2-bootstrap-modal
ng2-bootstrap-modal copied to clipboard
no modal backdrop
i din't get modal backdrop styles as like in original bootstrap styles.
you can set backdrop by adding
`.modal {
...
background-color: rgba(90,90,90,0.5); //add this line in your modal class
}`
The css somehow wasn't applied to my code. But got it running by passing some DialogOptions to the addDialog() method:
let disposable = this
.dialogService
.addDialog(PromptDialog, {
data: yourData
}, { backdropColor: '#ccc' } ) // Configure your DialogOptions here
.subscribe( result => {
//We get dialog result
if(result && result.confirmed) {
alert('accepted');
}
});
Available DialogOptions can be taken from the readme in the very last paragraph.
try with rgba color
Looks good with:
backdropColor: 'rgba(0, 0, 0, 0.5)',