diff --git a/packages/block-library/src/heading/heading-level-dropdown.js b/packages/block-library/src/heading/heading-level-dropdown.js index f326fc138b321..394116b706f4a 100644 --- a/packages/block-library/src/heading/heading-level-dropdown.js +++ b/packages/block-library/src/heading/heading-level-dropdown.js @@ -51,7 +51,10 @@ export default function HeadingLevelDropdown( { selectedLevel, onChange, } ) { - const instanceId = useInstanceId( HeadingLevelDropdown ); + const helpTextId = useInstanceId( + HeadingLevelDropdown, + 'block-library-heading__heading-level-dropdown__help' + ); const getLevelValidity = useHeadingLevelValidator( clientId ); @@ -127,11 +130,11 @@ export default function HeadingLevelDropdown( { }, }; } ) } - aria-describedby={ `block-library-heading__heading-level-dropdown__help-${ instanceId }` } + aria-describedby={ helpTextId } />