Mark Lopez
Mark Lopez

Reputation: 11

Ant design Modal remove or change the black background

EDIT:

Hi, Thank You so much for your answer, it helps me a lot. but do you know how to remove the lines background? please see this image

enter image description here

Upvotes: 1

Views: 4704

Answers (1)

Prakash S
Prakash S

Reputation: 2073

To hide the mask (background)

mask={false}

To change the style of mask(Background)
 maskStyle={{ backgroundColor: "red" }}
A complete example for experiment

Prakash Ant React Modal

<Modal mask={true} maskStyle={{ backgroundColor: "red" }} title="Basic Modal" visible={isModalVisible} onOk={handleOk} onCancel={handleCancel}>
  <p>Some contents...</p>
  <p>Some contents...</p>
  <p>Some contents...</p>
</Modal>

Upvotes: 6

Related Questions