diff --git a/packages/block-editor/README.md b/packages/block-editor/README.md index 598f0932c596ed..fec4f4c0dbe5c3 100644 --- a/packages/block-editor/README.md +++ b/packages/block-editor/README.md @@ -1035,9 +1035,9 @@ Override a block editor settings style. Leave the ID blank to create a new style _Parameters_ -- _$0_ `Object`: Named parameters. -- _$0.id_ `string`: Id of the style override, leave blank to create a new style. -- _$0.css_ `string`: CSS to apply. +- _override_ `Object`: Override object. +- _override.id_ `?string`: Id of the style override, leave blank to create a new style. +- _override.css_ `string`: CSS to apply. ### useZoomOut diff --git a/packages/block-editor/src/hooks/utils.js b/packages/block-editor/src/hooks/utils.js index c12a58aec9dd63..fa710fa7f08eba 100644 --- a/packages/block-editor/src/hooks/utils.js +++ b/packages/block-editor/src/hooks/utils.js @@ -139,10 +139,10 @@ const pendingStyleOverrides = new WeakMap(); * Override a block editor settings style. Leave the ID blank to create a new * style. * - * @param {Object} $0 Named parameters. - * @param {string} $0.id Id of the style override, leave blank to create a new - * style. - * @param {string} $0.css CSS to apply. + * @param {Object} override Override object. + * @param {?string} override.id Id of the style override, leave blank to create + * a new style. + * @param {string} override.css CSS to apply. */ export function useStyleOverride( { id, css } ) { return usePrivateStyleOverride( { id, css } );