Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Making part of text in Material Tooltip bold

So, let's say I have a mat-tooltip element like this:

<button mat-raised-button matTooltip="Info about the action">
  Action
</button>

Now, how to make only the "Info" part of text bold? I was thinking about using :before pseudo element, but the tooltip content in my case is rendered dynamically. Do you have any ideas on how to achieve it?

like image 560
Jan Paweł Niepsuj Avatar asked Aug 21 '18 08:08

Jan Paweł Niepsuj


1 Answers

You can do the following in your .component.css file:

::ng-deep .mat-tooltip {
  font-weight: bold;
}
like image 114
Yoni A Avatar answered Sep 17 '22 09:09

Yoni A