-
-
Notifications
You must be signed in to change notification settings - Fork 163
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
how to change the font size? #97
Comments
Hey 👋,
There's a environment variable for custom css.
/*
|--------------------------------------------------------------------------
| Custom Class
|--------------------------------------------------------------------------
| A custom CSS class for the modal: | */ 'customClass' => [ 'container' =>
env('SWEET_ALERT_CONTAINER_CLASS'), 'popup' =>
env('SWEET_ALERT_POPUP_CLASS'), 'header' =>
env('SWEET_ALERT_HEADER_CLASS'), 'title' => env('SWEET_ALERT_TITLE_CLASS'),
'closeButton' => env('SWEET_ALERT_CLOSE_BUTTON_CLASS'), 'icon' =>
env('SWEET_ALERT_ICON_CLASS'), 'image' => env('SWEET_ALERT_IMAGE_CLASS'),
'content' => env('SWEET_ALERT_CONTENT_CLASS'), 'input' =>
env('SWEET_ALERT_INPUT_CLASS'), 'actions' =>
env('SWEET_ALERT_ACTIONS_CLASS'), 'confirmButton' =>
env('SWEET_ALERT_CONFIRM_BUTTON_CLASS'), 'cancelButton' =>
env('SWEET_ALERT_CANCEL_BUTTON_CLASS'), 'footer' =>
env('SWEET_ALERT_FOOTER_CLASS'), ],
You can use these to set the font size according to your needs.
…On Sun, Aug 9, 2020, 5:06 AM superzeroz ***@***.***> wrote:
- Package Version: latest
- Laravel Version: 5.8
Description:
how to change the font size when i use
SWEET_ALERT_AUTO_DISPLAY_ERROR_MESSAGES ?
Steps To Reproduce:
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#97>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADXCPBPSAAXP6ABXONNORNLR7XSB5ANCNFSM4PY4T3YA>
.
|
in my case it doesn't want to change confirm button class |
Hey @Djenkaa , Can you tell me how you used it? |
I added this SWEET_ALERT_CONFIRM_BUTTON_CLASS="nk-btn nk-btn-color-dark-2" in .env file |
Close |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description:
how to change the font size when i use SWEET_ALERT_AUTO_DISPLAY_ERROR_MESSAGES ?
Steps To Reproduce:
The text was updated successfully, but these errors were encountered: