ocombe / ocModal

An angularJS modal directive & service
66 stars 16 forks source link

Custom backdrop class #13

Closed sudheerDev closed 8 years ago

sudheerDev commented 8 years ago

Can we have backdrop customisable based on the custom class given to modal?

I have modals which need different backdrop settings for modals. There is no way to target backdrop with custom class.

sudheerDev commented 8 years ago

14

Added a param for custom backdrop class

sudheerDev commented 8 years ago

I coudnt think of a css only solution. As backdrop is not a successor sibling to the modal custom class. http://stackoverflow.com/questions/1817792/is-there-a-previous-sibling-css-selector. If you have any solutions please let me know.

I kinda need it on bower so, i will host a copy if you think this is not needed on this repo. Let me know what you think about the PR. I will update documentation if you are looking at accepting the pull request.