I am using the dialogClassName prop to change the width of a Modal to 90%. The CSS doesn't change anything. I have verified that style.css works fine for all other classes.
The solution at this SO question doesn't work. The documentation doesn't work either.
I appreciate your help!
The render method of modal.js:
render(){
return (
<div>
<CardMain openModal={this.handleOpen}
{...this.props} />
<Modal show={this.state.open}
onHide={this.handleClose}
dialogClassName="main-modal">
<ModalMain tabKey={this.state.tabKey}
{...this.props} />
<FeedbackForm />
</Modal>
</div>
);
}
style.css:
.main-modal {
width: 90%;
}