aria label has been changed for the screen readers to read placeholder text along with label text

This commit is contained in:
Sampath
2023-06-07 00:50:37 +05:30
parent 4cb7c3eb26
commit bbf89eaed8
2 changed files with 4 additions and 4 deletions

View File

@@ -319,7 +319,7 @@ export class AddCollectionPanel extends React.Component<AddCollectionPanelProps,
placeholder="Type a new database id"
size={40}
className="panelTextField"
aria-label="New database id"
aria-label="New database id, Type a new database id"
autoFocus
tabIndex={0}
value={this.state.newDatabaseId}
@@ -425,7 +425,7 @@ export class AddCollectionPanel extends React.Component<AddCollectionPanelProps,
placeholder={`e.g., ${getCollectionName()}1`}
size={40}
className="panelTextField"
aria-label={`${getCollectionName()} id`}
aria-label={`${getCollectionName()} id Example ${getCollectionName()}1`}
value={this.state.collectionId}
onChange={(event: React.ChangeEvent<HTMLInputElement>) =>
this.setState({ collectionId: event.target.value })

View File

@@ -84,7 +84,7 @@ exports[`AddCollectionPanel should render Default properly 1`] = `
className="panelGroupSpacing"
>
<input
aria-label="New database id"
aria-label="New database id, Type a new database id"
aria-required={true}
autoComplete="off"
autoFocus={true}
@@ -178,7 +178,7 @@ exports[`AddCollectionPanel should render Default properly 1`] = `
</StyledTooltipHostBase>
</Stack>
<input
aria-label="Container id"
aria-label="Container id Example Container1"
aria-required={true}
autoComplete="off"
className="panelTextField"