From b9ebb10e96fb5ccc51c5f24298e5ba77a51061ac Mon Sep 17 00:00:00 2001 From: Ben Biggs Date: Wed, 29 Jul 2020 11:59:30 -0500 Subject: [PATCH] fix(button): add string as allowable proptype to ariaPressed --- react/src/lib/Button/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react/src/lib/Button/index.js b/react/src/lib/Button/index.js index aee8e5bb49..5d0f4b602a 100644 --- a/react/src/lib/Button/index.js +++ b/react/src/lib/Button/index.js @@ -220,7 +220,7 @@ Button.propTypes = { /** @prop ID to reference for blindness accessibility feature | '' */ ariaLabelledBy: PropTypes.string, /** @prop Boolean value for aria-pressed (toggle button accessibility) | null */ - ariaPressed: PropTypes.bool, + ariaPressed: PropTypes.oneOfType([PropTypes.bool,PropTypes.string]), /** @prop Children Nodes to Render inside Button | null */ children: PropTypes.node, /** @prop Sets circle css styling | false */