Stepper Number Color

main
Pedram Keshavarzi 3 years ago
parent 0ee63a2385
commit 3d1386de75
  1. 2
      src/components/Stepper/index.js

@ -42,7 +42,7 @@ function Stepper({
} }
</div> </div>
<div className="flex justify-center items-center"> <div className="flex justify-center items-center">
<p className="mr-3 ml-1 text-xl font-bold text-red-500 text-opacity-50">{index + 1}</p> <p className={`mr-3 ml-1 text-xl font-bold ${item.active ? 'text-red-500' : 'text-gray-400'} text-opacity-50`}>{index + 1}</p>
<p className={` giveMeEllipsis font-bold ${item.active ? 'text-red26' : 'text-gray-400'} ${direction === 'horizontal' && 'text-xs' }`}> {item.title}</p> <p className={` giveMeEllipsis font-bold ${item.active ? 'text-red26' : 'text-gray-400'} ${direction === 'horizontal' && 'text-xs' }`}> {item.title}</p>
</div> </div>
</div> </div>

Loading…
Cancel
Save