Browse Source

Constant border color when pressed for Critical buttonType

ashilkn 2 years ago
parent
commit
3b079d1ae1
1 changed files with 4 additions and 3 deletions
  1. 4 3
      lib/ui/components/models/button_type.dart

+ 4 - 3
lib/ui/components/models/button_type.dart

@@ -73,11 +73,12 @@ enum ButtonType {
     if (this == ButtonType.primary) {
       return colorScheme.strokeMuted;
     }
-    if (this == ButtonType.secondary ||
-        this == ButtonType.critical ||
-        this == ButtonType.tertiaryCritical) {
+    if (this == ButtonType.secondary || this == ButtonType.tertiaryCritical) {
       return colorScheme.strokeBase;
     }
+    if (this == ButtonType.critical) {
+      return strokeBaseLight;
+    }
     return null;
   }