[accessibility-3556570]: [Programmatic Access- Azure Cosmos DB- Data Explorer]: Ensures elements with an ARIA role that require child roles contain them.

This commit is contained in:
Satyapriya Bai 2025-02-05 18:04:19 +05:30
parent 213d1c68fe
commit 51ddd5872f

View File

@ -159,7 +159,7 @@ function TabNav({ tab, active, tabKind }: { tab?: Tab; active: boolean; tabKind?
</span>
<span className="tabNavText">{tabTitle}</span>
</span>
<span className="tabIconSection">
<span className="tabIconSection" aria-hidden="true">
<CloseButton tab={tab} active={active} hovering={hovering} tabKind={tabKind} ariaLabel={tabTitle} />
</span>
</div>
@ -247,7 +247,7 @@ function TabPane({ tab, active }: { tab: Tab; active: boolean }) {
if (tab) {
if ("render" in tab) {
return (
<div data-test={`Tab:${tab.tabId}`} {...attrs}>
<div id={tab.tabId} data-test={`Tab:${tab.tabId}`} {...attrs}>
{tab.render()}
</div>
);