Explorar o código

Constant border color when pressed for Critical buttonType

ashilkn %!s(int64=2) %!d(string=hai) anos
pai
achega
3b079d1ae1
Modificáronse 1 ficheiros con 4 adicións e 3 borrados
  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) {
     if (this == ButtonType.primary) {
       return colorScheme.strokeMuted;
       return colorScheme.strokeMuted;
     }
     }
-    if (this == ButtonType.secondary ||
-        this == ButtonType.critical ||
-        this == ButtonType.tertiaryCritical) {
+    if (this == ButtonType.secondary || this == ButtonType.tertiaryCritical) {
       return colorScheme.strokeBase;
       return colorScheme.strokeBase;
     }
     }
+    if (this == ButtonType.critical) {
+      return strokeBaseLight;
+    }
     return null;
     return null;
   }
   }