From fe0f8ca90ec04087b39e482d470abe7d38917ea6 Mon Sep 17 00:00:00 2001 From: RiyaJethwa <76566868+RiyaJethwa@users.noreply.github.com> Date: Wed, 1 Nov 2023 20:11:24 +0530 Subject: [PATCH] Accessibility toolbar btn #1560 (#1677) * fix(toolbar):toolbar button enclosed in a div which has unwanted role as button * formatted file --- packages/core/src/components/axes/toolbar.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/core/src/components/axes/toolbar.ts b/packages/core/src/components/axes/toolbar.ts index c8a77bc977..d82576c6d0 100644 --- a/packages/core/src/components/axes/toolbar.ts +++ b/packages/core/src/components/axes/toolbar.ts @@ -32,9 +32,9 @@ export class Toolbar extends Component { }) } - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore - // eslint-disable-next-line @typescript-eslint/no-unused-vars + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars render(animate = true) { const container = this.getComponentContainer() .attr('role', 'toolbar') @@ -77,7 +77,6 @@ export class Toolbar extends Component { .enter() .append('div') .attr('class', 'toolbar-control cds--overflow-menu cds--overflow-menu') - .attr('role', 'button') const self = this enteringToolbarControls