Skip to content

Commit

Permalink
docs: prevent UNotifications slot #description override
Browse files Browse the repository at this point in the history
Otherwise it alters the display of the Notification examples where actions moves under the title.
  • Loading branch information
benjamincanac committed Nov 14, 2023
1 parent 7cb987d commit 4dbc624
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions docs/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@
<template #title="{ title }">
<span v-html="title" />
</template>

<template #description="{ description }">
<span v-html="description" />
</template>
</UNotifications>
</div>
</template>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ const toast = useToast()
</script>

<template>
<UButton label="Show toast" @click="toast.add({ title: 'Notification <i>italic</i>', description: 'This is an <u>underlined</u> and <b>bold</b> notification.' })" />
<UButton label="Show toast" @click="toast.add({ title: 'This is an <u>underlined</u> and <b>bold</b> notification.' })" />
</template>

1 comment on commit 4dbc624

@vercel
Copy link

@vercel vercel bot commented on 4dbc624 Nov 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ui – ./

ui-nuxt-js.vercel.app
ui-git-dev-nuxt-js.vercel.app
ui.nuxt.com

Please sign in to comment.