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

wildClasses is no longer supported in version 0.9.3 #55

Closed
yl-flyer opened this issue Jun 29, 2018 · 1 comment
Closed

wildClasses is no longer supported in version 0.9.3 #55

yl-flyer opened this issue Jun 29, 2018 · 1 comment

Comments

@yl-flyer
Copy link

I updated react-popup to version 0.9.3, i found that wildClasses is no longer supported
is there another alternative?

ps: i use it to customize buttons

@tbleckert
Copy link
Contributor

Ah, sorry for that, forgot to mention it as a breaking change.

Removing wildClasses is a part of implementing a better way of styling everything. Right now the classes follows the BEM methodology. So it works like this:

// Mount
<Popup className="mypopup" />

// Use
Popup.create({ className: 'alert' });

This would generate the class mypopup--alert instead of the unmodularized version alert. The same goes for buttons that uses the object format.

In an upcoming version you'll be able to define the class format yourself as well as a few other options.

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

No branches or pull requests

2 participants