Skip to content

Commit

Permalink
Update variable for bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
richtabor committed Apr 10, 2024
1 parent 1c09419 commit 9e89ece
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export function useBlockProps( props = {}, { __unstableIsHtml } = {} ) {
const hasBlockBindings = !! blockEditContext[ blockBindingsKey ];
const bindingsStyle =
hasBlockBindings && canBindBlock( name )
? { '--wp-admin-theme-color': 'var(--wp-bound-block-color)' }
? { '--wp-admin-theme-color': 'var(--wp-block-synced-color)' }
: {};

// Ensures it warns only inside the `edit` implementation for the block.
Expand Down

0 comments on commit 9e89ece

Please sign in to comment.