Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Improve CSS for close button.

Matthew Kennedy212ecb7b4d7f
diff --git a/backend/app/assets/javascripts/spree/backend/global/alerts.es6 b/backend/app/assets/javascripts/spree/backend/global/alerts.es6
index 204394b100..5d9a0eac4c 100644
--- a/backend/app/assets/javascripts/spree/backend/global/alerts.es6
+++ b/backend/app/assets/javascripts/spree/backend/global/alerts.es6
@@ -26,7 +26,7 @@ function show_flash(type, message) {
position: 'bottom',
showConfirmButton: false,
showCloseButton: true,
- timer: 3000,
+ timer: 4500,
timerProgressBar: false,
showClass: {
popup: 'animate__animated animate__fadeInUp animate__faster',
diff --git a/backend/app/assets/stylesheets/spree/backend/plugins/_sweetalert2_custom.scss b/backend/app/assets/stylesheets/spree/backend/plugins/_sweetalert2_custom.scss
index eff7585dce..f44cc810c3 100644
--- a/backend/app/assets/stylesheets/spree/backend/plugins/_sweetalert2_custom.scss
+++ b/backend/app/assets/stylesheets/spree/backend/plugins/_sweetalert2_custom.scss
@@ -13,11 +13,8 @@ body.swal2-toast-shown .swal2-container.swal2-bottom {
}
button.swal2-close {
- width: 30px;
- min-width: 30px;
- height: 30px;
- margin-bottom: 3px;
-
+ min-width: .8em;
+ padding-bottom: 0.1em;
&:hover {
opacity: 0.75;
}