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

Feature request: Ability to amend css classes #468

Open
davidyell opened this issue Sep 26, 2024 · 0 comments
Open

Feature request: Ability to amend css classes #468

davidyell opened this issue Sep 26, 2024 · 0 comments

Comments

@davidyell
Copy link

davidyell commented Sep 26, 2024

Summary

It would be great to be able to pass some tailwind classes into the modal as part of the event dispatch, so that individual modal event calls could be customised.

Use-case

I am opening a modal which has a dropdown inside it, with the existing overflow-hidden class on the modal.blade.php the dropdown select element flows out of the modal and that overflow is hidden making the dropdown unusable.

Solution options

A potential solution might be to pass the classes as an argument?

wire:click="$dispatch(
	'openModal', 
	{
		component: 'webhooks.get-webhook-secret', 
		arguments: { 
			webhook: {{ $hook->id }}, 
			cssClass: 'overflow-visible' 
		}
	}
)"

Or, some way to pass the template file to use into the component, so users can overwrite the template in their local project?

Sidestep

#modal-container {
    overflow: visible !important;
}
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

No branches or pull requests

1 participant