From 2518068bb4b30126d737b5e5ccfd1da10906dbed Mon Sep 17 00:00:00 2001 From: Amr Sharaf Date: Wed, 17 Apr 2019 16:02:43 -0700 Subject: [PATCH] Added button role to clickable divs for accessibility --- src/client/src/components/Details/index.tsx | 1 + src/client/src/components/SelectableCard/index.tsx | 1 + src/client/src/components/SummaryTile/index.tsx | 1 + src/client/src/containers/AzureFunctionsSelection/index.tsx | 1 + src/client/src/containers/CosmosDBSelection/index.tsx | 1 + src/client/src/containers/Footer/index.tsx | 4 +++- src/client/src/containers/Header/index.tsx | 1 + src/client/src/containers/ProjectNameAndOutput/index.tsx | 4 +++- src/client/src/containers/Welcome/index.tsx | 4 +++- 9 files changed, 15 insertions(+), 3 deletions(-) diff --git a/src/client/src/components/Details/index.tsx b/src/client/src/components/Details/index.tsx index 0286419620..bc738b3d8c 100644 --- a/src/client/src/components/Details/index.tsx +++ b/src/client/src/components/Details/index.tsx @@ -82,6 +82,7 @@ const Details = ({
{ onCardClick(cardNumber); diff --git a/src/client/src/components/SummaryTile/index.tsx b/src/client/src/components/SummaryTile/index.tsx index 9838bd8761..8b38a93194 100644 --- a/src/client/src/components/SummaryTile/index.tsx +++ b/src/client/src/components/SummaryTile/index.tsx @@ -131,6 +131,7 @@ const SummaryTile = ({ > {isDraggable && }
{intl.formatMessage(serviceType)}
({ isValidNameAndProjectPath: isValidNameAndProjectPathSelector(state) }); -const mapDispatchToProps = (dispatch: ThunkDispatch): IDispatchProps => ({ +const mapDispatchToProps = ( + dispatch: ThunkDispatch +): IDispatchProps => ({ setRouteVisited: (route: string) => { dispatch(setVisitedWizardPageAction(route)); }, diff --git a/src/client/src/containers/Header/index.tsx b/src/client/src/containers/Header/index.tsx index 369df9e1c0..9d8e966bb3 100644 --- a/src/client/src/containers/Header/index.tsx +++ b/src/client/src/containers/Header/index.tsx @@ -42,6 +42,7 @@ const Header = (props: Props) => {
{email}
({ projectNameValidation: getProjectNameValidation(state) }); -const mapDispatchToProps = (dispatch: Dispatch): IDispatchProps => ({ +const mapDispatchToProps = ( + dispatch: Dispatch +): IDispatchProps => ({ updateProjectName: (projectName: string) => { dispatch(updateProjectNameAction(projectName)); }, diff --git a/src/client/src/containers/Welcome/index.tsx b/src/client/src/containers/Welcome/index.tsx index f60041e6b3..2db250ed1b 100644 --- a/src/client/src/containers/Welcome/index.tsx +++ b/src/client/src/containers/Welcome/index.tsx @@ -68,7 +68,9 @@ const Welcome = ({ ); }; -const mapDispatchToProps = (dispatch: Dispatch): IDispatchProps => ({ +const mapDispatchToProps = ( + dispatch: Dispatch +): IDispatchProps => ({ updateProjectName: (projectName: string) => { dispatch(updateProjectNameAction(projectName)); },