-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Local Copy of Fabric Core Styles Not Loading Icons #6839
Comments
Hey, is there a reason you're on Fabric 5? Fabric 5 is not being actively worked on and is only being serviced for high priority bugs. Does this repro if you're on Fabric 6? Nevertheless, cc-ing @Jahnp as this is an issue with icons. |
@cliffkoh - I'm not aware of a specific reason other than to say I'm part of a larger team working on a project that we've been in development on for the larger part of the year & we haven't been in a hurry to introduce potential new variables into the project by switching/upgrading to a new major version. If that ultimately is determined to be the root of the issue though, I'm sure we'll weigh the pros/cons of a switch accordingly & go from there. |
Hi @donschaefer, thanks for the info. Just as a general principle, I would encourage trying to see if you can repro the issue if you upgrade to Fabric 6 stack. That is the way for us to be most in a position to help. Having said that, @Jahnp is the expert here and is best in the position to offer advice, if any, beyond upgrade to Fabric 6. |
@cliffkoh the bug/codepen that I provided uses Fabric 6, but I just realized this was probably the wrong place to post it since the root of the bug I was trying to address with this was with Fabric Core rather than Fabric React. It wasn't my intention to use this thread to troubleshoot the issue I've outlined on StackOverflow, but rather to just troubleshoot the specific bug I had experienced when downloading/referencing a local copy of the latest Fabric Core stylesheet. To that end (and for anyone who happens to come across this bug first while experiencing a similar issue), I've created a bug over there @ OfficeDev/office-ui-fabric-core#1149. Please feel free to close this or keep it open if you think further discussion might be beneficial. |
Please provide a reproduction of the bug in a codepen:
https://codepen.io/anon/pen/NOEymG
Bug Report
(not relevant)
Priorities and help requested:
Are you willing to submit a PR to fix?
No
Requested priority:
Normal
Products/sites affected:
Any
Describe the issue:
Preface:
Ultimately, my goal is to use the CDN-referenced styles via...
<link rel="stylesheet" href="https://static2.sharepointonline.com/files/fabric/office-ui-fabric-core/9.6.1/css/fabric.min.css">
...as recommended. Unfortunately, my difficulties with doing that are not consistently reproducible (documentation of those issues, as best I can provide, is available at https://stackoverflow.com/questions/52961823/why-arent-office-ui-fabric-core-css-icons-loading-consistently-from-cdn). In the process of troubleshooting those issues however, I came across the following...
Issue:
When using a downloaded copy of the styles found at https://github.com/OfficeDev/office-ui-fabric-core/releases (file directory & name: fabric-core-9.6.1\css\fabric.min.css), I'm unable to get icons to load that (usually) DO work when referencing the CDN copy of the same file.
Actual behavior:
Button with no icon is rendered when when the following code is added:
<a href="https://myapps.microsoft.com/" className="o365-button" target="_blank"><i className="ms-Icon ms-Icon--WaffleOffice365" aria-label="Access Office 365 Applications"> </i></a>
Expected behavior:
Button with icon is rendered when when the following code is added:
<a href="https://myapps.microsoft.com/" className="o365-button" target="_blank"><i className="ms-Icon ms-Icon--WaffleOffice365" aria-label="Access Office 365 Applications"> </i></a>
The text was updated successfully, but these errors were encountered: