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

Apply Dark Mode Support #148

Open
nerisonpitogo opened this issue Mar 22, 2024 · 1 comment
Open

Apply Dark Mode Support #148

nerisonpitogo opened this issue Mar 22, 2024 · 1 comment

Comments

@nerisonpitogo
Copy link

I tried modifying the customClass

return [
'alert' => [
'position' => 'top-end',
'timer' => 1000000,
'toast' => true,
'text' => null,
'showCancelButton' => false,
'showConfirmButton' => false,
],
'confirm' => [
'icon' => 'warning',
'position' => 'center',
'toast' => false,
'timer' => null,
'showConfirmButton' => true,
'showCancelButton' => true,
'cancelButtonText' => 'No',
'confirmButtonColor' => '#3085d6',
'cancelButtonColor' => '#d33'
],
'customClass' => [
'container' => 'text-blue-900',
'popup' => 'text-blue-900',
'header' => 'text-blue-900',
'title' => 'text-blue-900',
'closeButton' => 'text-blue-900',
'icon' => 'text-blue-900',
'image' => 'text-blue-900',
'content' => 'text-blue-900',
'htmlContainer' => 'wew',
'input' => 'text-blue-900',
'inputLabel' => 'text-blue-900',
'validationMessage' => 'text-blue-900',
'actions' => 'text-blue-900',
'confirmButton' => 'text-blue-900',
'denyButton' => 'text-blue-900',
'cancelButton' => 'text-blue-900',
'loader' => 'text-blue-900',
'footer' => 'text-blue-900'
]
];

But I do not see any blue text in the alert.

@nerisonpitogo
Copy link
Author

My current solution for now is just this.

<style>
    html.dark .swal2-popup {
        background-color: #4B5563 !important;
        border: 1px solid #D1D5DB !important;
        color: #E5E7EB;
    }
</style>

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