mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-04-15 06:08:37 +01:00
fixed input parameter keyboard accessibility issue (#1071)
* fixed input parameter keyboard accessibility issue * Fixed autofocus and role issue * make autofocus on close button
This commit is contained in:
parent
3032f689b6
commit
38c3761260
@ -153,7 +153,7 @@ export const ExecuteSprocParamsPane: FunctionComponent<ExecuteSprocParamsPanePro
|
|||||||
selectedKey={paramKeyValue && paramKeyValue.key}
|
selectedKey={paramKeyValue && paramKeyValue.key}
|
||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
<Stack horizontal onClick={addNewParamAtLastIndex}>
|
<Stack horizontal onClick={addNewParamAtLastIndex} tabIndex={0}>
|
||||||
<Image {...imageProps} src={AddPropertyIcon} alt="Add param" />
|
<Image {...imageProps} src={AddPropertyIcon} alt="Add param" />
|
||||||
<Text className="addNewParamStyle">Add New Param</Text>
|
<Text className="addNewParamStyle">Add New Param</Text>
|
||||||
</Stack>
|
</Stack>
|
||||||
|
@ -59,30 +59,36 @@ export const InputParameter: FunctionComponent<InputParameterProps> = ({
|
|||||||
onChange={onParamKeyChange}
|
onChange={onParamKeyChange}
|
||||||
options={options}
|
options={options}
|
||||||
styles={dropdownStyles}
|
styles={dropdownStyles}
|
||||||
|
tabIndex={0}
|
||||||
/>
|
/>
|
||||||
<TextField
|
<TextField
|
||||||
label={inputLabel && inputLabel}
|
label={inputLabel && inputLabel}
|
||||||
id="confirmCollectionId"
|
id="confirmCollectionId"
|
||||||
autoFocus
|
|
||||||
value={paramValue}
|
value={paramValue}
|
||||||
onChange={onParamValueChange}
|
onChange={onParamValueChange}
|
||||||
/>
|
/>
|
||||||
{isAddRemoveVisible && (
|
{isAddRemoveVisible && (
|
||||||
<>
|
<>
|
||||||
<Image
|
<div tabIndex={0}>
|
||||||
{...imageProps}
|
<Image
|
||||||
src={EntityCancelIcon}
|
{...imageProps}
|
||||||
alt="Delete param"
|
src={EntityCancelIcon}
|
||||||
id="deleteparam"
|
alt="Delete param"
|
||||||
onClick={onDeleteParamKeyPress}
|
id="deleteparam"
|
||||||
/>
|
role="button"
|
||||||
<Image
|
onClick={onDeleteParamKeyPress}
|
||||||
{...imageProps}
|
/>
|
||||||
src={AddPropertyIcon}
|
</div>
|
||||||
alt="Add param"
|
<div tabIndex={0}>
|
||||||
id="addparam"
|
<Image
|
||||||
onClick={onAddNewParamKeyPress}
|
{...imageProps}
|
||||||
/>
|
src={AddPropertyIcon}
|
||||||
|
alt="Add param"
|
||||||
|
id="addparam"
|
||||||
|
role="button"
|
||||||
|
onClick={onAddNewParamKeyPress}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
</Stack>
|
</Stack>
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user