From b9d93c7070df7078dc94c521b7c0579133265223 Mon Sep 17 00:00:00 2001 From: MokireddySampath <120497218+MokireddySampath@users.noreply.github.com> Date: Wed, 27 Sep 2023 20:40:52 +0530 Subject: [PATCH] =?UTF-8?q?dropdown,input=20elements=20have=20been=20updat?= =?UTF-8?q?ed=20to=20grasp=20screenreaderconten=E2=80=A6=20(#1440)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * dropdown,input elements have been updated to grasp screenreadercontent for all the elements * Update EntityValue.tsx * Update TableEntity.tsx * Update AddTableEntityPanel.tsx * entityvalue.tsx has been removed from tsconfig.strict file since the changes for the files are not getting compiled --- src/Common/EntityValue.tsx | 2 ++ src/Common/TableEntity.tsx | 3 +++ tsconfig.strict.json | 3 +-- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Common/EntityValue.tsx b/src/Common/EntityValue.tsx index 7d7f3d7f5..4fb0403a9 100644 --- a/src/Common/EntityValue.tsx +++ b/src/Common/EntityValue.tsx @@ -1,5 +1,6 @@ import { DatePicker, TextField } from "@fluentui/react"; import React, { FunctionComponent } from "react"; +import { attributeValueLabel } from "../Explorer/Panes/Tables/Validators/EntityTableHelper"; export interface TableEntityProps { entityValueLabel?: string; @@ -58,6 +59,7 @@ export const EntityValue: FunctionComponent = ({ placeholder={entityValuePlaceholder} value={typeof entityValue === "string" ? entityValue : ""} onChange={onEntityValueChange} + ariaLabel={attributeValueLabel} /> ); }; diff --git a/src/Common/TableEntity.tsx b/src/Common/TableEntity.tsx index d82c75e88..dec2c707d 100644 --- a/src/Common/TableEntity.tsx +++ b/src/Common/TableEntity.tsx @@ -12,6 +12,7 @@ import { import React, { FunctionComponent } from "react"; import DeleteIcon from "../../images/delete.svg"; import EditIcon from "../../images/Edit_entity.svg"; +import { attributeNameLabel, dataTypeLabel } from "../Explorer/Panes/Tables/Validators/EntityTableHelper"; import { CassandraType, TableType } from "../Explorer/Tables/Constants"; import { userContext } from "../UserContext"; import { EntityValue } from "./EntityValue"; @@ -112,6 +113,7 @@ export const TableEntity: FunctionComponent = ({ value={entityProperty} onChange={onEntityPropertyChange} required + ariaLabel={attributeNameLabel} /> = ({ options={options} disabled={isPropertyTypeDisable} styles={dropdownStyles} + ariaLabel={dataTypeLabel} />