From a94c604416b5ed2af66898ede0a7f101c90c21a1 Mon Sep 17 00:00:00 2001 From: lutinglt Date: Sun, 18 Oct 2026 21:46:30 +0800 Subject: [PATCH] fix some hover border style on high-contrast --- src/types/color/github.ts | 2 ++ styles/components/repo/repo.ts | 3 +++ styles/public/dropdown/branch_dropdown.ts | 1 + 3 files changed, 6 insertions(+) diff --git a/src/types/color/github.ts b/src/types/color/github.ts index 8e67172..3736e33 100644 --- a/src/types/color/github.ts +++ b/src/types/color/github.ts @@ -272,6 +272,8 @@ export const github = { * @commit `commit` 提交信息的 Action 按钮的悬停边框色 * @repo_files `fileSearch` 文件搜索框子项的悬停边框色 `repoFiles` README 右侧操作悬停边框色 * @clone `clone` 克隆按钮和面板操作列表的悬停边框色 + * @brach_dropdown `branchDropdown` 菜单中分支切换按钮的悬停边框色 + * @repo `repoHeader` 仓库标题的悬停边框色 * @templates @commit_sign_badge `commitSignBadge` SHA 标签悬停时的边框色 * @templates @commits_list `commitsList` 提交操作按钮悬停时的边框色 * @templates @view_list `repoFileLastCommit` 提交历史按钮悬停时的边框色 diff --git a/styles/components/repo/repo.ts b/styles/components/repo/repo.ts index 92cc743..8eadc96 100644 --- a/styles/components/repo/repo.ts +++ b/styles/components/repo/repo.ts @@ -50,6 +50,7 @@ const repoHeader = css` border-radius: ${otherThemeVars.border.radius}; &:hover { background: ${themeVars.github.control.transparent.bgColor.hover}; + box-shadow: inset 0 0 0 1px ${themeVars.github.control.transparent.borderColor.active}; } &.muted:not(.tw-font-normal) { font-weight: 600; @@ -63,6 +64,7 @@ const repoHeader = css` margin-left: 4px; &:hover + .ui.custom.dropdown { background: ${themeVars.github.control.transparent.bgColor.hover}; + box-shadow: inset 0 0 0 1px ${themeVars.github.control.transparent.borderColor.active}; } } } @@ -74,6 +76,7 @@ const repoHeader = css` height: 32px; &:hover { background: ${themeVars.github.control.transparent.bgColor.hover}; + box-shadow: inset 0 0 0 1px ${themeVars.github.control.transparent.borderColor.active}; } .menu { > .item { diff --git a/styles/public/dropdown/branch_dropdown.ts b/styles/public/dropdown/branch_dropdown.ts index 5833b87..c6ff017 100644 --- a/styles/public/dropdown/branch_dropdown.ts +++ b/styles/public/dropdown/branch_dropdown.ts @@ -51,6 +51,7 @@ const branchDropdown = css` } &:hover { background: ${themeVars.github.control.transparent.bgColor.hover}; + box-shadow: inset 0 0 0 1px ${themeVars.github.control.transparent.borderColor.active}; } } }