Skip to content

Commit

Permalink
Simplify class condition
Browse files Browse the repository at this point in the history
Co-authored-by: Aram <[email protected]>
  • Loading branch information
VincentSmedinga and alimpens authored Dec 20, 2024
1 parent eb74a60 commit dfb4314
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/Spotlight/Spotlight.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const Spotlight = forwardRef(
<Tag
{...restProps}
ref={ref}
className={clsx('ams-spotlight', { [`ams-spotlight--${color}`]: color !== defaultColor }, className)}
className={clsx('ams-spotlight', { color !== defaultColor && `ams-spotlight--${color}` }, className)}
>
{children}
</Tag>
Expand Down

0 comments on commit dfb4314

Please sign in to comment.