radix-vue / vaul-vue

An unstyled drawer component for Vue.
https://vaul.unovue.com
145 stars 6 forks source link

Background black is not removed from `body` on close #38

Closed benjamincanac closed 1 month ago

benjamincanac commented 2 months ago

https://github.com/radix-vue/vaul-vue/blob/main/packages/vaul-vue/src/controls.ts#L508

damienroche commented 2 months ago

Why not toggle a data attribute with open state into the vaul-drawer-wrapper, in some cases, for some design purpose, we don't want the background to be black

damienroche commented 1 week ago

@zernonia why set body background-color to black on open ? This make an unwanted effect, for example on a white page with black text : https://capture.dropbox.com/PMvEzmQzm6JKzPmM