SharePoint / sp-dev-docs

SharePoint & Viva Connections Developer Documentation
https://docs.microsoft.com/en-us/sharepoint/dev/
Creative Commons Attribution 4.0 International
1.25k stars 1.01k forks source link

the obsolete library #8328

Open dplotnikov opened 2 years ago

dplotnikov commented 2 years ago

Support for Office UI Fabric JS has ended. We recommend that you use the Fluent UI framework instead.

source https://developer.microsoft.com/en-us/fabric-js


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ghost commented 2 years ago

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

PooLP commented 2 years ago

SPFx use Fluent UI React, but with old name (UI Fabric) and old version (7). The JS lib has long been deprecated.

@AJIXuMuK, the update to v8 is on roadmap for next version (with react 18 ^^) ?

AJIXuMuK commented 2 years ago

@dplotnikov - we do have a reference on styles from Office UI Fabric JS but not using them. It is mostly for backward compat. @PooLP - for the Fluent UI React v8 (or v9) - the work is in progress but on early stages. But even today you can update the reference in your project and use v8 if you want to.

PooLP commented 2 years ago

@AJIXuMuK That's what I do. But if you want to use, for example, the PnP Spfx control, you have to keep the V7 otherwise the packages are much too heavy. It's a pity.

AJIXuMuK commented 2 years ago

@PooLP - that's true. I think we need to work on PnP Controls too to remove direct dependency.