diff --git a/benefit-finder/src/shared/components/Modal/index.jsx b/benefit-finder/src/shared/components/Modal/index.jsx index e3cf5765..3006810d 100644 --- a/benefit-finder/src/shared/components/Modal/index.jsx +++ b/benefit-finder/src/shared/components/Modal/index.jsx @@ -137,29 +137,6 @@ const Modal = ({ }) }, [modalOpen]) - /** - * a functional component that renders a link as a button for launching our dialog - * @component - * @param {string} id - matches to modal control - * @param {string} triggerLabel - passed to button for triggering modal - * @return {html} returns an obfuscated anchor element - */ - const Trigger = ({ triggerLabel, onKeyDown, onClick }) => { - return ( - - {triggerLabel} - - ) - } - /** * a functional component that renders a two links as a buttons for navigating out of the dialog * @component @@ -225,11 +202,17 @@ const Modal = ({ return (
- handleKeyValidation(e) && handleOpenModal()} + handleOpenModal()} - > + onKeyDown={e => handleKeyValidation(e) && handleOpenModal()} + noCarrot + tabIndex="0" + triggerRef={triggerRef} + aria-label="Continue" + role="button" + > + {triggerLabel} +