Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.

Commit 61ca444

Browse files
committed
Updated table captions
1 parent b80a9bb commit 61ca444

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

components/atoms/Table/Table.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,11 @@ export default function Table({id, head, body, foot, caption, className}) {
100100
</tfoot>
101101
)}
102102
</table>
103-
{!!caption && <RichText tag="p">{caption}</RichText>}
103+
{!!caption && (
104+
<div className={styles.caption}>
105+
<RichText tag="span">{caption}</RichText>
106+
</div>
107+
)}
104108
</div>
105109
)}
106110
</>

components/atoms/Table/Table.module.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
}
3535
}
3636

37-
& p {
38-
@apply mb-20 text-center font-primary text-sm;
37+
& .caption {
38+
@apply mb-20 text-center font-secondary text-xs;
3939
}
4040
}

0 commit comments

Comments
 (0)