Skip to content
This repository was archived by the owner on Dec 26, 2025. It is now read-only.
Discussion options

You must be logged in to vote

I guess it depends on what you mean by easy 😉.

The way to change the backdrop colour is via CSS. You need to override the following class in your CSS file and specify the particular background colour you want to use.

.bm-container {
    background-color: rgba(0,0,0,0.5);
}

For reference, the reason things break when you add a class via the Class parameter, is that it replaces the default classes with whatever class you provide. So unless you provide a class that styles all aspects of the modal you get results like those in your screenshot.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@peterhym21
Comment options

@peterhym21
Comment options

@peterhym21
Comment options

Answer selected by peterhym21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants