question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

jquery-application-toastr, no icons if I use CSS iconClasses in Online

See original GitHub issue

jquery-application-toastr

Authors

Chris Kent (thechriskent.com, @thechriskent)

Expected or Desired Behavior

Greetings! I adopted code from this sample to work in webpart https://github.com/SharePoint/sp-dev-fx-extensions/tree/master/samples/jquery-application-toastr

and if I use it in on-premise 2019 - it works like a charm, and icons are displayed like in this picture:

1-2020-05-06_005950

(my solution was “On-premise 2019 and SharePoint Online”) Expected behavior is to see same icons in SharePoint Online

Observed Behavior

But there are no icons in O365…

Steps to Reproduce

I tried “On-prem 2019 and SharePoint Online”, and “SharePoint Online only” webparts, behavior is same… - there are no icons visible in SharePoint Online.

I also tried to google and do something like this, but no luck:

import { initializeIcons } from 'office-ui-fabric-react/lib/Icons';
// import { initializeIcons } from '@uifabric/icons';

// ..

// then in function: 
initializeIcons();

Also, noticed that if I comment this section, I see different styles and icons:

1-comm-2020-05-06_010749 3-online-commented-section-2020-05-06_004831

But when uncommented - colors applied but no icons visible…

2-online-not-commented-2020-05-06_004731

Environment Details (Development & Target environment)

  • OS: [Windows Server 2019 ]
  • Target Environment: [SharePoint Server 2019 | SharePoint Online]
  • Framework: [Node.js v10]
  • Browser(s): [Chrome]
  • Tooling: [VS Code]

versions:

versions-2020-05-06_011424

Best regards, Gennady

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
Gennady-Gcommented, May 6, 2020

Well, finally I haven’t found the way to make Office UI icons visible, so I got rid of them and replaced them with base64.

Also added global styles (I am newbie, not sure it is best-practice, but this dirty workaround works).

So toastr options now looks like:

      toastr.options.titleClass = 'my-toast-title';
      toastr.options.messageClass = 'my-toast-message';

      toastr.options.iconClasses = {
        info: `${styles.info} my-toast-info`,
        warning: `${styles.warning} my-toast-warning`,
        error: `${styles.error} my-toast-error`,
        success: `${styles.success} my-toast-success`
      };

