Skip to content
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

Gracefully prevent styles from being applied #195

Open
wheredoesyourmindgo opened this issue Dec 8, 2018 · 2 comments
Open

Gracefully prevent styles from being applied #195

wheredoesyourmindgo opened this issue Dec 8, 2018 · 2 comments

Comments

@wheredoesyourmindgo
Copy link

Is there a more graceful way to prevent a style from being applied? Feel free to close out this issue. I just want to prevent these selectors from being used. The following works in my options, but it still causes an empty CSS rule to be included with the stylesheet.

const theme: OptionsType = {
 overrideStyles: () => ({
    'th:first-child,td:first-child': null,
    'th:last-child,td:last-child': null
  })
}
@nicholasmaddren
Copy link

Having exactly the same problem.

@lukepearce
Copy link

lukepearce commented Apr 21, 2023

Here in 2023 after getting insanely frustrated with these awful default style choices... questioning why someone decided to use this library back in 2018.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants