Skip to content

Commit 4e5b115

Browse files
committed
checkin on behalf of jyothsna
1 parent 4e779f7 commit 4e5b115

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

projects/dxc-ngx-cdk/src/lib/dxc-tabs/dxc-tabs.component.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,14 @@ export class DxcTabsComponent implements OnChanges {
194194
tabLabels[index].addEventListener("mouseenter", function () {
195195
tab.onHoverHandler();
196196
});
197+
tabLabels[index].addEventListener("keyup", function (e) {
198+
if(e.key === 'Enter' || e.key === ' ')
199+
tab.onClickHandler();
200+
});
201+
tabLabels[index].addEventListener("keydown", function (e) {
202+
if(e.key === 'Enter' || e.key === ' ')
203+
tab.onClickHandler()
204+
});
197205
});
198206
}
199207
}

0 commit comments

Comments
 (0)