Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .vitepress/theme/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@
--color-brand: #0d6a73;
}

.button:focus-visible {
outline: 2px solid var(--color-brand);
Copy link

Copilot AI Apr 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new .button:focus-visible rule uses var(--color-brand), but that CSS variable is only defined under :root[data-variant="oxc"] selectors. If data-variant is ever missing/changed (or this CSS is reused for a different variant), the outline declaration becomes invalid and focus styles disappear. Consider switching to the already-used VitePress brand token (--vp-c-brand-1) or adding a fallback like var(--color-brand, var(--vp-c-brand-1)) to keep focus indicators reliable and consistent with other components (e.g. RulesTable.vue).

Suggested change
outline: 2px solid var(--color-brand);
outline: 2px solid var(--color-brand, var(--vp-c-brand-1));

Copilot uses AI. Check for mistakes.
outline-offset: 2px;
}

.vp-code-group:has(.tabs input:focus-visible) {
outline: 2px solid var(--color-brand);
outline-offset: 2px;
}

/* Override unusual GitHub avatars */
.VPTeamMembersItem {
--member-item-avatar-size-small: 64px;
Expand Down