Skip to content

Commit afadfb4

Browse files
committed
Feedback and changelog entry
1 parent 9f73e91 commit afadfb4

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

packages/components/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
- `Tabs`: Replace `rem` with `px` in tablist overflow fade ([#72669](https://github.com/WordPress/gutenberg/pull/72669)).
1818
- `Modal`: Replace `rem` in heading text with a standard `px` value ([#72669](https://github.com/WordPress/gutenberg/pull/72669)).
1919
- Validated form controls: Replace `rem` with `px` in error message ([#72669](https://github.com/WordPress/gutenberg/pull/72669)).
20+
- `FocalPointPicker`: Fix label markup ([#70835](https://github.com/WordPress/gutenberg/pull/70835)).
2021

2122
## 30.6.0 (2025-10-17)
2223

packages/components/src/focal-point-picker/index.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {
1313
__experimentalUseDragging as useDragging,
1414
useIsomorphicLayoutEffect,
1515
} from '@wordpress/compose';
16+
import deprecated from '@wordpress/deprecated';
1617

1718
/**
1819
* Internal dependencies
@@ -109,6 +110,14 @@ export function FocalPointPicker( {
109110
const [ point, setPoint ] = useState( valueProp );
110111
const [ showGridOverlay, setShowGridOverlay ] = useState( false );
111112

113+
if ( ! __nextHasNoMarginBottom ) {
114+
deprecated( 'Bottom margin styles for wp.components.FocalPointPicker', {
115+
since: '6.7',
116+
version: '7.0',
117+
hint: 'Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version.',
118+
} );
119+
}
120+
112121
const { startDrag, endDrag, isDragging } = useDragging( {
113122
onDragStart: ( event ) => {
114123
dragAreaRef.current?.focus();

packages/components/src/focal-point-picker/styles/focal-point-picker-style.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,16 @@ import styled from '@emotion/styled';
1010
import { Flex } from '../../flex';
1111
import UnitControl from '../../unit-control';
1212
import { View } from '../../view';
13-
import { COLORS, CONFIG, boxSizingReset } from '../../utils';
13+
import { COLORS, CONFIG, boxSizingReset, font } from '../../utils';
1414
import type { FocalPointPickerControlsProps } from '../types';
1515
import { INITIAL_BOUNDS } from '../utils';
1616

1717
export const Container = styled( View )`
1818
border: 0;
1919
padding: 0;
2020
margin: 0;
21+
font-family: ${ font( 'default.fontFamily' ) };
22+
font-size: ${ font( 'default.fontSize' ) };
2123
${ boxSizingReset }
2224
`;
2325

0 commit comments

Comments
 (0)