From d199311633a2036341de326fdc9d266847b5b827 Mon Sep 17 00:00:00 2001 From: SATYA SB <107645008+satya07sb@users.noreply.github.com> Date: Wed, 19 Jun 2024 16:02:09 +0530 Subject: [PATCH] Ensures ARIA attributes are allowed for an element's role. (#1846) * [accessibility-3048277]:[Programmatic Access - Azure Cosmos DB - Data Explorer>New Container]: Ensures ARIA attributes are allowed for an element's role * updated PartitionKeyPane --------- Co-authored-by: Satyapriya Bai --- src/Explorer/Panes/AddCollectionPanel.tsx | 4 +--- .../Panes/ChangePartitionKeyPane/ChangePartitionKeyPane.tsx | 2 +- .../Panes/__snapshots__/AddCollectionPanel.test.tsx.snap | 1 - 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/Explorer/Panes/AddCollectionPanel.tsx b/src/Explorer/Panes/AddCollectionPanel.tsx index f208720cf..a3a01d5fb 100644 --- a/src/Explorer/Panes/AddCollectionPanel.tsx +++ b/src/Explorer/Panes/AddCollectionPanel.tsx @@ -576,9 +576,7 @@ export class AddCollectionPanel extends React.Component - - {this.getPartitionKeySubtext()} - + {this.getPartitionKeySubtext()} = ({ - + {getPartitionKeySubtext(userContext.features.partitionKeyDefault, userContext.apiType)} diff --git a/src/Explorer/Panes/__snapshots__/AddCollectionPanel.test.tsx.snap b/src/Explorer/Panes/__snapshots__/AddCollectionPanel.test.tsx.snap index 0831c5a10..93f52c6ce 100644 --- a/src/Explorer/Panes/__snapshots__/AddCollectionPanel.test.tsx.snap +++ b/src/Explorer/Panes/__snapshots__/AddCollectionPanel.test.tsx.snap @@ -223,7 +223,6 @@ exports[`AddCollectionPanel should render Default properly 1`] = `