react-modal
react-modal copied to clipboard
Unable to add backgroundImage to content styling
Summary:
Unable to add backgroundImage to content styling
Steps to reproduce:
- added backgroundImage: 'url(\'../path/myimage.jpg\')', to the content section of the modal styling
- inspecting the rendered html shows that it gets converted to simply 'background'
Expected behavior:
Instead of backgroundColor I should be able to use backgroundImage to set the background of the content layer.
Nevermind, was able to do:
const img = require('../path/myimage.jpg');
and then under content: { backgroundImage: 'url('+ img +')', }