Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UDashboardSidebar - reka-ui errors on open #3559

Open
moshetanzer opened this issue Mar 13, 2025 · 5 comments
Open

UDashboardSidebar - reka-ui errors on open #3559

moshetanzer opened this issue Mar 13, 2025 · 5 comments
Labels
bug Something isn't working pro v3 #1289

Comments

@moshetanzer
Copy link
Contributor

moshetanzer commented Mar 13, 2025

Environment

Is this bug related to Nuxt or Vue?

Nuxt

Version

v3

Reproduction

<UDashboardSidebar
      collapsible
      resizable
    >
      <template #header>
        <div class="flex items-center gap-2">
          <UIcon
            name="i-solar-buildings-2-bold"
            class="w-7 h-7"
          />
          <span class="flex items-center gap-2 font-semibold text-lg logo">example</span>
        </div>
      </template>
      <UNavigationMenu
        orientation="vertical"
        :items="links"
      />
      <div class="flex-1" />
      <UNavigationMenu
        orientation="vertical"

        :items="footerLinks"
      />
      <USeparator class="sticky bottom-0" />
      <template #footer>
        <span class="text-xs text-neutral-500 tracking-tight">Version {{ useRuntimeConfig().public.version }}</span>
      </template>
    </UDashboardSidebar>

Description

Hey,
Every time sidebar is opened i get the following warns in console:

utils.ts:34  Warning: `DialogContent` requires a `DialogTitle` for the component to be accessible for screen reader users.

If you want to hide the `DialogTitle`, you can wrap it with our VisuallyHidden component.

For more information, see https://www.reka-ui.com/docs/components/dialog.html#title

and

Warning: Missing `Description` or `aria-describedby="undefined"` for DialogContent.

Also, do think in general we should avoid Reka UI error messages...

@moshetanzer moshetanzer added bug Something isn't working triage v3 #1289 labels Mar 13, 2025
@moshetanzer
Copy link
Contributor Author

Not sure if it is due to this issue, but the sidebar doesnt close automatily after navigation either...

@czarsbenemoriendi
Copy link

Its not exactly a bug. This is warning thrown by Reka UI and exist in development only: https://github.com/unovue/radix-vue/blob/v2/packages/core/src/Dialog/DialogContentImpl.vue#L61

Here you have the solution #3215 (comment)

@moshetanzer
Copy link
Contributor Author

Yeah don’t think that will work for slideover though. It just pollutes logs since every time it opened it shows and when using collapsible it becomes a pain.

@thewebbeckons
Copy link

Facing this as well because when you use a custom slot for header (ie. building some UI element within the title/description section) you'll always get these warnings.

Copy link
Member

Those warnings are only displayed by Reka UI in development, you can ignore them.

@benjamincanac benjamincanac removed the triage label Mar 19, 2025 — with Volta.net
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pro v3 #1289
Projects
None yet
Development

No branches or pull requests

4 participants