Skip to content

Commit

Permalink
refactor: ensure empty DropZones highlighting works in FF and Safari
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvxd committed Sep 22, 2023
1 parent b5b72f0 commit 85b14d2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/core/components/DropZone/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ function DropZoneEdit({ zone, style }: DropZoneProps) {
isDestination: draggedDestinationId === zoneCompound,
isDisabled: !isEnabled,
isAreaSelected,
hasChildren: content.length > 0,
})}
>
<DroppableStrictMode
Expand Down
8 changes: 6 additions & 2 deletions packages/core/components/DropZone/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,12 @@
.DropZone--draggingOverArea:not(:has(.DropZone--hoveringOverArea)),
.DropZone--hoveringOverArea:not(.DropZone--isDisabled):not(
.DropZone--isRootZone
),
.DropZone:not(:has(.DropZone-item)) {
) {
background: var(--puck-color-azure-9);
outline: 2px dashed var(--puck-color-azure-7);
}

.DropZone:not(.DropZone--hasChildren) {
background: var(--puck-color-azure-9);
outline: 2px dashed var(--puck-color-azure-7);
}
Expand Down

0 comments on commit 85b14d2

Please sign in to comment.