Here is the list of improvements that I have made:
In the constants.js file I've added a new variable named bgColors which now holds all the options for the background colors. I've also used the colors variable but now it holds the text color options.
In the /src/buttons/edit.js I've updated the code to call the bgColors and colors from constants and then use them inside the code to set up the background-color and color properties accordingly.
I've also updated the /src/coloum/edit.js file to ensure that now it imports bgColors from constants and uses that inside the code.
Executed the build command to generate the new build files.
Tested the updated code and ensured that things are working properly as they should.
Updated the README.md file for the wpBootstrapBlocks.button.styleOptions filter so that now it shows users how they can add both the bgColor and color properties while using the filter.
I've tested the code by adding custom style options for the button and ensure everything is working properly.
Please take a look at the PR and let me when you can publish it.
Here is the list of improvements that I have made:
constants.js
file I've added a new variable namedbgColors
which now holds all the options for the background colors. I've also used thecolors
variable but now it holds the text color options./src/buttons/edit.js
I've updated the code to call thebgColors
andcolors
fromconstants
and then use them inside the code to set up thebackground-color
andcolor
properties accordingly./src/coloum/edit.js
file to ensure that now it importsbgColors
fromconstants
and uses that inside the code.README.md
file for thewpBootstrapBlocks.button.styleOptions
filter so that now it shows users how they can add both thebgColor
andcolor
properties while using the filter.Please take a look at the PR and let me when you can publish it.