diff --git a/components/lib/scrolltop/style/ScrollTopStyle.js b/components/lib/scrolltop/style/ScrollTopStyle.js index e92b3658e..6796d1acd 100644 --- a/components/lib/scrolltop/style/ScrollTopStyle.js +++ b/components/lib/scrolltop/style/ScrollTopStyle.js @@ -1,17 +1,15 @@ import BaseStyle from 'primevue/base/style'; const theme = ({ dt }) => ` -.p-scrolltop { +.p-scrolltop.p-button { position: fixed; bottom: 20px; right: 20px; } -.p-scrolltop-sticky { +.p-scrolltop-sticky.p-button { position: sticky; -} - -.p-scrolltop-sticky { + display: flex; margin-left: auto; }