From 1c0571701151f437269f3a8e3f01bec9908f2132 Mon Sep 17 00:00:00 2001 From: lutinglt Date: Fri, 11 Jul 2025 22:06:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20PR=20=E4=B8=AD=E7=9A=84?= =?UTF-8?q?=E5=90=88=E5=B9=B6=E6=8F=90=E4=BA=A4=E6=8C=89=E9=92=AE=E9=A2=9C?= =?UTF-8?q?=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/release.md | 5 +---- styles/public/button.tsx | 16 ++++++++++++---- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/release.md b/.github/release.md index 3128933..32fb576 100644 --- a/.github/release.md +++ b/.github/release.md @@ -4,9 +4,6 @@ ## 🎈 Perf -- 优化提交中 Action 状态标签的位置 -- 优化按钮和菜单下的图标颜色 -- 优化仓库发布中的分支选择按钮样式 -- 优化向上弹窗的菜单动画 +- 优化 PR 中的合并提交按钮颜色 ## 🐞 Fix diff --git a/styles/public/button.tsx b/styles/public/button.tsx index 98c9546..522659e 100644 --- a/styles/public/button.tsx +++ b/styles/public/button.tsx @@ -22,10 +22,18 @@ export const baseButton = css` .ui.button:not(.primary):not(.red) svg { color: ${themeVars.color.text.light.num1}; } - .ui.primary.button { - ${primaryStyle} - &:hover { - ${primaryHoverStyle} + // 主色调按钮保持白色 + .ui.primary.buttons .button svg { + color: ${themeVars.color.text.self}; + } + .ui.primary { + &.button, + // 按钮组, PR 里的压缩合并按钮 + &.buttons .button { + ${primaryStyle} + &:hover { + ${primaryHoverStyle} + } } } // 主色调基本按钮和普通按钮一样