Skip to content

Commit 4e96a48

Browse files
committed
improve styles
1 parent 0f70b5e commit 4e96a48

File tree

1 file changed

+18
-16
lines changed

1 file changed

+18
-16
lines changed

src/components/docFeedback/index.tsx

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -64,22 +64,24 @@ export function DocFeedback({pathname}: Props) {
6464
</div>
6565
) : (
6666
<Fragment>
67-
<div className="flex items-center gap-2">
68-
<span className="text-sm">Was this helpful?</span>
69-
<button
70-
onClick={() => handleFeedback(true)}
71-
className="py-2 px-4 gap-4 hover:bg-[var(--gray-3)] rounded-full flex items-center justify-center"
72-
aria-label="Yes, this was helpful"
73-
>
74-
Yes 🙂
75-
</button>
76-
<button
77-
onClick={() => handleFeedback(false)}
78-
className="py-2 px-4 gap-4 hover:bg-[var(--gray-3)] rounded-full flex items-center justify-center"
79-
aria-label="No, this wasn't helpful"
80-
>
81-
No 🙁
82-
</button>
67+
<div className="flex items-center gap-4 text-sm mt-8">
68+
<span className="font-medium">Was this helpful?</span>
69+
<div className="flex">
70+
<button
71+
onClick={() => handleFeedback(true)}
72+
className="py-1 px-2 gap-4 hover:bg-[var(--gray-3)] rounded flex items-center justify-center"
73+
aria-label="Yes, this was helpful"
74+
>
75+
Yes 👍
76+
</button>
77+
<button
78+
onClick={() => handleFeedback(false)}
79+
className="py-1 px-2 gap-4 hover:bg-[var(--gray-3)] rounded flex items-center justify-center"
80+
aria-label="No, this wasn't helpful"
81+
>
82+
No 👎
83+
</button>
84+
</div>
8385
</div>
8486

8587
<div

0 commit comments

Comments
 (0)