fix(Card): Use correct class names for Ant Design 5 Card component (#30964)
This commit is contained in:
parent
1b63b8f3c7
commit
c6685a706d
|
|
@ -53,7 +53,7 @@ export const securityAccess = {
|
|||
export const homePage = {
|
||||
homeSection: {
|
||||
sectionArea: '.ant-collapse-content-box',
|
||||
sectionElement: '.ant-card-meta-title',
|
||||
sectionElement: '.antd5-card-meta-title',
|
||||
},
|
||||
sections: {
|
||||
expandedSection: '.ant-collapse-item-active',
|
||||
|
|
@ -284,7 +284,7 @@ export const chartListView = {
|
|||
},
|
||||
card: {
|
||||
card: dataTestLocator('styled-card'),
|
||||
cardCover: '[class="ant-card-cover"]',
|
||||
cardCover: '[class="antd5-card-cover"]',
|
||||
cardImage: '[class="gradient-container"]',
|
||||
selectedStarIcon: "[aria-label='favorite-selected']",
|
||||
unselectedStarIcon: "[aria-label='favorite-unselected']",
|
||||
|
|
@ -401,7 +401,7 @@ export const dashboardListView = {
|
|||
},
|
||||
card: {
|
||||
card: dataTestLocator('styled-card'),
|
||||
cardCover: '[class="ant-card-cover"]',
|
||||
cardCover: '[class="antd5-card-cover"]',
|
||||
cardImage: '[class="gradient-container"]',
|
||||
selectedStarIcon: "[aria-label='favorite-selected']",
|
||||
unselectedStarIcon: "[aria-label='favorite-unselected']",
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ export const CardStyles = styled.div`
|
|||
a {
|
||||
text-decoration: none;
|
||||
}
|
||||
.ant-card-cover {
|
||||
.antd5-card-cover {
|
||||
border-bottom: 1px solid ${({ theme }) => theme.colors.grayscale.light2};
|
||||
& > div {
|
||||
height: 171px;
|
||||
|
|
|
|||
|
|
@ -101,10 +101,10 @@ const WelcomeContainer = styled.div`
|
|||
padding: 3px 21px;
|
||||
}
|
||||
}
|
||||
.ant-card-meta-description {
|
||||
.antd5-card-meta-description {
|
||||
margin-top: ${({ theme }) => theme.gridUnit}px;
|
||||
}
|
||||
.ant-card.ant-card-bordered {
|
||||
.antd5-card.ant-card-bordered {
|
||||
border: 1px solid ${({ theme }) => theme.colors.grayscale.light2};
|
||||
}
|
||||
.ant-collapse-item .ant-collapse-content {
|
||||
|
|
@ -119,7 +119,7 @@ const WelcomeContainer = styled.div`
|
|||
}
|
||||
.loading-cards {
|
||||
margin-top: ${({ theme }) => theme.gridUnit * 8}px;
|
||||
.ant-card-cover > div {
|
||||
.antd5-card-cover > div {
|
||||
height: 168px;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -376,7 +376,7 @@ export const CardStyles = styled.div`
|
|||
a {
|
||||
text-decoration: none;
|
||||
}
|
||||
.ant-card-cover > div {
|
||||
.antd5-card-cover > div {
|
||||
/* Height is calculated based on 300px width, to keep the same aspect ratio as the 800*450 thumbnails */
|
||||
height: 168px;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue