active_link_to
active_link_to copied to clipboard
Set active and inactive class name globally
I'm using Bulma in a project where the active class is is-active
instead of just active
. It would be nice to be able to set this globally rather than specifying class_active: 'is-active'
on each invocation.
I'm out of time for today but I'll see if I can throw together a PR that does this.
it's easy to do
just add configuration class like https://github.com/dry-rb/dry-configurable
then update all active_class
to use default config
like this one https://github.com/comfy/active_link_to/blob/0726773f543113186a36e0094fef718cbd98cad4/lib/active_link_to/active_link_to.rb#L22
and this https://github.com/comfy/active_link_to/blob/0726773f543113186a36e0094fef718cbd98cad4/lib/active_link_to/active_link_to.rb#L60