Skip to content

Commit

Permalink
Map block: Add absolute positioning for container only when Mapkit is…
Browse files Browse the repository at this point in the history
… used (#39744)
  • Loading branch information
coder-karen authored Oct 15, 2024
1 parent f467c5d commit 4941bcd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions projects/plugins/jetpack/changelog/fix-map-block-auto-height
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: bugfix

Map block: Fix issue where blocks placed underneath would overlap with the map block.
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ const MapkitComponent = forwardRef(
className="wp-block-jetpack-map__gm-container"
style={ {
height: `${ mapHeight }px`,
position: 'absolute',
pointerEvents: isSelected ? 'auto' : 'none',
} }
></div>
Expand Down
1 change: 0 additions & 1 deletion projects/plugins/jetpack/extensions/blocks/map/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
}

.wp-block-jetpack-map__gm-container {
position: absolute;
inset: 0;
z-index: 0;
}
Expand Down

0 comments on commit 4941bcd

Please sign in to comment.