Skip to content

Commit 4589f5e

Browse files
committed
style: fix dark theme totop button bg color
1 parent 2974738 commit 4589f5e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

common/components/BackToTop.tsx

+2-4
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const BackToTop = () => {
3636

3737
return <>
3838
<div className={`to-top ${show ? 'show' : 'hide'}`}>
39-
<Button className="to-top-btn" type="secondary" icon={<ArrowUp />} auto onClick={backToTop}>Top</Button>
39+
<Button type="secondary" icon={<ArrowUp />} auto onClick={backToTop}>Top</Button>
4040
</div>
4141
<style jsx>{`
4242
.to-top {
@@ -47,13 +47,11 @@ const BackToTop = () => {
4747
z-index: 1;
4848
opacity: 0;
4949
transition: opacity 0.3s;
50+
border-radius: 20px;
5051
}
5152
.to-top.show {
5253
opacity: 1;
5354
}
54-
:global(.to-top-btn) {
55-
border-radius: 20px !important;
56-
}
5755
`}</style>
5856
</>
5957
}

0 commit comments

Comments
 (0)