Skip to content

Commit a7b78e2

Browse files
committed
fix: underline inline links for a11y and fix lint formatting
Add visible underline to inline links in doc pages and MCP page to meet WCAG link-in-text-block requirement. Fix biome formatting in fonts.css and prerender.ts. Simplify home meta description.
1 parent bbb5bd3 commit a7b78e2

File tree

6 files changed

+40
-35
lines changed

6 files changed

+40
-35
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ dist/
44
dev/
55
.wrangler/
66
.env
7+
.mcp.json
78
.vscode/

apps/web/public/fonts/fonts.css

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,42 @@
11
@font-face {
2-
font-family: 'Inter';
3-
font-style: normal;
4-
font-weight: 400;
5-
font-display: swap;
6-
src: url(/fonts/inter.woff2) format('woff2');
2+
font-family: "Inter";
3+
font-style: normal;
4+
font-weight: 400;
5+
font-display: swap;
6+
src: url(/fonts/inter.woff2) format("woff2");
77
}
88
@font-face {
9-
font-family: 'Inter';
10-
font-style: normal;
11-
font-weight: 500;
12-
font-display: swap;
13-
src: url(/fonts/inter.woff2) format('woff2');
9+
font-family: "Inter";
10+
font-style: normal;
11+
font-weight: 500;
12+
font-display: swap;
13+
src: url(/fonts/inter.woff2) format("woff2");
1414
}
1515
@font-face {
16-
font-family: 'Inter';
17-
font-style: normal;
18-
font-weight: 600;
19-
font-display: swap;
20-
src: url(/fonts/inter.woff2) format('woff2');
16+
font-family: "Inter";
17+
font-style: normal;
18+
font-weight: 600;
19+
font-display: swap;
20+
src: url(/fonts/inter.woff2) format("woff2");
2121
}
2222
@font-face {
23-
font-family: 'Inter';
24-
font-style: normal;
25-
font-weight: 700;
26-
font-display: swap;
27-
src: url(/fonts/inter.woff2) format('woff2');
23+
font-family: "Inter";
24+
font-style: normal;
25+
font-weight: 700;
26+
font-display: swap;
27+
src: url(/fonts/inter.woff2) format("woff2");
2828
}
2929
@font-face {
30-
font-family: 'JetBrains Mono';
31-
font-style: normal;
32-
font-weight: 400;
33-
font-display: swap;
34-
src: url(/fonts/jetbrains-mono.woff2) format('woff2');
30+
font-family: "JetBrains Mono";
31+
font-style: normal;
32+
font-weight: 400;
33+
font-display: swap;
34+
src: url(/fonts/jetbrains-mono.woff2) format("woff2");
3535
}
3636
@font-face {
37-
font-family: 'JetBrains Mono';
38-
font-style: normal;
39-
font-weight: 500;
40-
font-display: swap;
41-
src: url(/fonts/jetbrains-mono.woff2) format('woff2');
37+
font-family: "JetBrains Mono";
38+
font-style: normal;
39+
font-weight: 500;
40+
font-display: swap;
41+
src: url(/fonts/jetbrains-mono.woff2) format("woff2");
4242
}

apps/web/scripts/prerender.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,11 @@ function buildHead(path: string): string {
180180
headline: seo.title.split(" | ")[0].split(" — ")[0],
181181
description: seo.description,
182182
url,
183-
author: { "@type": "Organization", name: "SuperDoc — DOCX editing and tooling", url: "https://superdoc.dev" },
183+
author: {
184+
"@type": "Organization",
185+
name: "SuperDoc — DOCX editing and tooling",
186+
url: "https://superdoc.dev",
187+
},
184188
publisher: { "@type": "Organization", name: "ooxml.dev" },
185189
about: {
186190
"@type": "Thing",

apps/web/src/data/seo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const staticPages: Record<string, SeoMeta> = {
1010
"/": {
1111
title: "ooxml.dev — The OOXML spec, explained by people who actually implemented it",
1212
description:
13-
"Interactive ECMA-376 reference with live previews and implementation notes. What the spec doesn't tell you, from the SuperDoc team.",
13+
"ECMA-376 reference with live previews and implementation notes from building a real document engine. Built by the SuperDoc team.",
1414
type: "website",
1515
},
1616
"/mcp": {

apps/web/src/pages/Mcp.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ export function Mcp() {
207207
href="https://modelcontextprotocol.io"
208208
target="_blank"
209209
rel="noopener noreferrer"
210-
className="text-[var(--color-accent)] hover:underline"
210+
className="text-[var(--color-accent)] underline decoration-[var(--color-accent)]/30 hover:decoration-[var(--color-accent)]"
211211
>
212212
Model Context Protocol
213213
</a>{" "}
@@ -231,7 +231,7 @@ export function Mcp() {
231231
href="https://superdoc.dev/?utm_source=ooxml.dev&utm_medium=referral&utm_campaign=mcp-page"
232232
target="_blank"
233233
rel="noopener noreferrer"
234-
className="text-[var(--color-accent)] hover:underline"
234+
className="text-[var(--color-accent)] underline decoration-[var(--color-accent)]/30 hover:decoration-[var(--color-accent)]"
235235
>
236236
SuperDoc — DOCX editing and tooling
237237
</a>

apps/web/src/pages/docs/Page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ function InlineMarkdown({ text }: { text: string }) {
143143
<a
144144
key={i}
145145
href={url}
146-
className="text-[var(--color-accent)] hover:underline"
146+
className="text-[var(--color-accent)] underline decoration-[var(--color-accent)]/30 hover:decoration-[var(--color-accent)]"
147147
target={url.startsWith("http") ? "_blank" : undefined}
148148
rel={url.startsWith("http") ? "noopener noreferrer" : undefined}
149149
>

0 commit comments

Comments
 (0)