Skip to content

[typescript] withStyles() complains unless using as #10995

@franklixuefei

Description

@franklixuefei
  • I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

No type errors should be reported for adding legal styles kv pairs in withStyles()

Current Behavior

For some style properties, like position, overflow, etc, specifying a valid value, e.g., position: 'absolute' or overflow: 'auto' reports type errors.
Example:
image

The only hack is to use as:
image

Your Environment

Tech Version
Material-UI beta.41
React 16.2.0
etc

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions