Преглед на файлове

consolidate vertical steps component with aws permissions flow (#3520)

Co-authored-by: Justin Rhee <jusrhee@Justins-MacBook-Air.local>
Co-authored-by: sdess09 <37374498+sdess09@users.noreply.github.com>
jusrhee преди 2 години
родител
ревизия
f2ad6facc3
променени са 1 файла, в които са добавени 18 реда и са изтрити 9 реда
  1. 18 9
      dashboard/src/components/porter/VerticalSteps.tsx

+ 18 - 9
dashboard/src/components/porter/VerticalSteps.tsx

@@ -22,9 +22,9 @@ const VerticalSteps: React.FC<Props> = ({
                 <Line isActive={i + 1 <= currentStep} />
               )
             }
-            <Dot
-              isActive={i <= currentStep}
-            />
+            <Dot isActive={i <= currentStep}>
+              <Number>{i+1}</Number>
+            </Dot>
             <OpacityWrapper isActive={i <= currentStep}>
               {step}
               {
@@ -42,6 +42,11 @@ const VerticalSteps: React.FC<Props> = ({
 
 export default VerticalSteps;
 
+const Number = styled.div`
+  font-size: 12px;
+  color: #fff;
+`;
+
 const ReadOnlyOverlay = styled.div`
   position: absolute;
   width: 100%;
@@ -56,7 +61,7 @@ const Line = styled.div<{
 }>`
   width: 1px;
   height: calc(100% + 35px);
-  background: ${props => props.isActive ? "#fff" : "#414141"};
+  background: #414141;
   position: absolute;
   left: 4px;
   top: 8px;
@@ -66,14 +71,18 @@ const Line = styled.div<{
 const Dot = styled.div<{
   isActive: boolean;
 }>`
-  width: 9px;
-  height: 9px;
-  background: ${props => props.isActive ? "#fff" : "#414141"};
+  width: 31px;
+  height: 31px;
+  background: ${props => props.isActive ? "#3D48C3" : "#121212"};
   border-radius: 50%;
   position: absolute;
-  left: 0;
-  top: 7px;
+  left: -11px;
+  top: -3px;
   opacity: 1;
+  border: 6px solid #121212;
+  display: flex;
+  justify-content: center;
+  align-items: center;
 `;
 
 const OpacityWrapper = styled.div<{