active_link_to icon indicating copy to clipboard operation
active_link_to copied to clipboard

Set active and inactive class name globally

Open nataliethistime opened this issue 4 years ago • 1 comments

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.

nataliethistime avatar Jul 10 '20 07:07 nataliethistime

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

saiqulhaq avatar Oct 08 '20 09:10 saiqulhaq