From 406aa929c0b06390b29136c367e6a5c5cf00afe7 Mon Sep 17 00:00:00 2001 From: R A Van Epps Date: Thu, 3 Jun 2021 12:28:53 -0600 Subject: [PATCH 1/9] Add missing block attr props --- .../Gutenberg/BlockButton/BlockButton.js | 35 +++++++++++++------ 1 file changed, 25 insertions(+), 10 deletions(-) diff --git a/components/blocks/Gutenberg/BlockButton/BlockButton.js b/components/blocks/Gutenberg/BlockButton/BlockButton.js index eba8c950d..efd92e0ef 100644 --- a/components/blocks/Gutenberg/BlockButton/BlockButton.js +++ b/components/blocks/Gutenberg/BlockButton/BlockButton.js @@ -7,22 +7,32 @@ import PropTypes from 'prop-types' * The core Button block from Gutenberg. * * @author WebDevStudios - * @param {object} props The component properties. - * @param {string} props.anchor Optional anchor/id. - * @param {string} props.className Optional classnames. - * @param {string} props.linkTarget The target for the link. - * @param {string} props.rel The rel attribute for the link. - * @param {string} props.text The link label. - * @param {string} props.url The link for the button. - * @return {Element} The Button component. + * @param {object} props The component properties. + * @param {string} props.anchor Optional anchor/id. + * @param {string} props.backgroundColorHex The background color hex value. + * @param {number} props.borderRadius The border radius in pixels. + * @param {string} props.className Optional classnames. + * @param {string} props.linkTarget The target for the link. + * @param {string} props.rel The rel attribute for the link. + * @param {object} props.style The style attributes. + * @param {string} props.text The link label. + * @param {string} props.textColorHex The text color hex value. + * @param {string} props.url The link for the button. + * @param {number} props.width The width in percent. + * @return {Element} The Button component. */ export default function BlockButton({ anchor, + backgroundColorHex, + borderRadius, className, linkTarget, rel, + style, text, - url + textColorHex, + url, + width }) { return (