Skip to content

fix(react-tooltip): clip arrow filter shadow#36273

Open
KirtiRamchandani wants to merge 1 commit into
microsoft:masterfrom
KirtiRamchandani:fix/tooltip-filter-arrow
Open

fix(react-tooltip): clip arrow filter shadow#36273
KirtiRamchandani wants to merge 1 commit into
microsoft:masterfrom
KirtiRamchandani:fix/tooltip-filter-arrow

Conversation

@KirtiRamchandani
Copy link
Copy Markdown

Problem

  • Tooltip with withArrow can render a mirrored/extra visual artifact when the component's default drop-shadow filter is applied to rich tooltip content.

Root cause

  • The arrow is implemented as a rotated square behind the tooltip body. The visible triangle is correct during normal painting, but the CSS filter samples the arrow element's full paint area, including the hidden half of the square.

Solution

  • Clip the tooltip arrow element to the same triangular shape used by its pseudo-element before the drop-shadow filter is applied.
  • Add a patch change file for @fluentui/react-tooltip.

Tests run

  • corepack yarn prettier --check packages/react-components/react-tooltip/library/src/components/Tooltip/useTooltipStyles.styles.ts change/@fluentui-react-tooltip-clip-arrow-filter-shadow.json
  • corepack yarn nx run react-tooltip:lint
  • corepack yarn nx run react-tooltip:type-check
  • corepack yarn nx run react-tooltip:test
  • corepack yarn nx run react-tooltip:build
  • git diff --check

Fixes #36265

@KirtiRamchandani KirtiRamchandani requested review from a team and mainframev as code owners May 31, 2026 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: CSS filter property on Tooltip mirrors content outside the Tooltip when withArrow is enabled

1 participant