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?
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;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With