wintercms/wn-tailwindui-plugin

class='icon-pencil' is broken

AIC-BV opened this issue · 6 comments

A backend button with class icon-pencil doesn't render the icon, it renders a square with a cross in it
image

<button
    class="btn btn-primary icon-pencil"
    data-request="<?= $this->getEventHandler('onEdit'); ?>"
    data-request-data="id: <?= $id; ?>"
    title="Edit">
</button>

@AIC-BV does this occur with this plugin disabled?

@LukeTowers When the plugin is disabled (removed from composer) the icon works perfectly fine!

@AIC-BV is this still an issue?

@LukeTowers Yes it is still broken

But some more research in it, no idea why it is broken, it works in plugin.php so I guess its something in my code (although its working without tailwind UI plugin)

Appears as broken image
<button class="btn btn-primary icon-pencil"></button>

Shows the trash icon
<button class="btn btn-primary icon-trash"></button>

Changed to comment icon for now, which will do for my case, but there's something going on with the icons 🤔
<button class="btn btn-primary icon-comment"></button>