Skip to content
2 changes: 1 addition & 1 deletion components/buttons/ScrollButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function ScrollButton() {
return (
<div className='fixed bottom-14 right-4 z-40 h-16 w-12'>
{backToTopButton && (
<button className='rounded-full bg-white shadow-md ' onClick={scrollUp}>
<button className='rounded-full bg-white shadow-md hover:bg-[#8851FB] hover:scale-110 transition-all duration-300 ease-in-out' onClick={scrollUp}>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Resolve Pipeline Failures by Fixing Tailwind Class Order and Multi-line Formatting

Currently, the pipeline fails due to formatting errors and a Tailwind CSS class ordering warning. You can move the onClick prop to a new line and reorder classes to address both issues.

Apply this diff to fix the pipeline failures:

-        <button className='rounded-full bg-white shadow-md hover:bg-[#8851FB] hover:scale-110 transition-all duration-300 ease-in-out' onClick={scrollUp}>
+        <button
+          className="bg-white rounded-full shadow-md transition-all duration-300 ease-in-out hover:bg-[#8851FB] hover:scale-110"
+          onClick={scrollUp}
+        >
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
<button className='rounded-full bg-white shadow-md hover:bg-[#8851FB] hover:scale-110 transition-all duration-300 ease-in-out' onClick={scrollUp}>
<button
className="bg-white rounded-full shadow-md transition-all duration-300 ease-in-out hover:bg-[#8851FB] hover:scale-110"
onClick={scrollUp}
>
🧰 Tools
🪛 eslint

[error] 31-31: Replace ·className='rounded-full·bg-white·shadow-md·hover:bg-[#8851FB]·hover:scale-110·transition-all·duration-300·ease-in-out'·onClick={scrollUp} with ⏎··········className='rounded-full·bg-white·shadow-md·hover:bg-[#8851FB]·hover:scale-110·transition-all·duration-300·ease-in-out'⏎··········onClick={scrollUp}⏎········

(prettier/prettier)

🪛 GitHub Actions: PR testing - if Node project

[error] 31-31: Formatting error: Incorrect formatting of className and onClick props. Props should be on separate lines


[warning] 31-31: Invalid Tailwind CSS classnames order

<img src={scrollImage} alt='scroll to top' />
</button>
)}
Expand Down
Loading