Skip to content

Commit

Permalink
Fix doc
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Jul 30, 2024
1 parent d915908 commit 8cea193
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions packages/block-editor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 4 additions & 4 deletions packages/block-editor/src/hooks/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 } );
Expand Down

0 comments on commit 8cea193

Please sign in to comment.