Skip to content

Commit bd43352

Browse files
committed
[style]keep컴포넌트 아이콘 편집
1 parent 3dda148 commit bd43352

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

src/shared/assets/icons/keep_36.svg

Lines changed: 0 additions & 1 deletion
Loading

src/shared/assets/icons/keep_active_36.svg

Lines changed: 0 additions & 1 deletion
Loading

src/shared/components/keep/Keep.tsx

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import KeepIcon from '@/shared/assets/icons/keep_36.svg';
22
import KeepIconActive from '@/shared/assets/icons/keep_active_36.svg';
3+
34
import { useState } from 'react';
45
function Keep() {
56
const [isClick, setIsClick] = useState(false);
@@ -10,11 +11,22 @@ function Keep() {
1011
return (
1112
<button type="button" onClick={handleClick} aria-label="킵 버튼">
1213
{isClick ? (
13-
<KeepIcon fill="transparent" className="[&_*]:duration-100 hover:[&_*]:fill-secondary/50" />
14+
<KeepIcon
15+
fill="transparent"
16+
className="[filter:drop-shadow(0_0_8px_rgba(255,255,255,0.8))] [&_*]:duration-100 hover:[&_*]:fill-secondary/60"
17+
aria-hidden
18+
/>
1419
) : (
1520
<KeepIconActive
1621
fill="transparent"
17-
className="[&_*]:duration-100 hover:[&_*]:fill-secondary/50 "
22+
className="
23+
[filter:drop-shadow(0_0_8px_rgba(255,255,255,0.8))]
24+
[&_*]:duration-200
25+
&_g>g>path[stroke]]:stroke-black
26+
[&_g>path[fill='black']]:black
27+
hover:[&_g>g>path]:fill-secondary/60
28+
"
29+
aria-hidden
1830
/>
1931
)}
2032
</button>

0 commit comments

Comments
 (0)