score:1
Accepted answer
Override the padding and then also hide the overflow so the border radius is visible.
<Modal
visible={isModalVisible}
style={{
backgroundColor: "#FFFFFF",
borderRadius: "20px",
overflow: "hidden",
padding: 0
}}
width={480}
footer={null}
>
<p>Done</p>
<p>Added name!</p>
<Button onClick={handleCancel}>OK</Button>
</Modal>
Source: stackoverflow.com
Related Query
- styling issue after removing footer from antd design
- Removing element from DOM after set amount of time
- How to create array from state value and setstate after removing duplicates in reactjs
- How to add popconfirm from antd design to file removal action
- Prevent sorting from styling column on antd
- Stop form from submitting in React Antd Design on press enter key inside FormDecortor Field
- Issue Removing specific React jsx element from list of elements
- how to use Link to with Tabs component React from Antd Design
- After the migration of antd from 2.0 -> 3.0 the default font size got increased from 12px -> 14px , is there a way to customize the antd fontsize?
- Antd file upload appending file after returning false from beforeUpload
- React: Removing a class styling after componentWillUpdate
- Update components after removing one from firebase
- How do I keep the state of a React Component after removing others from an array?
- How to clear events listeners in react after removing an element from the DOM
- Using React, how do I add a component before removing it from the DOM after a certain time?
- Issue removing item from list
- Antd Design EditableRow not changing buttons from "edit" to "save" and "cancel"
- Removing element from array in component state
- Removing object from array using hooks (useState)
- TypeScript error after upgrading version 4 useParams () from react-router-dom Property 'sumParams' does not exist on type '{}'
- 'Access-Control-Allow-Origin' issue when API call made from React (Isomorphic app)
- antd design select placeholder issues
- Call function after dispatch from redux has finished
- issue with cross-site cookies: how to set cookie from backend to frontend
- antd - ant design table with pagination control supporting a widget to choose rows per page?
- Forcing login in react after 401 from backend
- next/image does not load images from external URL after deployment
- ReactJS - ant design - Fix Footer with Layout
- How to get value from Select/Option component from Ant design
- Issue with MultipartFile Upload From React/Node
More Query from same tag
- how to pass props to component after click on sibling component
- React update state of check box programmatically without clicking on it at the time of component creation
- React - Parsing error: Expected corresponding JSX closing tag for <input>
- material-table tableRef.current value remains undefined
- How to hide label text in material-ui on a mobile viewport?
- Run onchange event react
- Adding multiple line break in react-markdown
- React/CSS: Using CSS stylesheets in a React app?
- Enzyme ReactWrapper not being updated
- Filters in pivoted react-table
- Cannot read property from component when separating out code
- Unable to get updated cache in component in a server rendered nextjs apollo app
- Storing global data with socket.io
- React+Expressjs Deployment
- Can I post a same document to 2 different collections in Firebase?
- React Router V4 - 404 error on refresh - Nginx issue?
- How to hide or show text(years old) if value(selectedPatient.age) is returned? React
- redux saga ajax call - not working as expected
- React How to trigger setState in all children component?
- rendering image with GatsbyImage
- React App crashes sometimes when opening react-signature-canvas
- How to update a field value after action dispatched with redux
- extends RouteComponentProps to accept more props?
- react - add icons to header inside component
- webpack dev server does not show the content
- not a function error in redux
- Couldn't find preset "es2015" relative to directory for new project
- How to place React Select Menu
- Why is Modal opening but not closing
- React: Component with just a form, form submit action differs depending on consumer of the component