Skip to content

Commit

Permalink
fix: use buttons for interactive elements
Browse files Browse the repository at this point in the history
  • Loading branch information
Dun-sin committed Oct 12, 2024
1 parent d75dc77 commit 733702e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions components/molecules/HighlightInput/highlight-input-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -754,14 +754,14 @@ const HighlightInputForm = ({ refreshCallback }: HighlightInputFormProps): JSX.E
}`}
/>
)}
<p
className="text-light-slate-11 truncate max-w-[14rem] xs:max-w-[16rem] text-xs xs:text-sm cursor-pointer hover:text-orange-600 transition"
<button
className="outline-none bg-none text-light-slate-11 truncate max-w-[14rem] xs:max-w-[16rem] text-xs xs:text-sm cursor-pointer hover:text-orange-600 transition"
onClick={() => {
window.open(suggestion.url, "_blank");
}}
>
{suggestion.title}
</p>
</button>
</div>
<Tooltip className="text-xs modal-tooltip" direction="top" content="Fill content">
<button
Expand Down Expand Up @@ -1024,13 +1024,13 @@ const HighlightInputForm = ({ refreshCallback }: HighlightInputFormProps): JSX.E
)}

<Fab className="md:hidden">
<div
<button
onClick={() => setIsFormOpenMobile(true)}
className="p-3 mb-10 -mr-4 text-white rounded-full shadow-lg bg-light-orange-10"
className="outline-none p-3 mb-10 -mr-4 text-white rounded-full shadow-lg bg-light-orange-10"
id="mobile-highlight-create"
>
<RxPencil1 className="text-3xl" />
</div>
</button>
</Fab>
</>
);
Expand Down

0 comments on commit 733702e

Please sign in to comment.