This repository was archived by the owner on Dec 26, 2025. It is now read-only.
Background styling #485
Answered
by
chrissainty
peterhym21
asked this question in
Q&A
|
is there any easy way to set the background color in a simpel way whenever i use the option Class it always breaks all the default styling even when i only set the background color, |
Answered by
chrissainty
Jan 3, 2023
Replies: 1 comment 3 replies
|
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 |
3 replies
Answer selected by
peterhym21
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment




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.
For reference, the reason things break when you add a class via the
Classparameter, 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.