Include font icons as a widget dependency

  • 릴리스 버전: Australia
  • 업데이트 날짜 2026년 03월 12일
  • 소요 시간: 2분
  • You can include font icons wherever a widget is loaded by including them as a widget dependency.

    시작하기 전에

    Role required: admin or sp_admin

    이 태스크 정보

    주:
    CSS included as a widget dependency is not scoped and can disrupt other CSS on a page.

    프로시저

    1. In the platform UI, navigate to Service Portal > CSS and create a new style sheet.
    2. Attach the font-icon set to the sp_css record you created, and use the sys_id of the attachment as the src for the font icon.
      For example:
      @font-face {
        font-family: 'Material Icons';
        font-style: normal;
        font-weight: 400;
        src: url('/828b8ca8b7033010897725cbde11a9f7.iix') format('woff2');
      }
      
      .material-icons {
        font-family: 'Material Icons';
        font-weight: normal;
        font-style: normal;
        font-size: 24px;  /* Preferred icon size */
        display: inline-block;
        line-height: 1;
        text-transform: none;
        letter-spacing: normal;
        word-wrap: normal;
        white-space: nowrap;
        direction: ltr;
      
        /* Support for all WebKit browsers. */
        -webkit-font-smoothing: antialiased;
        /* Support for Safari and Chrome. */
        text-rendering: optimizeLegibility;
      
        /* Support for Firefox. */
        -moz-osx-font-smoothing: grayscale;
      
        /* Support for IE. */
        font-feature-settings: 'liga';
      }
    3. Navigate to Service Portal > Dependencies and create a new dependency.
    4. Attach the CSS record you created to the new dependency using the CSS Includes related list.