P
Clément Creusat• 1,675
@ccreusat
Posted
Hi ! Nice job!
To set the modal backdrop (background), you can add a React.Fragment in your file Bamboo.jsx
to wrap your modal className="modal-oculto ..."
and add a new div in position:fixed right after your modal.
I did something like this for my challenge :
.modal-backdrop {
position: fixed;
inset: 0;
z-index: 1;
background-color: rgb(0 0 0 / 50%);
}
Ejemplo :
{mostrarModal && (
<div className='modal-oculto ...'>...</div>
<div className="modal-backdrop"></div>
)}
Hope my comment helps :)
Marked as helpful
0
David A• 730
@DavidXploidz
Posted
@ccreusat thanks bro, It works perfect :)
0