Skip to content

Commit

Permalink
feat(catalog): add a version tag to CatalogCard component CSS fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Ankita Sahu <[email protected]>
  • Loading branch information
SAHU-01 committed Jul 31, 2024
1 parent 9505811 commit 37920f3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/custom/CatalogCard/CatalogCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ type CatalogCardProps = {

export const VersionTag = styled('div')(({ theme }) => ({
position: 'absolute',
top: '40px',
right: '8px',
backgroundColor: theme.palette.primary.main,
color: theme.palette.primary.contrastText,
padding: '2px 6px',
bottom: '65px',
left: '18px',
backgroundColor: theme.palette.grey[500],
color: theme.palette.grey[900],
padding: '1px 10px',
borderRadius: '4px',
fontSize: '0.75rem',
fontWeight: 'bold'
Expand Down Expand Up @@ -89,7 +89,7 @@ const CatalogCard: React.FC<CatalogCardProps> = ({
<DesignCard outerStyles={outerStyles}>
<DesignInnerCard className="innerCard">
<ClassWrap catalogClassName={pattern?.catalog_data?.content_class} />
{version && <VersionTag>v: {version}</VersionTag>}
{version && <VersionTag>v{version}</VersionTag>}
<DesignType>{patternType}</DesignType>
<DesignDetailsDiv>
<DesignName
Expand Down

0 comments on commit 37920f3

Please sign in to comment.