Skip to content

Commit e0a9f53

Browse files
committed
fixup! Add ContentHubCard Component
1 parent 817c8d3 commit e0a9f53

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

packages/core/src/components/Cards/EditorialCard/ContentHubCard.css

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
font-family: var(--font-avenir);
55
box-sizing: border-box;
66
height: 100%;
7-
border: 2px solid transparent;
7+
background: var(--color-white);
88
}
99

1010
.root:after {
@@ -23,7 +23,8 @@
2323

2424
.root:focus {
2525
border: 2px solid var(--color-greyLighter);
26-
box-sizing: border-box;
26+
box-sizing: content-box;
27+
margin: -2px;
2728
}
2829

2930
.imageContainer, .content {
@@ -67,6 +68,11 @@
6768
}
6869

6970
.title {
71+
margin-block-end: 0rem;
72+
margin-block-start: 0.5rem;
73+
}
74+
75+
.titleLink {
7076
color: var(--color-black);
7177
font-style: normal;
7278
font-weight: var(--fontweight-demi);
@@ -78,7 +84,7 @@
7884
text-decoration: none;
7985
}
8086

81-
.title:after {
87+
.titleLink:after {
8288
content: '';
8389
position: absolute;
8490
top: 0;
@@ -130,7 +136,7 @@
130136
width: 100%;
131137
}
132138

133-
.title {
139+
.titleLink {
134140
font-size: var(--font-large-ii);
135141
line-height: var(--lineheight-large-i);
136142
}

packages/core/src/components/Cards/EditorialCard/ContentHubCard.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const ContentHubCard = ({
5858
{date && category && ' · '}
5959
<span className={css.date}>{date}</span>
6060
</div>
61-
<h3><a href={href} className={css.title}>{title}</a></h3>
61+
<h3 className={css.title}><a href={href} className={css.titleLink}>{title}</a></h3>
6262
<p className={css.description}>{description}</p>
6363
{ tags && <ChipGroup tags={tags} className={css.chipContainer} />}
6464
{cta &&

0 commit comments

Comments
 (0)