Skip to content

(fix) Small fix for icon in header. #896 #898

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
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Scraayp
Copy link

@Scraayp Scraayp commented May 7, 2025

🐛  The problem

When a project changes Mary’s default component prefix (e.g. from <x-*> to <x-mary-*>), the <x-mary-header> component still tried to render its leading icon with:

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

Because the tag itself wasn’t prefixed, Livewire/Laravel couldn’t resolve the component class and the icon simply disappeared (see issue #896).

✅  What this PR does

File Change

src/View/Components/Header.php	Replace <x-icon …> with <x-mary-icon …>

Only a single line is touched; behaviour is otherwise unchanged.

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 this pull request may close these issues.

1 participant