Skip to content

Issue with prefixed mary ui when using header #896

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

Open
Scraayp opened this issue May 5, 2025 · 2 comments
Open

Issue with prefixed mary ui when using header #896

Scraayp opened this issue May 5, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@Scraayp
Copy link

Scraayp commented May 5, 2025

maryUI version

2.3

daisyUI version

5.0.17

Livewire version

3.0

What browsers are affected?

Chrome

What happened?

HTML/Blade

<x-mary-header title="Gearchiveerde projecten" icon="o-archive-box" subtitle="Alle gearchiveerde projecten met een mogelijkheid om ze terugtestellen." separator
		class="mx-auto w-[80%]" />

Related Code:

<x-icon name="{{ $icon }}" class="{{ $iconClasses }}" />

Error:

Svg by name "o-archive-box" from set "default" not found.

I have my mary-ui prefixed with mary so that all the components work with x-mary-*. This has been working on every component. Just when header with icon, I get the problem that it's trying to find a icon with x-icon while it should be x-mary-icon.

Best Solution:

Get the icon internally and not call a component. This would fix the issue with the prefix.

🔥Point of notice: I really appreciate all the effort you’ve poured into the package—it looks fantastic, and I’ve already integrated it into several of my own applications.

@Scraayp Scraayp added the bug Something isn't working label May 5, 2025
@reafeichtinger
Copy link
Contributor

This can be easily fixed by changing the <x-icon to <x-mary-icon in the Header component. A PR is welcome.

@Scraayp
Copy link
Author

Scraayp commented May 7, 2025

Done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants