Skip to content

Conversation

mabeyj
Copy link

@mabeyj mabeyj commented Dec 15, 2020

  • Add codeFold and codeFoldContent values to ReactDiffViewerStylesOverride. This fixes a type error that occurs when attempting to override these styles:

    Type '{ variables: { light: { removedBackground: string; addedBackground: string; }; }; codeFold: { background: string; borderTop: string; borderBottom: string; textAlign: string; }; codeFoldContent: { ...; }; ... 7 more ...; content: { ...; }; }' is not assignable to type 'ReactDiffViewerStylesOverride'.
    Object literal may only specify known properties, and 'codeFold' does not exist in type 'ReactDiffViewerStylesOverride'.

  • Add codeFoldContent to ReactDiffViewerStyles. For completeness, since all other styles are specified here.

  • Add codeFoldContent to README.

  • Add a test for rendering the component with all available styles. This will fail if there are any type errors.

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

Successfully merging this pull request may close these issues.

1 participant