[Glitch] Fix heading level gaps
Port 6a4d14b178 to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
1 parent
80bd05fb97
commit
45dc485e71
12 files changed
+61
-50
No files matched your search
+3
-1
@@ -50,6 +50,7 @@ export interface CollectionLockupProps {
|
||||
withTimestamp?: boolean;
|
||||
sideContent?: React.ReactNode;
|
||||
className?: string;
|
||||
headingLevel?: 'h2' | 'h3' | 'h4';
|
||||
}
|
||||
|
||||
export const CollectionLockup: React.FC<CollectionLockupProps> = ({
|
||||
@@ -57,6 +58,7 @@ export const CollectionLockup: React.FC<CollectionLockupProps> = ({
|
||||
withAuthorHandle = true,
|
||||
withTimestamp,
|
||||
sideContent,
|
||||
headingLevel = 'h3',
|
||||
className,
|
||||
}) => {
|
||||
const { id, name } = collection;
|
||||
@@ -73,7 +75,7 @@ export const CollectionLockup: React.FC<CollectionLockupProps> = ({
|
||||
sideContent={sideContent}
|
||||
>
|
||||
<ListItemLink
|
||||
as='h3'
|
||||
as={headingLevel}
|
||||
to={getCollectionPath(id)}
|
||||
subtitle={
|
||||
<CollectionInfo
|
||||
|
||||
@@ -92,7 +92,7 @@ export const CollectionShareModal: React.FC<{
|
||||
/>
|
||||
|
||||
<div className={classes.preview}>
|
||||
<CollectionPreviewCard collection={collection} />
|
||||
<CollectionPreviewCard collection={collection} headingLevel='h2' />
|
||||
</div>
|
||||
|
||||
<CopyLinkField
|
||||
|
||||
Reference in new issue
Block a user