Skip to content

Commit 10cf83e

Browse files
authored
Fix AepList edition-aware links and banner display (#107)
1 parent 5998e9c commit 10cf83e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/components/AepList/AepListEntry.astro

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,22 @@
33
44
import type { HTMLAttributes } from 'astro/types';
55
import {Badge} from '@astrojs/starlight/components';
6+
import AepLink from '../AepLink.astro';
67
78
interface Props extends Omit<HTMLAttributes<'a'>, 'title'> {
89
title: string;
910
description?: string;
1011
}
1112
12-
const { title, id, state, ...attributes } = Astro.props;
13+
const { title, id, state, href, ...attributes } = Astro.props;
1314
---
1415

1516
<div class="grid grid-cols-[1fr_auto] gap-2 border border-gray-500 rounded-lg p-4 shadow-sm relative hover:bg-gray-100 dark:hover:bg-gray-700 hover:border-gray-700 dark:hover:border-gray-200" data-status={state}>
1617
<span class="flex">
1718
<span class="text-gray-300 leading-6 w-12 text-right pr-4" set:html={id} />
18-
<a class="no-underline leading-[var(--sl-line-height-headings)] relative before:content-[''] before:absolute before:inset-0" {...attributes}>
19+
<AepLink href={href} class="no-underline leading-[var(--sl-line-height-headings)] relative before:content-[''] before:absolute before:inset-0">
1920
<span class="text-black dark:text-white font-semibold text-lg pr-4" set:html={title} />
20-
</a>
21+
</AepLink>
2122
{state == "reviewing" && <span class="inline-flex items-center rounded-md bg-blue-50 px-2 py-1 text-xs font-medium text-blue-700 ring-1 ring-inset ring-blue-700/10">Reviewing</span>}
2223
</span>
2324
</div>

0 commit comments

Comments
 (0)