Skip to content
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
5 changes: 4 additions & 1 deletion datahub-web-react/.storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ export default {
},
stories: [
'../src/alchemy-components/.docs/*.mdx',
'../src/alchemy-components/components/**/*.stories.@(js|jsx|mjs|ts|tsx)'
'../src/alchemy-components/components/**/*.stories.@(js|jsx|mjs|ts|tsx)',
// App-level compositions (e.g. the entity hover card) that build on alchemy components but
// depend on GraphQL types, so they can't live under `alchemy-components`.
'../src/app/**/*.stories.@(js|jsx|mjs|ts|tsx)',
],
addons: [
'@storybook/addon-onboarding',
Expand Down
1 change: 1 addition & 0 deletions datahub-web-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"@dnd-kit/modifiers": "^9.0.0",
"@dnd-kit/sortable": "^10.0.0",
"@dnd-kit/utilities": "^3.2.2",
"@floating-ui/react-dom": "^2.1.9",
"@fontsource/mulish": "^5.0.16",
"@geometricpanda/storybook-addon-badges": "^2.0.2",
"@graphql-codegen/fragment-matcher": "^5.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,7 @@ export const Button = ({
</ButtonBase>
);
};

// `FloatingOverlay` keys off this to wrap a disabled button. A disabled native button
// never fires the hover listeners, so the tooltip has to listen on a parent instead.
Button.displayName = 'Button';
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,14 @@ export function Day<ValueType>({ day, weekOffset, dayIndex }: DayProps<ValueType

if (showPopover) {
return (
<Popover placement="topLeft" content={popoverRenderer?.(day)}>
<Popover
placement="topLeft"
content={popoverRenderer?.(day)}
// Opens above this 16px square, which is exactly where the previous day sits.
// The box must not catch that hover. Controls inside the content opt back in.
overlayStyle={{ pointerEvents: 'none' }}
overlayInnerStyle={{ pointerEvents: 'none' }}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

View details button stays unreachable

Medium Severity

pointerEvents: 'none' on the day overlay lets hover reach the previous cell, but FloatingOverlay still closes 100ms after trigger mouseleave. The View details Button sets pointerEvents: 'auto', yet the path to it crosses the 8px offset and 12px padding sitting over that previous day, so the popover closes or switches before a click can land.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit b9f5de4. Configure here.

>
{renderBar()}
</Popover>
);
Expand Down
Loading
Loading