Skip to content

Commit bd7cd7a

Browse files
satya07sbSatyapriya Bai
and
Satyapriya Bai
authored
[accessibility-3556793]: [Screen Reader- Azure Cosmos DB- Data Explorer]: The Learn more links are not descriptive present under the settings. (#2035)
Co-authored-by: Satyapriya Bai <[email protected]>
1 parent 6504358 commit bd7cd7a

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

Diff for: src/Common/Constants.ts

+5
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,11 @@ export class PriorityLevel {
518518
public static readonly Default = "low";
519519
}
520520

521+
export class ariaLabelForLearnMoreLink {
522+
public static readonly AnalyticalStore = "Learn more about analytical store.";
523+
public static readonly AzureSynapseLink = "Learn more about Azure Synapse Link.";
524+
}
525+
521526
export const QueryCopilotSampleDatabaseId = "CopilotSampleDB";
522527
export const QueryCopilotSampleContainerId = "SampleContainer";
523528

Diff for: src/Explorer/Panes/AddCollectionPanel.tsx

+6-1
Original file line numberDiff line numberDiff line change
@@ -865,6 +865,7 @@ export class AddCollectionPanel extends React.Component<AddCollectionPanelProps,
865865
<Link
866866
href="https://aka.ms/cosmosdb-synapselink"
867867
target="_blank"
868+
aria-label={Constants.ariaLabelForLearnMoreLink.AzureSynapseLink}
868869
className="capacitycalculator-link"
869870
>
870871
Learn more
@@ -1222,7 +1223,11 @@ export class AddCollectionPanel extends React.Component<AddCollectionPanelProps,
12221223
<Text variant="small">
12231224
Enable analytical store capability to perform near real-time analytics on your operational data, without
12241225
impacting the performance of transactional workloads.{" "}
1225-
<Link target="_blank" href="https://aka.ms/analytical-store-overview">
1226+
<Link
1227+
aria-label={Constants.ariaLabelForLearnMoreLink.AnalyticalStore}
1228+
target="_blank"
1229+
href="https://aka.ms/analytical-store-overview"
1230+
>
12261231
Learn more
12271232
</Link>
12281233
</Text>

Diff for: src/Explorer/Panes/__snapshots__/AddCollectionPanel.test.tsx.snap

+2
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,7 @@ exports[`AddCollectionPanel should render Default properly 1`] = `
319319
Enable analytical store capability to perform near real-time analytics on your operational data, without impacting the performance of transactional workloads.
320320
321321
<StyledLinkBase
322+
aria-label="Learn more about analytical store."
322323
href="https://aka.ms/analytical-store-overview"
323324
target="_blank"
324325
>
@@ -383,6 +384,7 @@ exports[`AddCollectionPanel should render Default properly 1`] = `
383384
. Enable Synapse Link for this Cosmos DB account.
384385
385386
<StyledLinkBase
387+
aria-label="Learn more about Azure Synapse Link."
386388
className="capacitycalculator-link"
387389
href="https://aka.ms/cosmosdb-synapselink"
388390
target="_blank"

0 commit comments

Comments
 (0)