From acc095a4820875990ecccade03d149c3a1b3861b Mon Sep 17 00:00:00 2001 From: Sunil Kumar Yadav <79906609+sunilyadav840@users.noreply.github.com> Date: Thu, 23 Sep 2021 20:41:46 +0530 Subject: [PATCH] fixed graph input query JAWS screen reader issue (#1108) --- .../InputTypeahead/InputTypeahead.less | 3 ++ .../InputTypeaheadComponent.tsx | 27 +++++----- .../InputTypeaheadComponent.test.tsx.snap | 52 ++++++++++++------- 3 files changed, 50 insertions(+), 32 deletions(-) diff --git a/src/Explorer/Controls/InputTypeahead/InputTypeahead.less b/src/Explorer/Controls/InputTypeahead/InputTypeahead.less index 1d68e3b7e..082fd937f 100644 --- a/src/Explorer/Controls/InputTypeahead/InputTypeahead.less +++ b/src/Explorer/Controls/InputTypeahead/InputTypeahead.less @@ -8,6 +8,9 @@ .input-type-head-text-field { width: 100%; } + .input-query-form { + width: 100%; + } textarea { width: 100%; line-height: 1; diff --git a/src/Explorer/Controls/InputTypeahead/InputTypeaheadComponent.tsx b/src/Explorer/Controls/InputTypeahead/InputTypeaheadComponent.tsx index 2e9a2d104..13b91012a 100644 --- a/src/Explorer/Controls/InputTypeahead/InputTypeaheadComponent.tsx +++ b/src/Explorer/Controls/InputTypeahead/InputTypeaheadComponent.tsx @@ -160,18 +160,21 @@ export class InputTypeaheadComponent extends React.Component< return (
- this.setState({ isSuggestionVisible: true })} - onChange={(_event, newValue?: string) => this.handleChange(newValue)} - /> +
+ this.setState({ isSuggestionVisible: true })} + onChange={(_event, newValue?: string) => this.handleChange(newValue)} + /> + {this.props.showCancelButton && ( 1`] = ` - +
+ +
`; @@ -28,16 +34,22 @@ exports[`inputTypeahead renders