kobaltedev / kobalte

A UI toolkit for building accessible web apps and design systems with SolidJS.
https://kobalte.dev
MIT License
1.2k stars 61 forks source link

Dialog shifts to the left at start of closing due to scrollbar in Windows #243

Closed neurocmd closed 3 months ago

neurocmd commented 1 year ago

Describe the bug Dialog component restores the scrollbar of the page at the start of the close animation, resulting in an annoying shift to the left on Windows (see screenshot)

To Reproduce Try opening and closing dialog in the documentation in Windows (or MacOS with obtrusive scrollbar enabled)

Expected behavior The scrollbar should be restored after the dialog is completely closed (e.g. like bootstrap modal)

Screenshots

https://github.com/kobaltedev/kobalte/assets/5624053/2070c938-10d1-42e3-aaa4-8da1c5bdf3e3

Desktop (please complete the following information):

jer3m01 commented 3 months ago

Changed the scroll lock implementation and this seems fixed.