typography.js icon indicating copy to clipboard operation
typography.js copied to clipboard

Gracefully prevent styles from being applied

Open wheredoesyourmindgo opened this issue 6 years ago • 2 comments

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
  })
}

wheredoesyourmindgo avatar Dec 08 '18 22:12 wheredoesyourmindgo

Having exactly the same problem.

nicholasmaddren avatar Dec 28 '18 13:12 nicholasmaddren

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

lukepearce avatar Apr 21 '23 14:04 lukepearce