-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Office UI Fabric Layout Grid stop working in SPFx #5763
Comments
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible. |
@rmbw74, Thanks for your reply, sorry but it didn't resolve the problem. |
Hi everyone, |
Having
Specifying @mrcpgn you mention that you've specified the manifest flag, but do not see the fix on the hosted page. Can you confirm the above mentioned stylesheet is not loaded in the "Network" pane? @JackStrap can you confirm the same? Here's the same issue that was resolved in Fluent UI repo: microsoft/fluentui#13112 (comment) |
@rmbw74 I'll follow-up with the issue you're facing in #5764. |
See my last response for more details Hi Everyone, To solve this problem, i added a simple import in my script file(.tsx) like this: I will probably close this issue, cause it's working now. Thanks |
@JackStrap thanks for confirming. I've updated the above referenced release notes documentation to include your point. Note that the selector |
@KevinTCoughlin SPFx v1.10.0 |
I have the same issue. I am working with 1.10. I have not tried any of the solutions, but will try soon. It just seems odd this kind of regression of the sudden. I know it was working as I deployed a few weeks ago to an Acceptance site collection and it was fine. When I was showing to some of the stakeholders, recently, some parts were broken without any further deploy. |
Ok, more details on this issue. After making more test, I realize that importing the So, to solve this, I’ve included the After that everything works fine in dev. or in production. Thanks, everyone! |
Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues |
Category
Describe the bug
I'm working on a SPFx project, i was using the Grid system from Layout in Office UI Fabric i know it was working as of april 28, but now it's not rendering correctly. Here's a example of the code
Steps to reproduce
Create a simple SPFx project, use React as FrameWork add this code to your WebPart
Expected behavior
Should give you a Grid of 12 columns
![image](https://user-images.githubusercontent.com/21227974/82348311-af30b280-99c6-11ea-868d-80a2edc5aba9.png)
Environment details (development & target environment)
"dependencies": {
"react": "16.8.5",
"react-dom": "16.8.5",
"@types/react": "16.8.8",
"@types/react-dom": "16.8.3",
"office-ui-fabric-react": "6.189.2",
"@microsoft/sp-core-library": "1.10.0",
"@microsoft/sp-property-pane": "1.10.0",
"@microsoft/sp-webpart-base": "1.10.0",
"@microsoft/sp-lodash-subset": "1.10.0",
"@microsoft/sp-office-ui-fabric-core": "1.10.0",
"@types/webpack-env": "1.13.1",
"@types/es6-promise": "0.0.33"
},
"resolutions": {
"@types/react": "16.8.8"
},
"devDependencies": {
"@microsoft/sp-build-web": "1.10.0",
"@microsoft/sp-tslint-rules": "1.10.0",
"@microsoft/sp-module-interfaces": "1.10.0",
"@microsoft/sp-webpart-workbench": "1.10.0",
"@microsoft/rush-stack-compiler-3.3": "0.3.5",
"gulp": "~3.9.1",
"@types/chai": "3.4.34",
"@types/mocha": "2.2.38",
"ajv": "~5.2.2"
}
Additional context
Like i said, it was working as 28 April and i notice on May 14 it stopped working and it render like that:
![image](https://user-images.githubusercontent.com/21227974/82350340-397a1600-99c9-11ea-86b2-6d89d61fdd08.png)
You can also refer to those tickets:
#5745
#13112
I know that their is some work around like including in your scss file those lines
:global{
@import 'node_modules/office-ui-fabric-react/dist/css/fabric.css';
}
as mention by Stefan Bauer - SharePoint Framework and the Office UI Fabric grid system
but it was working before without this in your .scss file
Thanks for your contribution! Sharing is caring.
The text was updated successfully, but these errors were encountered: