Skip to content

Commit

Permalink
Update api-reference.md (#64325)
Browse files Browse the repository at this point in the history
minor code example correction. Removed duplicate HTML span element closing tags `>>` on lines 58 and 69
[wp-interactive API](<https://developer.wordpress.org/block-editor/reference-guides/interactivity-api/api-reference/#wp-interactive>)

Co-authored-by: djcowan <djcowan@git.wordpress.org>
Co-authored-by: tyxla <tyxla@git.wordpress.org>
  • Loading branch information
3 people authored Aug 7, 2024
1 parent 19a2d83 commit dc54a90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/reference-guides/interactivity-api/api-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ The `wp-interactive` directive "activates" the interactivity for the DOM element
data-wp-interactive="myPlugin"
data-wp-context='{ "myColor" : "red", "myBgColor": "yellow" }'
>
<p>I'm interactive now, <span data-wp-style--background-color="context.myBgColor">>and I can use directives!</span></p>
<p>I'm interactive now, <span data-wp-style--background-color="context.myBgColor">and I can use directives!</span></p>
<div>
<p>I'm also interactive, <span data-wp-style--color="context.myColor">and I can also use directives!</span></p>
</div>
Expand All @@ -66,7 +66,7 @@ The `wp-interactive` directive "activates" the interactivity for the DOM element
data-wp-interactive='{ "namespace": "myPlugin" }'
data-wp-context='{ "myColor" : "red", "myBgColor": "yellow" }'
>
<p>I'm interactive now, <span data-wp-style--background-color="context.myBgColor">>and I can use directives!</span></p>
<p>I'm interactive now, <span data-wp-style--background-color="context.myBgColor">and I can use directives!</span></p>
<div>
<p>I'm also interactive, <span data-wp-style--color="context.myColor">and I can also use directives!</span></p>
</div>
Expand Down

0 comments on commit dc54a90

Please sign in to comment.