add property is readout twice while using screenreader

This commit is contained in:
Sampath 2023-05-30 22:01:36 +05:30
parent 34611bdbdf
commit ccd817e432
2 changed files with 7 additions and 4 deletions

View File

@ -295,8 +295,9 @@ export const AddTableEntityPanel: FunctionComponent<AddTableEntityPanelProps> =
className="addButtonEntiy" className="addButtonEntiy"
tabIndex={0} tabIndex={0}
onKeyPress={handlekeypressaddentity} onKeyPress={handlekeypressaddentity}
aria-label="Add Property"
> >
<Image {...imageProps} src={AddPropertyIcon} alt="Add Entity" /> <Image {...imageProps} src={AddPropertyIcon} alt="Add Property" />
<Text className="addNewParamStyle">{getAddButtonLabel(userContext.apiType)}</Text> <Text className="addNewParamStyle">{getAddButtonLabel(userContext.apiType)}</Text>
</Stack> </Stack>
)} )}

View File

@ -26,6 +26,7 @@ exports[`Excute Add Table Entity Pane should render Default properly 1`] = `
className="panelMainContent" className="panelMainContent"
> >
<Stack <Stack
aria-label="Add Property"
className="addButtonEntiy" className="addButtonEntiy"
horizontal={true} horizontal={true}
onClick={[Function]} onClick={[Function]}
@ -33,20 +34,21 @@ exports[`Excute Add Table Entity Pane should render Default properly 1`] = `
tabIndex={0} tabIndex={0}
> >
<div <div
aria-label="Add Property"
className="ms-Stack addButtonEntiy css-53" className="ms-Stack addButtonEntiy css-53"
onClick={[Function]} onClick={[Function]}
onKeyPress={[Function]} onKeyPress={[Function]}
tabIndex={0} tabIndex={0}
> >
<StyledImageBase <StyledImageBase
alt="Add Entity" alt="Add Property"
height={30} height={30}
key=".0:$.0" key=".0:$.0"
src="" src=""
width={16} width={16}
> >
<ImageBase <ImageBase
alt="Add Entity" alt="Add Property"
height={30} height={30}
src="" src=""
styles={[Function]} styles={[Function]}
@ -335,7 +337,7 @@ exports[`Excute Add Table Entity Pane should render Default properly 1`] = `
} }
> >
<img <img
alt="Add Entity" alt="Add Property"
className="ms-Image-image ms-Image-image--portrait is-notLoaded is-fadeIn image-55" className="ms-Image-image ms-Image-image--portrait is-notLoaded is-fadeIn image-55"
key="fabricImage" key="fabricImage"
onError={[Function]} onError={[Function]}