diff --git a/packages/block-editor/src/components/height-control/index.js b/packages/block-editor/src/components/height-control/index.js
index 71753a67beb021..4f5e17381728b3 100644
--- a/packages/block-editor/src/components/height-control/index.js
+++ b/packages/block-editor/src/components/height-control/index.js
@@ -1,6 +1,7 @@
/**
* WordPress dependencies
*/
+import { useInstanceId } from '@wordpress/compose';
import { useMemo } from '@wordpress/element';
import {
BaseControl,
@@ -68,6 +69,10 @@ export default function HeightControl( {
value,
} ) {
const customRangeValue = parseFloat( value );
+ const id = useInstanceId( HeightControl, 'block-editor-height-control' );
+ const labelId = `${ id }__label`;
+ const inputId = `${ id }__input`;
+ const rangeId = `${ id }__range`;
const [ availableUnits ] = useSettings( 'spacing.units' );
const units = useCustomUnits( {
@@ -144,13 +149,14 @@ export default function HeightControl( {
};
return (
-