Issue description
We are unable to put any styling on the container-inner class, because it exists in a separate template. The reason is that angular attaches ngcontent attribute to tags inside a template, and attaches this attribute selector to all css selectors in a component style, to make sure component style decisions don't affect other components.
Since the code inside
Steps to reproduce and a minimal demo of the problem
.agm-map-container-inner{
border: 1px solid green
}
Current behavior
Does nothing
Expected/desired behavior
Attaches green border to the map
angular2 & angular-google-maps version
angular 4, any agm version
Other information
@doom777 you can use the deep css selector. Something like this should work:
agm-map /deep/ .agm-map-container-inner { ... }
Please feel free to reopen this issue.
Add this to for angular / ionic projects global.scss
.agm-map {
height: 90%;
.agm-map-container-inner .sebm-google-map-container-inner{
border: 2px solid red;
border-radius: 15px;
}
I hope it helps someone
Most helpful comment
@doom777 you can use the deep css selector. Something like this should work:
Please feel free to reopen this issue.