Reputation: 1535
I have a mat-tooltip that I was styling through a CSS like this:
mat-tooltip .mat-content {
// custom values, styling is not applied
}
However since 1.1.2 release of angular material this styling is not being applied to my tooltips. Has anybody encountered a similar issue?
Upvotes: 6
Views: 17137
Reputation: 5855
If you want to style all your tooltips, just override .md-tooltip
class:
(JsFiddle)
.md-tooltip {
height: 35px !important;
background-color: red !important;
color: white !important;
border-radius: 5px;
}
md-tooltip
element:
HTML
<md-tooltip class="custom-tooltip">
I'm a custom tooltip
</md-tooltip>
CSS
.custom-tooltip {
top: 25px !important;
height: 35px !important;
background-color: red !important;
color: white !important;
border-radius: 5px;
}
Upvotes: 16