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

[styles] Safer prefix logic #11943

Merged

Conversation

oliviertassinari
Copy link
Member

Help with #11942.

@oliviertassinari oliviertassinari force-pushed the with-styles-safer-prefix branch from f369353 to 97043c9 Compare June 21, 2018 22:16
@oliviertassinari oliviertassinari added the new feature New feature or request label Jun 21, 2018
@oliviertassinari oliviertassinari merged commit 83ee54b into mui:master Jun 22, 2018
@oliviertassinari oliviertassinari deleted the with-styles-safer-prefix branch June 22, 2018 07:45
@jmcpeak
Copy link
Contributor

jmcpeak commented Jul 6, 2018

Hey - great fix - but we are using recompose along with some nested components - we hit that 100 character prefix already. I'd like to stop getting these console errors - maybe an option to turn off the warning?

@oliviertassinari
Copy link
Member Author

@jmcpeak As far as I have read the CSS specification, there is no max-length for a CSS selector. What's the length of your displayName. Can we get along by increasing the threshold?

@jmcpeak
Copy link
Contributor

jmcpeak commented Jul 6, 2018

Yeah - bumping the limit would work as well.

Here's the longest one to date:

Connect(withState(withState(withState(withState(withProps(Connect(withProps(withHandlers(withHandlers(withHandlers(withHandlers(pure(PayerDetailScheduledTransactions)))))))))))))

256 seems reasonable?

@oliviertassinari
Copy link
Member Author

@jmcpeak Do you want to submit a pull request? :)

@jmcpeak
Copy link
Contributor

jmcpeak commented Jul 6, 2018

It's been awhile - but sure - I'll put on together tonight... :-)

@oliviertassinari
Copy link
Member Author

@jmcpeak Anytime you want

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

Successfully merging this pull request may close these issues.

2 participants