简体   繁体   中英

How to implement styles or sass / css modules in react sticky table

I'm trying react-sticky-table third party library. It is not accepted CSS or styles. but some styling or CSS elements work react-sticky-table. it is not accepting the styling fully

I want to fully access the CSS and styling properties and elements in react-sticky-table. So how to solve it?

If you have any other solution, please refer to it here.

package link: https://www.npmjs.com/package/react-sticky-table

demo link https://henrybuilt.github.io/react-sticky-table/?path=/story/basic--basic

I faced CSS or SASS styling is not working in react sticky table. Actually react sticky table works perfectly. If you using css / sass modules in your react app, you need to access global style of react stick table.

How to access global style? you may use :global pseudo selector, You will be achieved the global styles in css / sass module.

If you use normal css / sass (without module), you don't need to specify the :global pseudo-selector. Because normal css / sass is global style.

Otherwise we can achieve inline css styles

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM