mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-04-18 07:38:43 +01:00
fixed graph input query JAWS screen reader issue (#1108)
This commit is contained in:
parent
288e6410f3
commit
acc095a482
@ -8,6 +8,9 @@
|
|||||||
.input-type-head-text-field {
|
.input-type-head-text-field {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
.input-query-form {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
textarea {
|
textarea {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
|
@ -160,18 +160,21 @@ export class InputTypeaheadComponent extends React.Component<
|
|||||||
return (
|
return (
|
||||||
<div className="input-typeahead-container">
|
<div className="input-typeahead-container">
|
||||||
<Stack horizontal>
|
<Stack horizontal>
|
||||||
<TextField
|
<form aria-labelledby="input" className="input-query-form">
|
||||||
multiline={useTextarea}
|
<TextField
|
||||||
rows={1}
|
multiline={useTextarea}
|
||||||
defaultValue={defaultValue}
|
rows={1}
|
||||||
ariaLabel="Input query"
|
id="input"
|
||||||
placeholder={placeholder}
|
defaultValue={defaultValue}
|
||||||
className="input-type-head-text-field"
|
ariaLabel="Input query"
|
||||||
value={defaultValue}
|
placeholder={placeholder}
|
||||||
onKeyDown={this.onSubmit}
|
className="input-type-head-text-field"
|
||||||
onFocus={() => this.setState({ isSuggestionVisible: true })}
|
value={defaultValue}
|
||||||
onChange={(_event, newValue?: string) => this.handleChange(newValue)}
|
onKeyDown={this.onSubmit}
|
||||||
/>
|
onFocus={() => this.setState({ isSuggestionVisible: true })}
|
||||||
|
onChange={(_event, newValue?: string) => this.handleChange(newValue)}
|
||||||
|
/>
|
||||||
|
</form>
|
||||||
{this.props.showCancelButton && (
|
{this.props.showCancelButton && (
|
||||||
<IconButton
|
<IconButton
|
||||||
styles={iconButtonStyles}
|
styles={iconButtonStyles}
|
||||||
|
@ -7,16 +7,22 @@ exports[`inputTypeahead renders <input /> 1`] = `
|
|||||||
<Stack
|
<Stack
|
||||||
horizontal={true}
|
horizontal={true}
|
||||||
>
|
>
|
||||||
<StyledTextFieldBase
|
<form
|
||||||
ariaLabel="Input query"
|
aria-labelledby="input"
|
||||||
className="input-type-head-text-field"
|
className="input-query-form"
|
||||||
multiline={false}
|
>
|
||||||
onChange={[Function]}
|
<StyledTextFieldBase
|
||||||
onFocus={[Function]}
|
ariaLabel="Input query"
|
||||||
onKeyDown={[Function]}
|
className="input-type-head-text-field"
|
||||||
placeholder="placeholder"
|
id="input"
|
||||||
rows={1}
|
multiline={false}
|
||||||
/>
|
onChange={[Function]}
|
||||||
|
onFocus={[Function]}
|
||||||
|
onKeyDown={[Function]}
|
||||||
|
placeholder="placeholder"
|
||||||
|
rows={1}
|
||||||
|
/>
|
||||||
|
</form>
|
||||||
</Stack>
|
</Stack>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
@ -28,16 +34,22 @@ exports[`inputTypeahead renders <textarea /> 1`] = `
|
|||||||
<Stack
|
<Stack
|
||||||
horizontal={true}
|
horizontal={true}
|
||||||
>
|
>
|
||||||
<StyledTextFieldBase
|
<form
|
||||||
ariaLabel="Input query"
|
aria-labelledby="input"
|
||||||
className="input-type-head-text-field"
|
className="input-query-form"
|
||||||
multiline={true}
|
>
|
||||||
onChange={[Function]}
|
<StyledTextFieldBase
|
||||||
onFocus={[Function]}
|
ariaLabel="Input query"
|
||||||
onKeyDown={[Function]}
|
className="input-type-head-text-field"
|
||||||
placeholder="placeholder"
|
id="input"
|
||||||
rows={1}
|
multiline={true}
|
||||||
/>
|
onChange={[Function]}
|
||||||
|
onFocus={[Function]}
|
||||||
|
onKeyDown={[Function]}
|
||||||
|
placeholder="placeholder"
|
||||||
|
rows={1}
|
||||||
|
/>
|
||||||
|
</form>
|
||||||
</Stack>
|
</Stack>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user