-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
Abandon StyleC #48
Comments
i never used it , +1 from me :) |
Thanks @chandu0101 - the more feedback and voices heard the better. It's sorta sucks because it actually does address the requirements it was intended for - the problem is it's just a bit fiddly/annoying/alien to use. Might be better to replace it with something based on plain Scala case classes or something. |
My motivation for using it to be able to skin a component (that represents more than one element). For example, I have a
I'd like my component to provide a default skin (defined styles for wrapper, icon, and input) but also allow the caller to pass in a custom style set via Props. styleC doesn't really serve this purpose or at least I don't see how it could. What would the type of my style be in Props, just |
For me styleC is the most complicated and unclear feature - because of the terrible usage syntax. I understand that this conception may be usefull sometimes, but it creates a lot of syntax noise in the code. Also, in the most cases I need So, my proposal - remove styleC and rename |
I started with it and ended up ripping it out and prefixing groups of styles. Dropping the shapeless dependency is also a plus for code size. |
Yeah same. Will definitely do this (and other work) but it will have to On 25 November 2015 at 13:10, Joseph Price [email protected] wrote:
|
The
|
Screw it - I'll just remove it without replacement in 0.4.0. No one likes it, I don't think anyone uses it (except me and only in one place). I'd normally deprecate it and offer a replacement but I think this time it'll be better just to get Shapeless off the classpath. |
It might be time to go back to the drawing board for
StyleC
. I barely use it and I was its biggest proponent. Does anyone else use it?Similar to the Router situation in scalajs-react, it might be better to trade-in a little safety for a much larger portion of usability and Scala-friendliness. Would also allow us to drop the Shapeless dependency.
The text was updated successfully, but these errors were encountered: