fix(frontend): 补齐全局按钮 reset,修复 Select 选项灰底

组件库的 Select / Segmented / Tabs / Menu 都把按钮底色交给宿主 reset;之前 index.css 只设了 cursor,Chrome 默认的 ButtonFace 灰底和按钮边框就露了出来,下拉面板看起来像一块块灰条。
This commit is contained in:
2026-11-02 21:47:03 +08:00
parent 3c1a603b90
commit 69d721055d
+6
View File
@@ -71,7 +71,13 @@ textarea {
font: inherit; font: inherit;
} }
/* 组件库的「无底色按钮」依赖宿主这份 reset(Select 选项、Segmented、Tabs、Menu
都只声明选中态底色)。少了它,浏览器默认的 ButtonFace 灰底和按钮边框会露出来,
下拉选项会变成一块块灰条。 */
button { button {
border: none;
background: none;
color: inherit;
cursor: pointer; cursor: pointer;
} }