Bug 33169: Add support for FA styles
authorTomas Cohen Arazi <tomascohen@theke.io>
Wed, 21 Jun 2023 19:05:26 +0000 (16:05 -0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 23 Jun 2023 13:01:01 +0000 (10:01 -0300)
commitc61669f92caad8db3f598de7ac8602a456ac53d6
treeb44b46fbe57612890c1e7eccf1dd6ccbdc36e8bf
parent13fbc155d21375b4a87d4e6760428fe205cd76a4
Bug 33169: Add support for FA styles

Font awesome now provides a different approach to icon styles so you can
specify things like:

```
<i class="fa fa-camera-retro"></i>
```

but also

```
<i class="fa-solid fa-camera-retro"></i>
```

The original implementation had a hardcoded `fa` and having an extra
parameter for the *style* seemed overkill, as we would need to handle
even a list of styles like on this example:

```
<i class="fa-sharp fa-solid fa-camera-retro"></i>
```

So I chose to just explicitly require the full FA icon class and pass it
thru. With no manipulation on the Vue side.

This patch does that, and adjusts the 'style' for some icons, as
introduced by the FA v6 patchset.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/js/vue/components/NavigationItem.vue
koha-tmpl/intranet-tmpl/prog/js/vue/routes/erm.js