Skip to content

Background styling #485

Answered by chrissainty
peterhym21 asked this question in Q&A
Jan 3, 2023 · 1 comments · 3 replies
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