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

pagination-ellipsis.svelte: The value of 'aria-hidden' must be either 'true' or 'false'. It cannot be empty #1510

Closed
mustafa0x opened this issue Nov 21, 2024 · 2 comments · Fixed by #1511

Comments

@mustafa0x
Copy link

mustafa0x commented Nov 21, 2024

Describe the bug

vite/svelte-warn prints this:

pagination-ellipsis.svelte:2:4 The value of 'aria-hidden' must be either 'true' or 'false'. It cannot be empty

Reproduction

https://github.com/huntabyte/shadcn-svelte/blob/main/sites/docs/src/lib/registry/default/ui/pagination/pagination-ellipsis.svelte#L13

@ieedan
Copy link
Contributor

ieedan commented Nov 21, 2024

This is fixed on next. You can fix it in your code by adding =true

<span
	aria-hidden="true"
	class={cn("flex h-9 w-9 items-center justify-center", className)}
	{...$$restProps}
>
	<DotsHorizontal class="h-4 w-4" />
	<span class="sr-only">More pages</span>
</span>

ieedan added a commit to ieedan/shadcn-svelte that referenced this issue Nov 21, 2024
@mustafa0x
Copy link
Author

Ah, I thought I checked next, but I forgot next isn't the default branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants