cssreactjsantdsimplemodal

How to change antd Modal button color


I am facing difficulty changing the color of antd Modal buttons That is the cancel button and ok Button. Can any one tell me how can I do that


Solution

  • <Modal
      visible={this.state.visible}
      title="Title"
      closable={false}
      footer={null}>
      <div>
        Test For No two buttons on the footer.
        And No One in header.
      </div>
      <div>
        <Button style={{background:'#000000'}} type="ghost" onClick={this.handleClick}>Login</Button>
      </div>
    </Modal>