forked from brooksbingham/theme-elegance
refactor: show step edit icon only if step is complete
parent
105e21dba6
commit
f027dc66f1
|
@ -37,7 +37,7 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler stroke-black group-[.-complete]:hidden icon-tabler-square" width="20" height="20" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 3m0 2a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2z" /></svg>
|
||||
<span class="step-number">{$position}</span>
|
||||
{$title}
|
||||
<span class=" ml-auto text-sm text-gray-400 cursor-pointer group-[.-current]:hidden">
|
||||
<span class=" ml-auto text-sm text-gray-400 cursor-pointer group-[.-current]:hidden group-[.-complete]:block hidden">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-edit" width="18" height="18" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M7 7h-1a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-1" /><path d="M20.385 6.585a2.1 2.1 0 0 0 -2.97 -2.97l-8.415 8.385v3h3l8.385 -8.415z" /><path d="M16 5l3 3" /></svg>
|
||||
</span>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue