Bug 33169: Add support for FA styles
authorTomas Cohen Arazi <tomascohen@theke.io>
Wed, 21 Jun 2023 19:05:26 +0000 (16:05 -0300)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 2 Nov 2023 21:16:15 +0000 (11:16 -1000)
commit6079d70e2d3c519b0759174b2e48b2221d82830e
tree1413ea31dc609d66a12d87cff635f681d736f90a
parent31f48a6d19cb6023af7c2fe023b5f39a237d17d0
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>
(cherry picked from commit 19221dc960532084e3e72e611403f4d2a43adfc9)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/js/vue/components/NavigationItem.vue
koha-tmpl/intranet-tmpl/prog/js/vue/routes/erm.js