Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Could not find the referenced rule "[RULE]" in "makeStyles" #18710

Closed
1 task done
grovertb opened this issue Dec 6, 2019 · 3 comments
Closed
1 task done

Could not find the referenced rule "[RULE]" in "makeStyles" #18710

grovertb opened this issue Dec 6, 2019 · 3 comments
Labels
duplicate This issue or pull request already exists

Comments

@grovertb
Copy link

grovertb commented Dec 6, 2019

  • The issue is present in the latest release.
  • [x ] I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯

When using makeStyles, using a defined class and sending a dynamic prop (disabled), it is not working and returns a warning.
In addition, the class is doubling.

Expected Behavior 🤔

To assign the hover dynamically.

Steps to Reproduce 🕹

  1. Example

Context 🔦

Your Environment 🌎

Tech Version
Material-UI v4.7.1
React v16.12.0
Browser Chrome
CRA v3.3.0
@oliviertassinari oliviertassinari added the duplicate This issue or pull request already exists label Dec 6, 2019
@oliviertassinari
Copy link
Member

It's a known issue. There is a duplicate issue about it. My advice, use styled-components.

@justrhysism
Copy link

Mark as duplicate but doesn't reference the duplicate. 🙄

@oliviertassinari
Copy link
Member

Duplicate of #15511

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants