Skip to content

Commit 6dcaa4b

Browse files
authored
fix: isColor check in the layout helper (#867)
1 parent 4ac0070 commit 6dcaa4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/client/layoutHelper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export function resolveAssetUrl(url: string) {
1010
}
1111

1212
export function handleBackground(background?: string, dim = false): CSSProperties {
13-
const isColor = background && background[0] === '#' && background.startsWith('rgb')
13+
const isColor = background && (background[0] === '#' || background.startsWith('rgb'))
1414

1515
const style = {
1616
background: isColor

0 commit comments

Comments
 (0)