Antd - How to make rounded borders for Table rows?

Viewed 4375

I am using antd table for reactjs application.

I created Sandbox here for you to make changes. Can anyone help me make rows with rounded borders like below image?

Expected : enter image description here

I have tried adding rowClassName={() => "rowClassName1"} with border related css but borders won't show up.

2 Answers

@UKS's answer solved the problem for me and able to make rows with rounded borders.

If someone wants to change header style as well with rows.

.monitorTableStyle .ant-table-container .ant-table-content table .ant-table-thead tr th:first-child{
    border-top-left-radius: 15px !important;
    border-bottom-left-radius: 15px !important;
}

.monitorTableStyle .ant-table-container .ant-table-content table .ant-table-thead tr th:last-child{
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
}
Related