Skip to content

Commit eb2ae8b

Browse files
committed
Added bgColor and color option separately for wpBootstrapBlocks.button.styleOptions hook so users can pass both the background and the text colors for the buttons
1 parent 1846253 commit eb2ae8b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ Modify available button styles.
562562

563563
```javascript
564564
function myButtonStyleOptions( styleOptions ) {
565-
styleOptions.push( { label: 'My Option', value: 'my-option', color: '#FF0000' } );
565+
styleOptions.push( { label: 'My Option', value: 'my-option', bgColor: '#FF0000', color: '#FFFFFF } );
566566
return styleOptions;
567567
}
568568
wp.hooks.addFilter(

0 commit comments

Comments
 (0)