Skip to content

Commit 072f1f6

Browse files
DrJKLgithub-actions
andauthored
Fix: Slots without type colors (#7081)
## Summary Default to a gray ## Screenshots (if applicable) <img width="416" height="205" alt="image" src="https://github.com/user-attachments/assets/0eeee37d-f9c1-4893-ae1d-ee20cabf0f46" /> ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-7081-Fix-Slots-without-type-colors-2bc6d73d365081499e54e8a10b4b4b02) by [Unito](https://www.unito.io) --------- Co-authored-by: github-actions <[email protected]>
1 parent 202dc3b commit 072f1f6

File tree

3 files changed

+1
-1
lines changed

3 files changed

+1
-1
lines changed
103 Bytes
Loading
-43 Bytes
Loading

src/constants/slotColors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export function getSlotColor(type?: string | number | null): string {
22
if (!type) return '#AAA'
33
const typeStr = String(type).toUpperCase()
4-
return `var(--color-datatype-${typeStr})`
4+
return `var(--color-datatype-${typeStr}, #AAA)`
55
}

0 commit comments

Comments
 (0)