Background color
See original GitHub issueThis is rather discussion topic.
Couldn’t the background color be a property (e.g. [popperBackground]
)?
I used your component and spent some time looking for a problem as the background of the tooltip was transparent. After some time I realized it is by default and started figuring out how to change it. As I cannot change the encapsulation in my component, I ended up setting
::ng-deep {
.ngxp__container{
background: #ffb0b0;
}
}
in the component’s style (but ng-deep
is deprecated so I would prefer some better solution).
I like the component but setting the background seems to me a bit complicated (perhaps not well documented) for the scenario everyone needs to solve (can’t imagine many cases the transparent background would fit).
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:21 (10 by maintainers)
Top Results From Across the Web
CSS background-color property - W3Schools
The background-color property sets the background color of an element. The background of an element is the total size of the element, including...
Read more >background-color - CSS: Cascading Style Sheets | MDN
The background-color CSS property sets the background color of an element.
Read more >CSS | background-color Property - GeeksforGeeks
The background-color property in CSS is used to specify the background color of an element. The background covers the total size of the ......
Read more >How to Add & Change Background Color in HTML
To add background color in HTML, use the CSS background-color property. Set it to the color name or code you want and place...
Read more >How to Set Background Color with HTML and CSS - W3docs
The background-color property is used to change the background color. Inserting it to the <body> element you will have a full colored cover...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@MrFrankel Alright. Everything seems ok! https://stackblitz.com/edit/mat-card-multiple-sections
Great job!
@MrFrankel Testing… 😃