From d3abbc54653f8a6c1c326620d6f5ecdd7a30511d Mon Sep 17 00:00:00 2001 From: Andrea Leardini Date: Thu, 28 Aug 2025 11:02:33 +0200 Subject: [PATCH 1/8] fix(NeButton): add story for icon only button --- stories/NeButton.stories.ts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/stories/NeButton.stories.ts b/stories/NeButton.stories.ts index fc967cb..eddc55c 100644 --- a/stories/NeButton.stories.ts +++ b/stories/NeButton.stories.ts @@ -3,6 +3,8 @@ import type { Meta, StoryObj } from '@storybook/vue3-vite' import { NeButton } from '../src/main' +import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome' +import { faCopy } from '@fortawesome/free-solid-svg-icons' const meta = { title: 'NeButton', @@ -133,6 +135,24 @@ export const WithSuffix: Story = { args: { loadingPosition: 'suffix' } } +const templateIconOnly = `
+ + +
It is recommended to show a tooltip when the cursor hovers over the button.
+
` + +export const IconOnly: Story = { + render: (args) => ({ + components: { NeButton, FontAwesomeIcon }, + setup() { + return { args, faCopy } + }, + template: templateIconOnly + }), + args: {} +} + export const Disabled: Story = { render: (args) => ({ components: { NeButton }, From 0eda880f697e67c6001c7de8519b2d53050407a4 Mon Sep 17 00:00:00 2001 From: Andrea Leardini Date: Thu, 28 Aug 2025 11:03:01 +0200 Subject: [PATCH 2/8] fix(NeTooltip): prevent nesting of button elements --- src/components/NeToastNotification.vue | 4 +++- src/components/NeTooltip.vue | 8 ++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/components/NeToastNotification.vue b/src/components/NeToastNotification.vue index 84cbf43..2cd9919 100644 --- a/src/components/NeToastNotification.vue +++ b/src/components/NeToastNotification.vue @@ -89,7 +89,9 @@ library.add(fasXmark) class="text-gray-500 dark:text-gray-400" >