and in SCSS file:

  :global .my-toast-info {
      background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFwAAABcCAYAAADj79JYAAAHy0lEQVR4Xu2cbcimRRXHf8dMU0ytD/ZBRYlMUCgyBcm3NCkqU1HQdtNFW5XdVRDSdTVR1i1rd2kXtrY1xXdF7UvKuusbritZKEXmCwq+YIKWqOALWkqpJ/4x13btxf0813Pf95m5H2EG9sM+c18zZ37XmTNnzpy5jFqKErCivdXOqMALK0EFXoEXJlC4u6rhFXhhAoW7qxpegRcmULi7quEVeGEChburGl6BFyZQuLuq4RV4YQKFu6saXoEXJlC4u6rhFTi4+4nAt4EDgD2BHYEdYKv4/QfAe8DrwAvAJmC9mT1dmOFQ3c0aDXf3M4E5wEHATkON4v8//hB4CbgL+PVshD9R4O7+aeBc4Cxgj44Gj8h8y2PvA5uBlWb24LiNRT0/MeDuPh+4CPj8NKAdeBd4BRDAbvkcsCuw/TRA9NwdwGIzezkK3KjtFAfu7vsBa4CvA9sOEPxfwBPA7cAtM4Hk7rL3c4EjppkprwErzGz1qLAinisK3N1PAX6eoLTllyZL+25WvZm9M+rg3P1bwPnAocCnOu1oodWLnD9OH6PKpueKAXf3C4AfA7t0BJbmrTazFeMMpPusux8M/GTATNLL/QOwYBKLahHg7q6Bn5dcu4aNtG29Fs2ZmI1RX0ZaK5Z2ZpWgy2zNLQ09O/ApYL8JLDezlaOCHOa5tG6sAw5vzeqJQM8K3N0XJJstT6Ip/wCWmJnsdbGSXNDrgOOBT6SOBV0bphNK2fRswN39KOD6tFNswGphPMvM7i5GutORu98A/KAFXZulG8xMbmr2kgV40qbfAd9oTeG35Heb2W+yj2qaDiYtWy7gWqSWtNwybT7kiVw8SdhN38mm3wp8qSXP48BJZvZsThnDgafBaGe3T8tObjCzY3MOZNi23f37ircAn03P/gf4lZnJm8pWcgBfKx+3ZSP/ltyvR8YZhbvfn0yUmtHG6Gwzu2nMN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jNxZZN1514+ejZbwm7+y+VZ9K51DWRnPXswFvQdb9G9+jbfSoqp9P+i3PY9XRn82fAVzr9amatMrPLhp0p4/6+CPAEXYvUVSmE21xq+l8VILdxnZmtGndAqS8lfS4GvjPgcqxi9QodXxHR17BtFAPeCDbF9G7A61McSjm7wsyGCo2mjYxuOiuW82WgyS/Z0nVJMzbViygOPGmg8j0GTfU2HMGXu/YnQKdJj7XdNndX/EPfUjkkHRzoIwndq95Ne1lN1zBaPhHgLW3XxauzM3y6o+lCR2UKvV5iZmNdeRkG6nS/nSjwluuodOF5gK6qtO37qOOURuvAYm0JL2gYIScOvOMry4WUxuvTHnunTy/NZDzy7eVT67qI/P6bc3g9MxGk7zezCnhXWHeXG6nEeEX0tAhK+/VPpkJFn1t6FFAeYLFNVB/UWW1SxhH+4/jsrNbwjyPQPpkr8D5CwfUVeDDQvuYq8D5CwfUVeDDQvuYq8D5CwfUVeDDQvuYq8D5CwfUVeDDQvuYq8D5CwfUVeDDQvuYq8D5CwfUVeDDQvuYq8D5CwfUVeDDQvuYq8D5CwfUVeDDQvuYq8D5CwfUVeDDQvuYq8D5CwfX/BbUy53sMru/9AAAAAElFTkSuQmCC") !important;
      background-position: left !important;
      background-size: 18% !important;
      padding-left: 65px !important;
  }

  :global .my-toast-warning {
      background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFwAAABcCAYAAADj79JYAAADIklEQVR4Xu3bvYoUQRTF8XN9Ak18EZONRFDMDcRoQ0Ew1tjAyCdQDE2UDYxMRJ/B9zASBNOSgW5pZnfsqu5bp+5dzsKySTG359d/mt7+MOiHKmDUaRoGgZMjELjAyQLkcSpc4GQB8jgVLnCyAHmcChc4WYA8ToULnCxAHqfCBU4WII9T4QInC5DHqXCBnxYopTwFcNfMzslObuNSFV5K+QbgDoCXZvbeTYH4QWnAp7rfALgJ4LuZPSA6uY3KBH6o+/70zX9lrTwF+FHdc20pK88Cvqx7Bk9ZeXjwE3WnrTwD+LLuAuDweyPrsTw0+BV1/wTwA8BD4N8zNamO5dHBj+u+APARwFsAtzNWHhb8RN3PzOxzKeUTgMcZK48MfqluM3tyqLqU8ihr5SHB/1f3fHqStfKo4CfrXoCnrDwceE3dmSuPCL5ad+bKQ4G31J218mjg1XVnrTwM+Ja6M1YeCby57oyVhwDfU3e2yqOAr9Y93c+c7/j8BvDczD5kq3w4eG3da+DTv/zhr7FEAF+te8JcrrtUeJZrLEPBa+uuBc9Q+WjwqrobwUNfYxkG3lJ3C3j0ykeCV9e9ATxs5UPAW+tuBY9c+Sjwpro3goesnA6+pe4t4FErHwHeXPcO8HCVU8G31r0VPGLlbPBNde8ED1U5DXxP3XvAo1XOBN9ctwN4mMop4Hvr3gseqXIW+K66ncBDVN4d3KPuCfwdgLPphsMfAK/N7Mt8A6Lmb4SntRjgu+uuwaxZE+GZxK7gXnXXYNauGV15b/Awdc87ZHTl3cC96665p5mh8p7grnU7gw87Y+kC7l23x2nhcf2jjuW9wF3r9jotXKKPOpa7g/eou/bY3LpuROU9wN3rboWsXT+iclfwTHUvThOpT2t5g1/1TnxtcFHWdX2H3w185Z34KJi129Ht7WZP8OtQ97xDulXuAl5KuQfgFYBbtQklWPfVzF54b6cLuPdGXefPEzh57wpc4GQB8jgVLnCyAHmcChc4WYA8ToULnCxAHqfCBU4WII9T4QInC5DHqXCBkwXI41S4wMkC5HEqXOBkAfI4FU4G/wtCspZ7f7xxowAAAABJRU5ErkJggg==") !important;
      background-position: left !important;
      background-size: 18% !important;
      padding-left: 65px !important;
  }

  :global .my-toast-error {
      background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFwAAABcCAYAAADj79JYAAAHy0lEQVR4Xu2ca6hFRRXHf0vNF5XaB/ugYkQlKBRWQuQzi6KXSoKmqWg+8AWC5hvDrHyRgmVaovlE7UuG+UZTskiKLBUFS1QwFRVK8YmPVvxjbdtuzr37nnPWzLnCDNwvd86eWfPba9asWbNmG61UJWBVe2ud0YBXVoIGvAGvTKByd03DG/DK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P23Xx6ogCn+7outBRmUKvp5jZXFdepoG63G8XCjy0Xa6j0oX3A3RVpW/fZx2nNFqpcefX8IKmEXLhwAe+slxIabw+7fGh+PTSSsYj314+ta6LyO+/qoTXsxJBxn6zqoAPhXV3uZFKjFdET4ugtF9/MhUq+tzSvYDyAKttosagrmqTMo/w78ZnV7WGvxuBjsncgI8RSq5vwJOBjjXXgI8RSq5vwJOBjjXXgI8RSq5vwJOBjjXXgI8RSq5vwJOBjjXXgI8RSq5vwJOBjjXXgI8RSq5vwJOBjjXXgI8RSq5vwJOBjjXXgI8RSq5vwJOBjjXXgI8RSq5vwJOBjjXXgI8RSq7/LwaG53vqdSltAAAAAElFTkSuQmCC") !important;
      background-position: left !important;
      background-size: 18% !important;
      padding-left: 65px !important;
  }

  :global .my-toast-success {
      background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFwAAABcCAYAAADj79JYAAAG50lEQVR4Xu2cWcxdUxSAv4WYZ4kpvIkHQvBWQiSmmAmCIpRGDA1BEVRoRMVQCTFFUA1KQyuGapQmooY3hOiDeCOmB9Q8L1ntus1x/jucu/c++/73t/fb/989rP2ddfZee611tlBKVgKSdbQyGAV4ZiUowAvwzAQyD1c0vADPTCDzcEXDC/DMBDIPVzS8AM9MIPNwRcML8MwEMg9XNLwAz0wg83BFwwvwzAQyD1c0vABfR0BVdwOmAwcDewI7AZsCm9QY/Qr8AXwNfAKsAhaJyOeZWTYablJpuKruBVwKHAPsDmzYaBYTK/0NfAa8AtwvIqsD+0nebFIAV9WTgWuAA4CNE8/StP9d4B4ReT5x30N3N1LgqnoUcD1wILBRH+l/B34EvgL+qdXbANgZ2KrLclOt+hfwDjBPRF4dmlSiBiMBrqoG527gbF+X69PpLAkrgeUisqTJfFX1FOBo4LA+S9JvwJPAlSJiDzFryQ5cVQ8F7gNsva6PbwBW2O8i8kYMCR9nFnCka3+1OwVsXZ8VO86wMmYFrqoXAzcDO9YENdAvANelti7c2rkNOLEL+G9MHhF5cFhw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FTaFnhj25zULXiOCDzyDoOWH7XCb3wceFjDra94E+BzjJ/dkdq2qg1y/GfFPVsTjaRzuvekD/0x1iWWC78oyF8yqJe7YH9PUHwEH+7BjNdthj456tCxocgOgBvdVlZP0THZcAhGtHshBbDXoW2D6H8QixubBJg8gO3TJv3+sXFotdRirabbmQ4xNEduhJ0yQ8oX5Nqphiv4czdmkSDrwkAvV5qkm8hdX+c6aNJVxKbMPPkp6XHLhreUnm7KENrQB36CVduQv0NoFbeKok5Negtwbctbx8cpITuEPv9lGV+bznpk4FbrqJ9vheNMsXGq1qeOVA0e0bzfLZYFMNCak34MNYS3xv9cKB/9WHsRVN7/Xp9y/Ai8DVIekSA06Plpx0J3ACsHmtbvbvRbMsKbWDkV1uYDdJ7Dfiyw0+8Bsloi5RGPZtzw684nO2r5Mtcl/9BLsjf/X6jiVNv6BoeH2HJfVY6rGlZEz96ztq2l4uqBn2FUlR369gstzyaeUKphREG/ZRLhlrCKqNaj2u0bMLyOprfrlGr40HMFX6HImVMlXghcyjAA+hFtGmAI+AF9K0AA+hFtGmAI+AF9K0AA+hFtGmAI+AF9K0AA+hFtGmAI+AF9K0AA+hFtGmAI+AF9K0AA+hFtGmAI+AF9K0AA+hFtGmAI+AF9K0AA+hFtGmAI+AF9L0X7qYUYrFsAyrAAAAAElFTkSuQmCC") !important;
      background-position: left !important;
      background-size: 18% !important;
      padding-left: 65px !important;
  }

  :global .my-toast-title {
    		font-family: "Segoe UI Web (West European)",Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif;
        font-size: 14px;
        font-weight: 600;
  }

  :global .my-toast-message {
		    font-family: "Segoe UI Web (West European)",Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif;
        font-size: 12px;
  }

	//Imitates much of the ms-Icon class from Office UI-Fabric but
	// is designed to display without the <i>
	.fabricIcon:before {
		position: fixed;
		font-family: FabricMDL2Icons;
		font-style: normal;
		font-weight: 400;
		speak: none;
		font-size: 28px;
		margin: 4px 0 0 -36px;
		-webkit-font-smoothing: antialiased;
	}

