Style of the Custom Library not affecting in Webpart where using custom lbrary #9791
Open
1 of 9 tasks
Labels
Needs: Author Feedback
Awaiting response from the original poster of the issue. Marked as stale if no activity for 7 days.
Needs: Triage 🔍
Awaiting categorization and initial review.
sharepoint-developer-support
sharepoint-developer-support
type:question
Question... if answered, will be tagged as such.
Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
💥 SharePoint Framework
Developer environment
None
What browser(s) / client(s) have you tested
Additional environment details
Describe the bug / error
Want to use custom react library to the webpart
below is component of the react library
below is style.css file
.heading {
color: red !important;
}
above class not change color of the text
text color changes when i apply CSS file from the SPFx webpart or inline CSS only works.
How i can use library CSS class for the styling
Steps to reproduce
npx create-react-library
Cd
Npm pack
Install generated .tgz in SPFx Project
use like other library
Expected behavior
Want to affect style clas from the library stylle.css file
The text was updated successfully, but these errors were encountered: