Forum Discussion
loksayi
Jan 06, 2021Copper Contributor
SPFx webparts issue when bootstrap is included
Hi Team, We are having a issue with web parts that were developed with ReactJS/no javascript framework with Bootstrap 4 in our SharePoint online sites due to the out of the box elements using class ...
loksayi
Jan 11, 2021Copper Contributor
Hello team,
Any one able to replicate this issue from your end ? Any solution from Microsoft or Should we change override bootstrap framework in all our web parts ? Kindly provide an update.
- nicolasvivierMar 29, 2021Copper Contributor
loksayi I have solved the issue by inserting the following Css in my SPFX webpart:
File: style.css
File content
div > div.CanvasZone--fullWidth > div {width: 100%;}Import the css fileI have also tried to inject custom script via a dedicated webpart but it does not work. Css must be injected by your SPFX webpart