-
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
IconButton is broken with icons that are not supported by fabric-core #10449
Comments
@chnldw So this seems to work if |
@aneeshack4 thanks for the comments. we do need fabric-core.css in our project. The latest version I believe it's 10.1.0. Change it to 10.2.0 basically the same as remove it as it's a 404. |
@chnldw @aneeshack4 A work around(ugly) for this would be to provide a styles object to the Possible fix: |
Thanks @varunch7 for the possible workaround & fix. I'm still waiting on hearing back from the author of this code - there's a chance we're not supporting this exact same icon set. Will update y'all when I hear back from them. Meanwhile @chnldw have you tried what @varunch7 has suggested? |
This issue has been automatically marked as stale because it has marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. Thank you for your contributions to Fabric React! |
@aneeshack4 Just checking in to see if you have any updates on this |
@varunch7 I spoke with @Jahnp offline - he has some high pri stuff on his plate at the moment but he's going to look at this after. |
This issue has been automatically marked as stale because it has marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. Thank you for your contributions to Fabric React! |
This issue has been automatically marked as stale because it has marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. Thank you for your contributions to Fabric React! |
@aneeshack4 @micahgodbolt Is there any way we can change the tags in a way that the bot does not close this issue for being stale until @Jahnp gets to have a look at this? |
@varunch7 Your comment removed the tag so it's no longer stale :) Pinging @Jahnp as a gentle reminder |
Apologies for the delay folks. While not the ideal fix (you should expect to be able to use Fabric Core + Fabric React and use icons interchangeably between them), this has been temporarily mitigated with OfficeDev/office-ui-fabric-core#1195, which adds ~350 icons to Fabric Core and brings it up to parity with Fabric React. That PR was incorporated in Fabric Core@11.0.0 due to the removal of 4 icons we no longer have permission to distribute. See this forked version of @chnldw 's codepen for an example: https://codepen.io/jahnp/pen/oNNzGPz?editors=1010 Again, this doesn't solve the bigger underlying issue of Fabric Core's |
This issue has been automatically marked as stale because it has marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. Thank you for your contributions to Fabric React! |
Thanks @Jahnp for the update! The icon parity should mitigate this issue. But right now, we get the Fabric core styles by importing |
This issue has been automatically marked as stale because it has marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. Thank you for your contributions to Fabric React! |
I vote we keep this issue open. It is a significant regression that partners have to workaround via CSS scoping; at least that is how SPO dealt with it. Exit criteria should at least be updated documentation, if not a fix for the issue. Note that the existing "Getting started" documentation link at https://developer.microsoft.com/en-us/fabric#/styles/web/icons 404s.
Can the above be fixed? Or at least documented publicly. Up until recently both libraries worked side-by-side and existing documentation alludes to that being a supported scenario. cc: @patmill @aditima @qianghuang94 Related: SharePoint/sp-dev-docs#4911 |
I reopened it just now because I think it got automatically closed by mistake (the "needs author feedback" label isn't handled properly if someone other than the original author responds). |
That sounds reasonable @KevinTCoughlin. @Jahnp What do you think about these updated changes to the documentation? Looks like @maxwellred might be make these changes in #10987 per @ecraig12345's comments |
I asked @maxwellred to fix the broken link as part of his fabric core upgrade PR #10987. The larger documentation update should probably be done separately. |
Just a heads up, @chnldw you can use Fabric core 11 as you can see in this codepen https://codepen.io/CodeMax/pen/eYmNXem?editors=1010 and @varunch7 that css min file now points to Fabric core 11 as well. |
A temporary workaround for this issue (which I'd forgotten about until looking at the code just now) is to include The presence of If anyone is having an issue with DetailsList not showing icons, a temporary workaround there is to set |
🎉This issue was addressed in #11524, which has now been successfully released as Handy links: |
🎉This issue was addressed in #11524, which has now been successfully released as Handy links: |
Environment Information
Fabric-Core css @10.1.0
IconButton
is broken with icon that is not supported by Fabric Core.Seems one additional
ms-Icon
class is added.Is there any workaround for this?
https://codepen.io/chnldw/pen/jONpKGe?editors=1010
Repro:
PageList
Icon.Expected:
PageList icon rendered correctly.
Actual:
Icon is not rendered. It was working on previous version. around version 7.11
Priorities and help requested:
Are you willing to submit a PR to fix? (No)
Requested priority: (High)
Products/sites affected: (if applicable)
The text was updated successfully, but these errors were encountered: