mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
fix(site): site accessibility rough edges (#1330)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
102dfd2971
commit
ddf5622b2f
@@ -16,7 +16,10 @@ function getGuideUrl(framework: SupportedFramework, slug: string): string {
|
||||
}
|
||||
---
|
||||
|
||||
<nav class="mx-auto grid w-full max-w-3xl grid-cols-1 gap-4 md:grid-cols-2">
|
||||
<nav
|
||||
aria-label="Docs pagination"
|
||||
class="mx-auto grid w-full max-w-3xl grid-cols-1 gap-4 md:grid-cols-2"
|
||||
>
|
||||
{
|
||||
prev ? (
|
||||
<a
|
||||
|
||||
@@ -19,7 +19,7 @@ const filteredSidebar = filterSidebar(framework);
|
||||
<div class={clsx("bg-manila-light dark:bg-faded-black", className)}>
|
||||
<slot />
|
||||
<PreferenceUpdater client:idle currentFramework={framework} />
|
||||
<nav class="p-6">
|
||||
<nav aria-label="Docs sidebar" class="p-6">
|
||||
{
|
||||
filteredSidebar.map((item) => (
|
||||
<SidebarItem item={item} framework={framework} docTitles={docTitles} />
|
||||
|
||||
@@ -69,7 +69,11 @@ function getGroupRotate(depth: number) {
|
||||
}
|
||||
>
|
||||
<span class="flex-1">{item.sidebarLabel}</span>
|
||||
<DropdownIcon width={"0.65rem"} className={getGroupRotate(depth)} />
|
||||
<DropdownIcon
|
||||
width={"0.65rem"}
|
||||
className={getGroupRotate(depth)}
|
||||
aria-hidden="true"
|
||||
/>
|
||||
</summary>
|
||||
<div>
|
||||
{item.contents.map((contentItem) => (
|
||||
|
||||
Reference in New Issue
Block a user