ZTL-UwU / shadcn-docs-nuxt

Effortless and beautiful docs template built with Nuxt Content & shadcn-vue.
https://shadcn-docs-nuxt.vercel.app/
MIT License
198 stars 31 forks source link

bug: `alert` without `type` default to the info style #47

Open xarthurx opened 2 days ago

xarthurx commented 2 days ago

Environment

System: OS: Linux 5.15 Ubuntu 24.04.1 LTS 24.04.1 LTS (Noble Numbat) CPU: (24) x64 Intel(R) Core(TM) i9-9920X CPU @ 3.50GHz Memory: 28.41 GB / 31.20 GB Container: Yes Shell: 5.9 - /usr/bin/zsh Binaries: Node: 20.12.2 - ~/.nvm/versions/node/v20.12.2/bin/node npm: 10.5.0 - ~/.nvm/versions/node/v20.12.2/bin/npm pnpm: 9.7.0 - ~/.local/share/pnpm/pnpm bun: 1.1.33 - ~/.bun/bin/bun npmPackages: nuxt: ^3.13.2 => 3.13.2

Describe the bug

https://shadcn-docs-nuxt.vercel.app/components/docs/alert

Using the alert, when just use:

::alert
blabla
::

OR

::alert{}
blabla
::

The default style is not black (as shown in the doc), but the info style (blue)

Reproduction

No response

Additional context

No response

Logs

No response

ZTL-UwU commented 1 day ago

What is your vue version?