Skip to content

Commit

Permalink
fix(scroll to top): update style
Browse files Browse the repository at this point in the history
  • Loading branch information
oyo authored Jun 7, 2024
2 parents ea546b3 + 4448beb commit 9ce19dd
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 3.0.21

- Add scroll to top button specific css

## 3.0.20

- Update Font Size for Table Contents
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@catena-x/portal-shared-components",
"version": "3.0.20",
"version": "3.0.21",
"description": "Catena-X Portal Shared Components",
"author": "Catena-X Contributors",
"license": "Apache-2.0",
Expand Down
23 changes: 17 additions & 6 deletions src/components/basic/Button/ScrollToTopButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,23 @@ export const ScrollToTopButton = ({
onButtonClick,
}: ScrollToTopButtonProps) => {
return (
<IconButton
color="secondary"
onClick={onButtonClick}
sx={{ position: 'fixed', right: '40px', bottom: '20px' }}
<div
style={{
display: 'flex',
justifyContent: 'flex-end',
}}
>
<ArrowUpwardIcon />
</IconButton>
<div
style={{
position: 'fixed',
marginRight: '10px',
bottom: '20px',
}}
>
<IconButton color="secondary" onClick={onButtonClick}>
<ArrowUpwardIcon />
</IconButton>
</div>
</div>
)
}

0 comments on commit 9ce19dd

Please sign in to comment.