Currently using Bootstrap 4 Beta and looking to darken the background when a Modal is displayed. I stumbled upon a solution suggesting the addition of a CSS class.
.modal-backdrop.in {
opacity: 0.5 !important;
position: fixed;
}
The advice was not to add the class directly to the div, but include it in the CSS file instead. However, simply adding it as instructed did not produce the desired effect. Upon further experimentation, applying the class to the modal div resulted in everything, including the modal itself, becoming opaque. Is there a workaround for this issue?