Skip to content

Commit

Permalink
feat(tooltip): Disable point events on all tooltips to prevent underl…
Browse files Browse the repository at this point in the history
…ying elements from being blocked. (#183)
  • Loading branch information
junhaoliao authored Feb 20, 2025
1 parent 0e64e3a commit 773629c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
6 changes: 0 additions & 6 deletions src/components/StatusBar/LogLevelSelect/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,3 @@
.log-level-select-listbox {
max-height: calc(100vh - var(--ylv-menu-bar-height) - var(--ylv-status-bar-height)) !important;
}

.log-level-select-option-text-tooltip {
/* Disable pointer events to prevent tooltips from blocking interaction with underlying
elements. */
pointer-events: none;
}
1 change: 0 additions & 1 deletion src/components/StatusBar/LogLevelSelect/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ const LogSelectOption = ({
</ListItemDecorator>
<Tooltip
placement={"left"}
slotProps={{root: {className: "log-level-select-option-text-tooltip"}}}
title={
<Stack
alignItems={"center"}
Expand Down
5 changes: 5 additions & 0 deletions src/components/theme.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ const APP_THEME = extendTheme({
arrow: true,
variant: "outlined",
},
styleOverrides: {
root: {
pointerEvents: "none",
},
},
},
},
fontFamily: {
Expand Down

0 comments on commit 773629c

Please sign in to comment.