Open
Description
Currently, I have placed the following customStyles
within the component's file.js
but I want to put the customStyles into my scss or css file.
- I have put
className
for<Modal className="modal-alert"... </Modal>
and put the exact style that for.modal-alert
but it's not responding as if I were to just use the following way.
const customStyles = {
content : {
top : '50%',
left : '50%',
right : 'auto',
bottom : 'auto',
marginRight : '-50%',
transform : 'translate(-50%, -50%)'
}
};
Basically, I just want to be able to put the following inside of a CSS file and not in the component file itself.
top : '50%',
left : '50%',
right : 'auto',
bottom : 'auto',
marginRight : '-50%',
transform : 'translate(-50%, -50%)'