Skip to content

feat: add background color on scale property#632

Open
adilkairolla wants to merge 1 commit intoemilkowalski:mainfrom
adilkairolla:feat/add-background-color-on-scale
Open

feat: add background color on scale property#632
adilkairolla wants to merge 1 commit intoemilkowalski:mainfrom
adilkairolla:feat/add-background-color-on-scale

Conversation

@adilkairolla
Copy link
Copy Markdown

Why:
Currently, when the setBackgroundColorOnScale property is enabled, Vaul sets the document body’s background color to black using a hardcoded value "black". There’s no way to customize this color.

How:
Added a new property to the Root component of the drawer: backgroundColorOnScale. It defaults to "black", ensuring backward compatibility for existing users while allowing customization of the background color.

Example:
Screenshot 2025-11-05 at 05 14 20
Screenshot 2025-11-05 at 05 14 06

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant