-
-
Notifications
You must be signed in to change notification settings - Fork 161
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
Add active class page helpers #969
Comments
I don't really think link "User list", Users::Index, class: %(bg-gray #{class_if(true, "bg-red")}) is an improvement over link "User list", Users::Index, class: %(bg-gray #{"bg-red" if true}) for a couple of reasons...
|
@bdtomlin You're totally right about Regarding 2 I think it depends on what CSS you are writing. I've been using Tailwind so each active link tends to be different But maybe we have some built-in helpers for |
@paulcsmith, based on your reply, I agree that active_link_if and class_if are probably not the best examples of page helpers with which to initialize a new app. My original intent on this was not about an active class helper, but more about having page helpers in general and adding a default example so it was clear how to set up your own. |
https://gitter.im/luckyframework/Lobby?at=5dd31ca84adf071a8453ee00
Just an example
We should think this through, but this or some version of it should definitely be built-in to Lucky
Maybe this could be simplified?
The text was updated successfully, but these errors were encountered: