Set font size of Angular Material Tooltip

后端 未结 8 1564
-上瘾入骨i
-上瘾入骨i 2020-12-18 17:37

I am very new to web development, and I cannot figure out how to solve the following issue, although it may be very easy.

I am using Angular 4 and Angular Material t

8条回答
  •  情书的邮戳
    2020-12-18 18:24

    Try this way. It should work.

    test.component.html

    Show tooltip

    test.component.ts

    @Component({
      selector: 'test',
      templateUrl: './test.component.html',
      styleUrls: ['./test.component.scss'],
      encapsulation: ViewEncapsulation.None,
      /*
      styles: [`
       .myTest-tooltip {
          min-width: 300px;
          background-color: #FC5558;
          font-size: 16px;
       }
    `]*/
    })
    

    test.component.scss

    .myTest-tooltip {
        min-width: 300px;
        background-color: #FC5558;
        font-size: 16px;
    }
    

提交回复
热议问题