Add teaching bubbles for mongo quickstart (#1313)

This commit is contained in:
victor-meng
2022-08-03 13:54:01 -07:00
committed by GitHub
parent c2673ec707
commit d0c2f72ed3
11 changed files with 235 additions and 13 deletions

View File

@@ -120,7 +120,10 @@ const CloseButton = ({
role="button"
aria-label="Close Tab"
className="cancelButton"
onClick={() => (tab ? tab.onCloseTabButtonClick() : useTabs.getState().closeReactTab(tabKind))}
onClick={(event: React.MouseEvent<HTMLSpanElement, MouseEvent>) => {
event.stopPropagation();
tab ? tab.onCloseTabButtonClick() : useTabs.getState().closeReactTab(tabKind);
}}
tabIndex={active ? 0 : undefined}
onKeyPress={({ nativeEvent: e }) => tab.onKeyPressClose(undefined, e)}
>