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

Suggestion: option to change class names. #89

Open
meneerprins opened this issue Apr 19, 2018 · 3 comments
Open

Suggestion: option to change class names. #89

meneerprins opened this issue Apr 19, 2018 · 3 comments

Comments

@meneerprins
Copy link

Would it be possible to add an option to change the class names of the elements? For projects that don't use the CSS BEM method for naming classes but something else it can be very odd.

@richardvenneman
Copy link
Owner

This is cool with me, but will have to think bout the a API. Do you have any suggestions?

We need to take 5 classnames into account (floatl--focused, floatl--active, floatl--multiline, floatl__label, floatl__input). My first thought is passing in an object as an argument to specify classnames, but this won't look nice and will require a major version bump.

@meneerprins
Copy link
Author

Maybe like how choices handles it? https://github.com/jshjohnson/Choices

@richardvenneman
Copy link
Owner

richardvenneman commented Apr 19, 2018 via email

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