And now it works:

fixed-icons-2-2020-05-06_190656

I used this tool to convert icons to base64, thank to @joshmcrty

0reactions
dborchers-gccommented, Aug 12, 2021

Hi @dborchers-gc ! My sample is not this cloned solution, but HelloWorld example where I hard-coded missing icons with base64 strings. I also replaced some css to adjust icon positions. Sure You can play with this solution and create sppkg.

For me - encoding to base 64 was the only way to support different versions of Fluent UI. Maybe there is another solution, don’t know.

Best regards, Gennady

okay i got it

but the missed icons seems to be a poroblem in this solution.

maybe @PopWarner or @thechriskent have a solutiosn for this or an update for the sample?

Read more comments on GitHub >

github_iconTop Results From Across the Web

IconComponent not applying css icon class properly - Telerik
Hi, I have the following problem with Kendo UI's IconComponent: When changing the name property of the IconComponent dynamically e. g. via a ......
Read more >
CSS Icons - W3Schools
The simplest way to add an icon to your HTML page, is with an icon library, such as Font Awesome. Add the name...
Read more >
Adding icon image to css class for html elements
I'm using the fas fa-icon class to represent the use of the fontawesome library, you must specify your own icon. Here's another smart...
Read more >
icons - Web app manifests | MDN
The icons member specifies an array of objects representing image files that can serve as application icons for different contexts.
Read more >
Ionicons Usage Guide
Download our premium designed icons for use in web, iOS, Android, and desktop ... If you're using Ionic Framework, Ionicons is packaged by...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found