Skip to content

Commit bae4d15

Browse files
committed
feat: 为选中条目添加高亮背景色
1 parent b9b377b commit bae4d15

3 files changed

Lines changed: 3 additions & 9 deletions

File tree

src/components/ProShortcut/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ const ProShortcut: FC<ProShortcutProps> = (props) => {
116116
<ProListItem {...rest}>
117117
<Flex
118118
align="center"
119-
className="antd-input b-color-1 h-8 min-w-32 rounded-md px-2.5"
119+
className="b hover:b-primary-5 b-color-1 focus:b-primary h-8 min-w-32 rounded-md px-2.5 outline-none transition focus:shadow-[0_0_0_2px_rgba(5,145,255,0.1)] focus:dark:shadow-[0_0_0_2px_rgba(0,60,180,0.15)]"
120120
gap="small"
121121
justify="center"
122122
onKeyDown={handleKeyDown}

src/pages/Main/components/HistoryList/components/Item/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ const Item: FC<ItemProps> = (props) => {
102102
return (
103103
<Flex
104104
className={clsx(
105-
"group antd-input! b-color-2 mx-3 max-h-30 rounded-md p-1.5",
105+
"group b hover:b-primary-5 b-color-2 mx-3 max-h-30 rounded-md p-1.5 transition",
106106
{
107-
"antd-input-focus!": rootState.activeId === id,
107+
"b-primary bg-primary-1": rootState.activeId === id,
108108
},
109109
)}
110110
gap={4}

uno.config.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,6 @@ export default defineConfig({
1414
[/^text-color-(\d+)$/, ([, d]) => `text-text-${d}`],
1515
[/^b-color-(\d+)$/, ([, d]) => `b-border-${d}`],
1616
[/^(.*)-primary-(\d+)$/, ([, s, d]) => `${s}-[var(--ant-blue-${d})]`],
17-
{
18-
"antd-input":
19-
"b hover:b-primary-5 transition outline-none focus:antd-input-focus",
20-
"antd-input-focus":
21-
"b-primary shadow-[0_0_0_2px_rgba(5,145,255,0.1)] dark:shadow-[0_0_0_2px_rgba(0,60,180,0.15)]",
22-
},
2317
],
2418
theme: {
2519
colors: {

0 commit comments

Comments
 (0)