Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(tooltip): Disable point events on all tooltips to prevent underlying elements from being blocked. #183

Merged
merged 3 commits into from
Feb 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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