From 32fb84873150869cf98d616906b45486ab5daae9 Mon Sep 17 00:00:00 2001 From: develite98 Date: Wed, 27 Dec 2023 16:12:35 +0700 Subject: [PATCH] feat(): update loading button --- libs/mix-ui/src/button/button.component.html | 55 +++++++++----------- libs/mix-ui/src/button/button.component.scss | 14 ++++- 2 files changed, 38 insertions(+), 31 deletions(-) diff --git a/libs/mix-ui/src/button/button.component.html b/libs/mix-ui/src/button/button.component.html index ec834606..e5d5aaf2 100644 --- a/libs/mix-ui/src/button/button.component.html +++ b/libs/mix-ui/src/button/button.component.html @@ -1,36 +1,31 @@ - - - - diff --git a/libs/mix-ui/src/button/button.component.scss b/libs/mix-ui/src/button/button.component.scss index 18cce3fe..b67f18c4 100644 --- a/libs/mix-ui/src/button/button.component.scss +++ b/libs/mix-ui/src/button/button.component.scss @@ -12,7 +12,7 @@ mix-button { @apply text-sm; @apply px-3.5 py-2; @apply text-center whitespace-nowrap; - @apply inline-flex justify-center items-center space-x-2; + @apply inline-flex justify-center items-center; @apply hover:brightness-[1.15]; @apply transition-all; @apply focus:outline-none; @@ -26,14 +26,26 @@ mix-button { .btn.primary { @apply text-white bg-primary focus:outline-none focus:ring-primary; + + .dot { + @apply text-white; + } } .btn.secondary { @apply text-gray-900 focus:outline-none bg-white border border-gray-200 hover:bg-gray-100 hover:text-blue-700 focus:z-10 focus:ring-4 focus:ring-gray-200 dark:focus:ring-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:border-gray-600 dark:hover:text-white dark:hover:bg-gray-700; + + .dot { + @apply text-gray-900; + } } .btn.danger { @apply text-white bg-red-700 hover:bg-red-800 focus:ring-4 focus:ring-red-300; + + .dot { + @apply text-white; + } } .btn {