From 9e571801931f4f9555fc77451f70ebed56dd05b7 Mon Sep 17 00:00:00 2001 From: Muhsin Keloth Date: Mon, 22 Apr 2024 21:09:36 +0530 Subject: [PATCH] feat: more style changes --- .../personal/NotificationPreferences.vue | 47 +++++++++---------- app/javascript/v3/components/Form/Button.vue | 15 +++++- app/javascript/v3/components/Form/Switch.vue | 7 +-- 3 files changed, 37 insertions(+), 32 deletions(-) diff --git a/app/javascript/dashboard/routes/dashboard/settings/personal/NotificationPreferences.vue b/app/javascript/dashboard/routes/dashboard/settings/personal/NotificationPreferences.vue index 57af6e0c9..b13c45eaf 100644 --- a/app/javascript/dashboard/routes/dashboard/settings/personal/NotificationPreferences.vue +++ b/app/javascript/dashboard/routes/dashboard/settings/personal/NotificationPreferences.vue @@ -9,20 +9,17 @@ Notification type - + Email - -
+ +
Push notification - +
@@ -37,7 +34,7 @@
{ if (props.variant === 'ghost') { return 'text-primary-800 hover:text-primary-600 active:text-primary-600 focus:ring focus:ring-offset-1 focus:ring-primary-400'; } - return 'bg-primary-600 border-primary-600 text-white hover:bg-primary-700 active:bg-primary-700 focus:ring focus:ring-offset-1 focus:ring-primary-400'; + return 'bg-primary-600 border border-primary-600 text-white hover:bg-primary-700 active:bg-primary-700 focus:ring focus:ring-offset-1 focus:ring-primary-400'; } if (props.colorScheme === 'secondary') { + if (props.variant === 'outline') { + return 'text-ash-800 border border-ash-400 hover:text-ash-600 active:text-ash-600 focus:ring focus:ring-offset-1 focus:ring-ash-400'; + } + if (props.variant === 'ghost') { + return 'text-ash-800 hover:text-ash-600 active:text-ash-600 focus:ring focus:ring-offset-1 focus:ring-ash-400'; + } return 'bg-ash-100 text-ash-900 hover:bg-ash-200 active:bg-ash-200 focus:ring focus:ring-offset-1 focus:ring-ash-400'; } if (props.colorScheme === 'danger') { + if (props.variant === 'outline') { + return 'text-ruby-800 border border-ruby-400 hover:text-ruby-600 active:text-ruby-600 focus:ring focus:ring-offset-1 focus:ring-ruby-400'; + } + if (props.variant === 'ghost') { + return 'text-ruby-800 hover:text-ruby-600 active:text-ruby-600 focus:ring focus:ring-offset-1 focus:ring-ruby-400'; + } + return 'bg-ruby-600 text-white hover:bg-ruby-700 active:bg-ruby-700 focus:ring focus:ring-offset-1 focus:ring-ruby-400'; } return 'bg-primary-500 text-white'; diff --git a/app/javascript/v3/components/Form/Switch.vue b/app/javascript/v3/components/Form/Switch.vue index b461ca34a..d044531d7 100644 --- a/app/javascript/v3/components/Form/Switch.vue +++ b/app/javascript/v3/components/Form/Switch.vue @@ -1,7 +1,7 @@