Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
Fix fog color and improve colorInput (#10463)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielBelmes authored Jun 26, 2024
1 parent 90353d0 commit 1b9ee3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/ui/src/components/editor/properties/fog/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export const FogSettingsEditor: EditorComponentType = (props) => {
<ColorInput
value={new Color(fogState.color.value)}
onChange={(val) => updateProperty(FogSettingsComponent, 'color')('#' + val.getHexString())}
onRelease={(val) => commitProperty(FogSettingsComponent, 'color')('#' + val.getHexString())}
/>
</InputGroup>
{fogState.type.value === FogType.Linear ? (
Expand Down
4 changes: 2 additions & 2 deletions packages/ui/src/primitives/tailwind/Color/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ export function ColorInput({
>
<div
tabIndex={0}
className={`group h-5 w-5 rounded border border-black focus:border-theme-primary`}
className={`group h-5 w-5 cursor-pointer rounded border border-black focus:border-theme-primary`}
style={{ backgroundColor: hexColor }}
>
<SketchPicker
className={twMerge(
'absolute z-10 mt-5 scale-0 bg-theme-surface-main group-hover:scale-100 group-focus:scale-100',
'absolute z-10 mt-5 scale-0 bg-theme-surface-main focus-within:scale-100 group-focus:scale-100',
sketchPickerClassName
)}
color={hexColor}
Expand Down

0 comments on commit 1b9ee3d

Please sign in to comment.