Skip to content

Commit 9acd961

Browse files
wobbaVesaJuvonen
authored andcommitted
Changed office-ui-fabric-react version from 2.0.0 which don't exist at all, to 2.34.2 which is the latest v2 release. (SharePoint#772)
If you don't think 2.34.2 is the best, at least use 2.0.1 or 2.0.2 which exists.
1 parent 7c9110c commit 9acd961

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/spfx/web-parts/guidance/office-ui-fabric-integration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Here's a summary of currently supported options for using the Office UI Fabric w
4242

4343
Here are the recommendations for using Fabric in React based web parts in a safe and reliable way:
4444

45-
- Web part developers should place an explicit dependency on the specific version of Fabric React version 2.0 in their **package.json** file `"office-ui-fabric-react":"2.0.0"`. Please note, Fabric React versions older than 2.x are not supported.
45+
- Web part developers should place an explicit dependency on the specific version of Fabric React version 2.0 in their **package.json** file `"office-ui-fabric-react":"2.34.2"`. Please note, Fabric React versions older than 2.x are not supported.
4646
- Web part developers need to **statically link** to the Fabric React components. This includes the Fabric React component in your web part bundle. This will ensure that if the page level implementation of the Button were to change, it will not affect your web part adversely.
4747
- **Overriding** Fabric React component styles should be done only sparingly and within a local scope. A developer can override using custom CSS classes with `!important` and style tags. Both will have higher specificity than the component classes. Please note, if you override using a simple class, then you may run into load order issues. i.e. If `ms-Button` loads after your class, it will take precedence because their specificity is the same.
4848
- **Theming** should just work as is. No extra work is required on the part of the developer.

0 commit comments

Comments
 (0)