fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

[Docs]: fluent-ui-icons-tool

Open renatodias13 opened this issue 1 year ago • 5 comments

Area

React Components (https://react.fluentui.dev)

What kind of documentation issue are you reporting?

  • [ ] Reporting a typo
  • [x] Reporting a documentation bug
  • [x] Documentation improvement
  • [ ] Documentation feedback

Is there a specific documentation page you are reporting?

https://developer.microsoft.com/en-us/fluentui#/styles/web/icons#fluent-ui-icons-tool

Description

Following the CDN issue described in this ticket: 🔗 https://github.com/microsoft/fluentui/issues/32861#issuecomment-2362331394

We attempted to apply the suggested workaround by initializing icons directly from a local CDN to not use the sharepointonline cdn:

initializeIcons('https://my.cdn.com/path/to/icons/');

However, the only version of Fluent UI supported by SharePoint Subscription Edition and SPFx 1.4.1 is Fluent UI v5, which doesn't support the initializeIcons method.

Previously, we were able to use Fluent UI icons through inline CSS generated by the Fluent UI Icons Tool, as described in the official documentation: 🔗 https://developer.microsoft.com/en-us/fluentui#/styles/web/icons#fluent-ui-icons-tool

Unfortunately, it seems that this tool has recently been made internal-only, as reported here: 🔗 https://github.com/microsoft/fluentui/issues/35226 🔗 https://github.com/microsoft/fluentui/issues/35140

As a result, we can no longer reference local or custom icon assets.

Could you please advise if there is any alternative or supported method to continue using Fluent UI icons tool, so that we can still keep using the inline-css icon method not dependent on the online CDNs

Validations

  • [x] Check that there isn't already an issue that requests the same feature to avoid creating a duplicate.

renatodias13 avatar Oct 16 '25 14:10 renatodias13

Hello @renatodias13, unfortunately there's no alternative to that tool and it will most stay internal. The recommended way to use icons is through a CDN. I can take a look why styling is not working but I need a link with your example to e.g. Stackblitz.

ValentinaKozlova avatar Oct 22 '25 10:10 ValentinaKozlova

Hi @ValentinaKozlova,

Using the CDN is not a viable solution in our case. We use Fluent UI on SharePoint Subscription Edition (the SharePoint itself uses Fluent UI v5, so no other version can be used).

An important note: since SharePoint Subscription Edition is on-premises, some users don’t have internet access, so pointing to the SharePoint Online CDN doesn’t work for us. The only alternative was using the tool to download the assets and use the inline CSS generated with the Base64 images.

As shown in the screenshot below, the alternative to using Microsoft’s online CDN is to host a local CDN containing all the assets — which we can no longer obtain, since the previous method to get them relied on the Fluent UI icons tool.

Image

https://github.com/microsoft/fluentui/wiki/Using-icons/f60fc129945263782708736c8c518b3d30653c8e

To use initializeIcons, we need at least version 7. Unfortunately, Microsoft SharePoint Subscription Edition, as shown in the screenshots below, only supports React 15.8.

Image Image

https://learn.microsoft.com/en-us/sharepoint/dev/spfx/compatibility

From the Fluent UI documentation in the screenshot below, we can see that the required React version is at least 16.8.

Image

https://github.com/microsoft/fluentui/blob/master/docs/react-wiki-archive/Fabric-7.md

The NPM package also references the SharePoint Online CDN for the icons, so that isn’t a workable solution for us either: https://www.npmjs.com/package/office-ui-fabric-react/v/5.135.6?activeTab=code

renatodias13 avatar Oct 23 '25 11:10 renatodias13

no assignees

Gentle ping that this issue needs attention.

Hey @renatodias13, I talked to our team. Unfortunately we can't help with this issue. Closing this as fluent-ui-icons-tool will stay internal

ValentinaKozlova avatar Dec 01 '25 13:12 ValentinaKozlova

Hi @ValentinaKozlova

At least ask the team to fix the documentation so that we don't click on links we shouldn't have access to.

Best Regards Renato

renatodias13 avatar Dec 01 '25 16:12 renatodias13