-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
Custom classes excluded #41
Comments
@mike-sheppard I have a pull request in for this issue ( #39 ) already. I couldn't quite figure out what the filter was doing so I just removed it, and everything seems to be working as usual again, but perhaps that isn't the best approach. It got me where I needed to be for the time being at least. |
Thanks @jellycode I did see that PR, nice one! I think the idea behind it is to exclude a bunch of the default nav items class bloat, which I'm all for! I'll pop a PR over shortly that preserves this + custom classes :) |
@Log1x thank you for your effort! Is there any plan for releasing that anytime soon? |
First of all, thanks for another great package! |
Hey @Twansparant - for the time being I switched my projects to install navi as |
Hi @kamilgrzegorczyk, thanks that's what I ended up doing too! |
release pushed – sorry for the delay. |
Thank you very much @Log1x ! |
Hey @Log1x! 👋🏻
It seems custom classes added to nav items aren't being added to
$item->classes
.Had a quick scan through the code and noticed this is excluding everything except what's in the exclusion list? Unless I'm misreading it.
https://github.com/Log1x/navi/blob/master/src/MenuBuilder.php#L90-L95
Excluded classes (however they're being allowed). Not sure if this is intentional and simply a typo in the comment:
https://github.com/Log1x/navi/blob/master/src/MenuBuilder.php#L37-L50
I'll try debugging a bit later on and pop a PR over if I can fix, just thought I'd submit this issue in case you know of a solution off the top of your head.
Cheers!
The text was updated successfully, but these errors were encountered: