Skip to content

Commit

Permalink
Docs/fix typos in block registration guide (WordPress#59720)
Browse files Browse the repository at this point in the history
* Fix typo on block attributes guide
* typo fixes

Co-authored-by: TeresaGobble <[email protected]>
  • Loading branch information
2 people authored and carstingaxion committed Mar 27, 2024
1 parent 4efb3aa commit c9783eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/reference-guides/block-api/block-registration.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ icon: <svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="no

An object can also be passed as icon, in this case, icon, as specified above, should be included in the src property.

Besides src the object can contain background and foreground colors, this colors will appear with the icon when they are applicable e.g.: in the inserter.
Besides src the object can contain background and foreground colors, these colors will appear with the icon when they are applicable e.g.: in the inserter.

```js
icon: {
Expand Down Expand Up @@ -149,7 +149,7 @@ styles: [
],
```

Plugins and Themes can also register [custom block style](/docs/reference-guides/block-api/block-styles.md) for existing blocks.
Plugins and Themes can also register [custom block styles](/docs/reference-guides/block-api/block-styles.md) for existing blocks.

#### attributes (optional)

Expand Down

0 comments on commit c9783eb

Please sign in to comment.