I've imported Modal from react-modal (React Player is just for emdebbing video) and my code looks this way now:
<Modal
isOpen={modalIsOpen}
onRequestClose={closeModal}
style={customStyles}
contentLabel='Example Modal'
>
<button onClick={closeModal} className={css.button}>close</button>
<ReactPlayer
url='https://vimeo.com/49384334'
playing='true'
controls='true'
volume={0}
/>
</Modal>
So I tried to write some styles for button like that, but the button can't leave it's parent tag.
.button {
display: block;
float: right;
position: relative;
top: -10px;
right: -10px;
z-index: 1002;
}
Are there any styles I should overwrite maybe in the modal div?