-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use Tailwind layers, rename workflow status classes #1584
Conversation
stevekinney
commented
Aug 23, 2023
- Moves base styles into the appropriate Tailwind layer.
- Makes workflow status classes generally available.
- Renames workflow status classes for semantic meaning.
- Removes reactive statements in favor of view layer reactivity.
Fix typo in app.css
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
|
||
$: color = colors[status]; | ||
$: label = humanFriendlyNames[status]; | ||
$: isRunning = label === humanFriendlyNames.Running; | ||
</script> | ||
|
||
<span class="flex text-center text-sm font-medium leading-4"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could just use <Badge />
here and get rid of those extra color styles
<Badge type={color}>
<span class="whitespace-nowrap">{label}</span>
{#if isRunning}
<HeartBeat {delay} />
{/if}
</Badge>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's give it a shot.