Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: react modal color

drclohite pro asked 5 years ago


Expected behavior css to change color. Command to change color

Actual behavior no change

Resources (screenshots, code snippets etc.) I can only change text color

      <MDBModalHeader className="text-white" tag="p" toggle={this.toggle(4)}>
        Text here
      </MDBModalHeader>

Aliaksandr Andrasiuk staff answered 5 years ago


Hi,

You can set modalStyle property to one of options ["info", "warning", "primary", "danger"....].

For examle:

<MDBModal isOpen={this.state.modal} toggle={this.toggle} className="warning" modalStyle="warning">

Hope I could help.


drclohite pro answered 5 years ago


I found this worked too: MDBModalHeader style={{ background: "grey" }}


Aliaksandr Andrasiuk staff commented 5 years ago

Yes, you also can use this approach.

If you have any questions I will be glad to help.



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB React
  • MDB Version: 4.13.0
  • Device: PC`
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No
Tags