-
Notifications
You must be signed in to change notification settings - Fork 6.7k
feat(modal): Add backdropClass option, similar to windowClass option #1862
feat(modal): Add backdropClass option, similar to windowClass option #1862
Conversation
Really, identical to windowClass, but for backdrop. Fixes #1179
Any ETA on when this will be merge? |
@sonarxavier: I haven't heard anything about it from anybody involved with the project. Maybe needs a few people to +1 it to get some attention. |
Just 3 days :P. We have more responsibilities apart from this lib heh. That aside, I like the PR, minimum change, tested and doc updated. I am not so sure of the use case, but the final decision is from @pkozlowski-opensource :) |
@Foxandxss Whoops, I really didn't mean my comment to come off as a "geez, what's taking so long" at all :) Very specifically, our use case is that we've changed the styling of one of our modals in such a way that the style of the backdrop makes it look bad. We can change the style of the backdrop, but that will apply to the backdrop of all the modals, rather than just the one that is problematic. So we'd just like a way to independently style backdrops like we can currently independently style the modals themselves. Thanks for taking a look! |
That makes sense and it is an small change, so that is 👍 for me, still @pkozlowski-opensource has the word. |
@jsanders sweet. Hopefully it will be integrated soon :) |
+1 Just ran into a situation on a project where this would very helpful. Awesome to see that a solution has been proposed. Would be nice to see this make it in. |
@jsanders mind explaining that use case where you need this, and it's not possible doing the way I suggested? |
@Foxandxss Excellent, thanks! @fxck To make sure I understand your suggestion correctly - you want to re-use the existing I think that would absolutely work, but that separating them into two options just makes it more obvious how they are meant to be used. If others who are interested in this think your way is simpler, I'm not at all against it. This is just the way that made the most sense to me. |
Yeah, that's absolutely fine, I just wanted to know whether there's actually a case where you'd need backdropClass, because it wouldn't be possible to do using windowClass only. |
Ah, without the change in this pull request, we can't style the backdrop using |
+1 |
Landed, thnx @jsanders ! |
Fixes #1179
Really, identical to windowClass, but for backdrop.
@fxck: I used a different option name because we have the use case of needing both at the same time and concatenating classes like you suggest doesn't seem like the right answer when what we really want is two different classes on two different elements.