Skip to content

Commit 2ee07ac

Browse files
resolved blog title text issue, removed redundant .title property and added title attribute to h2 element
1 parent 1a69068 commit 2ee07ac

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

components/containers/Card/Cards.module.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
}
4040

4141
.title {
42-
font-family: var(--font-heading);
42+
font-family: $font-family-secondary;
4343
font-weight: bold;
4444
font-size: 1.75rem;
4545
color: var(--color-primary-content);
@@ -148,7 +148,6 @@
148148
margin-bottom: 0.7rem;
149149
max-height: 7rem;
150150
overflow: hidden;
151-
line-height: unset;
152151

153152
@include tablet {
154153
font-size: 1.3rem;

components/containers/Card/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ export function Card({ card, cardType = 'default' }) {
2222
</div>
2323
)}
2424

25-
{title && <h2 className={styles.title}>{title}</h2>}
25+
{title && (
26+
<h2 className={styles.title} title={title}>
27+
{title}
28+
</h2>
29+
)}
2630

2731
{tagList?.length > 0 && (
2832
<div className={styles.tagContainer}>

0 commit comments

Comments
 (0)