Closed krishnakumarp closed 4 years ago
Not possible at the moment in the component configuration. But doable in plain css, so not a show-stopper. Marking as feature request.
Thanks. Got it... I was able to achieve what I wanted using
#spinner.backdrop {
background-color: #777777dd !important;
}
Thanks for feedback, reopening the issue because interested in implementing the feature, that could be a nice addition.
What would it take to do this?
What more would you expect in a pull request?
I would name it backdropBackgroundColor
I think, with a default value (the same as in the scss file at the moment). Documentation should be updated, and tests should be added to ensure backward compatibility and prevent regression.
Do you need a default value? The default would come from ng-http-loader.component.scss?
If it does not have a default value, it will override to empty the one in the scss file. So the value in the scss file should be completely replaced by the @Input
Then $backdrop-background-color should be removed from _variables.scss and its usage from ng-http-loader.component.scss ?
yep
v9.1.0 with this feature has just been published!
Is it possible to add the ability to set the backdrop's background color? I am using custom animated gif instead of spinkit. I would like this image not to have opacity, but would still like the keep the remaining background with opacity.
This will be possible if we keep opacity as 1 and use a background color like '#777777dd' on .backdrop. But this cannot be set at the moment and is hardcoded as $backdrop-background-color: #f1f1f1 !default; in _variables.scss