fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

Dropdown CaretDown icon mising

Open holysnake91 opened this issue 9 years ago • 3 comments

Bug Report

  • Package version(s):5.0.1
  • Browser and OS versions: Chrome

Priorities and help requested (not applicable if asking question):

Are you willing to submit a PR to fix? ( No)

Requested priority: (High)

Describe the issue:

The CaretDown icon in Dropdown was missing image

Actual behavior:

I used the Dropdown inside a Panel. When render out the UI of Dropdown, the icon CaretDown was missing. I was using the default Dropdown setting.

If compare the html in your site with the one i have render there is different in the component

image this from https://developer.microsoft.com/en-us/fabric#/components/dropdown

image this from mine render

from mine render the "i" was wrapped in a "span"

Expected behavior:

Dropdown with the CaretDown icon.

If applicable, please provide a codepen repro:

holysnake91 avatar Sep 27 '17 10:09 holysnake91

Do you get a warning in the console like

The icon "caretdown" was referenced but not registered.

Maybe you need to add initializeIcons(); to your code See https://github.com/OfficeDev/office-ui-fabric-react/blob/master/packages/icons/README.md

eNeRGy164 avatar Sep 27 '17 14:09 eNeRGy164

Yes, please call initializeIcons() in your application startup. This will let you either use the default CDN, or provide your own if you want to host the fonts in your CDN.

This is the only way we can support partners to build things using Fabric, but not have to reference every possible icon. There are many cases where partners may not even want icons, and this solution supports that as well.

Can you please check if this fixes your issue?

dzearing avatar Sep 27 '17 21:09 dzearing

Yes, after add initializeIcons() , the icon was appear. Please add the information on the website as this is a manual work needed by developer. Currently i can't find any information for this in the website.

holysnake91 avatar Sep 28 '17 03:09 holysnake91