Skip to content

Conversation

@rahulchhabria
Copy link
Contributor

Tooltips were not appearing in Firefox 139.0 for question mark icons due to a known compatibility issue with Radix UI's Tooltip.Trigger when using the asChild prop, affecting Firefox's event handling and CSS animations.

To resolve this:

  • In src/components/onboarding/index.tsx:
    • Explicit onMouseEnter, onMouseLeave, onFocus, and onBlur handlers were added to Tooltip.Trigger to manually manage the data-state attribute, ensuring Firefox correctly recognizes the tooltip's active state.
    • The QuestionMarkCircledIcon was wrapped in a <span> with role="button", tabIndex={0}, and aria-label for improved accessibility and keyboard navigation.
    • delayDuration={300} was added to Tooltip.Provider, and align="center", side="top" to Tooltip.Content for consistent timing and positioning.
  • In src/components/onboarding/styles.module.scss:
    • Firefox-specific CSS properties (z-index, position, pointer-events, -moz-user-select, -webkit-user-select, -moz-animation-duration, -moz-animation-timing-function) were added to .TooltipContent.
    • -moz-animation-name was applied to existing animation rules, and -moz-keyframes were defined for all slide animations to ensure proper rendering and animation in Firefox.

These changes ensure tooltips now appear correctly in Firefox 139.0, while maintaining cross-browser compatibility and accessibility standards.

@vercel
Copy link

vercel bot commented Jun 19, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
develop-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 20, 2025 0:55am
sentry-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 20, 2025 0:55am

@codecov
Copy link

codecov bot commented Jun 19, 2025

Bundle Report

Changes will increase total bundle size by 1.28kB (0.01%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
sentry-docs-server-cjs 10.92MB 469 bytes (0.0%) ⬆️
sentry-docs-client-array-push 9.77MB 808 bytes (0.01%) ⬆️

Affected Assets, Files, and Routes:

view changes for bundle: sentry-docs-server-cjs

Assets Changed:

Asset Name Size Change Total Size Change (%)
1729.js -3 bytes 1.64MB -0.0%
../instrumentation.js -10 bytes 973.36kB -0.0%
9523.js -3 bytes 949.31kB -0.0%
../app/[[...path]]/page.js 485 bytes 591.26kB 0.08%

Files in ../app/[[...path]]/page.js:

  • ./src/components/onboarding/index.tsx → Total Size: 13.91kB

  • ./src/components/onboarding/styles.module.scss → Total Size: 395 bytes

  • ./src/components/onboarding/index.tsx → Total Size: 1.39kB

App Routes Affected:

App Route Size Change Total Size Change (%)
/[[...path]] 485 bytes 3.14MB 0.02%
view changes for bundle: sentry-docs-client-array-push

Assets Changed:

Asset Name Size Change Total Size Change (%)
static/chunks/pages/_app-*.js -3 bytes 873.24kB -0.0%
static/css/*.css 321 bytes 19.1kB 1.71%
static/chunks/7750-*.js -3 bytes 401.83kB -0.0%
server/app/api/ip-*.js 1 bytes 259.13kB 0.0%
server/app/_not-*.js 1 bytes 259.12kB 0.0%
server/app/[[...path]]/page_client-*.js 1 bytes 259.08kB 0.0%
server/app/platform-*.js 1 bytes 244.62kB 0.0%
static/chunks/app/[[...path]]/page-*.js 489 bytes 83.66kB 0.59%
server/middleware-*.js -5.55kB 1.0kB -84.74%
server/middleware-*.js 5.55kB 6.55kB 555.3% ⚠️
static/Em5wW6LIIw_CQBKZ9V9vs/_buildManifest.js (New) 616 bytes 616 bytes 100.0% 🚀
static/Em5wW6LIIw_CQBKZ9V9vs/_ssgManifest.js (New) 77 bytes 77 bytes 100.0% 🚀
static/_i4kAFJ1NHhjfH7Fdh5YR/_buildManifest.js (Deleted) -616 bytes 0 bytes -100.0% 🗑️
static/_i4kAFJ1NHhjfH7Fdh5YR/_ssgManifest.js (Deleted) -77 bytes 0 bytes -100.0% 🗑️

Files in static/chunks/app/[[...path]]/page-*.js:

  • ./src/components/onboarding/index.tsx → Total Size: 14.75kB

  • ./src/components/onboarding/styles.module.scss → Total Size: 401 bytes

Copy link
Contributor

@codyde codyde left a comment

Choose a reason for hiding this comment

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

Looks good!

@codyde codyde merged commit ed305e3 into master Jun 20, 2025
14 checks passed
@codyde codyde deleted the cursor/fix-tool-tips-for-question-mark-icons-af9a branch June 20, 2025 01:04
antonpirker pushed a commit that referenced this pull request Jun 24, 2025
Tooltips were not appearing in Firefox 139.0 for question mark icons due
to a known compatibility issue with Radix UI's `Tooltip.Trigger` when
using the `asChild` prop, affecting Firefox's event handling and CSS
animations.

To resolve this:
*   In `src/components/onboarding/index.tsx`:
* Explicit `onMouseEnter`, `onMouseLeave`, `onFocus`, and `onBlur`
handlers were added to `Tooltip.Trigger` to manually manage the
`data-state` attribute, ensuring Firefox correctly recognizes the
tooltip's active state.
* The `QuestionMarkCircledIcon` was wrapped in a `<span>` with
`role="button"`, `tabIndex={0}`, and `aria-label` for improved
accessibility and keyboard navigation.
* `delayDuration={300}` was added to `Tooltip.Provider`, and
`align="center"`, `side="top"` to `Tooltip.Content` for consistent
timing and positioning.
*   In `src/components/onboarding/styles.module.scss`:
* Firefox-specific CSS properties (`z-index`, `position`,
`pointer-events`, `-moz-user-select`, `-webkit-user-select`,
`-moz-animation-duration`, `-moz-animation-timing-function`) were added
to `.TooltipContent`.
* `-moz-animation-name` was applied to existing animation rules, and
`-moz-keyframes` were defined for all slide animations to ensure proper
rendering and animation in Firefox.

These changes ensure tooltips now appear correctly in Firefox 139.0,
while maintaining cross-browser compatibility and accessibility
standards.

---------

Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>
bitsandfoxes pushed a commit that referenced this pull request Jul 3, 2025
Tooltips were not appearing in Firefox 139.0 for question mark icons due
to a known compatibility issue with Radix UI's `Tooltip.Trigger` when
using the `asChild` prop, affecting Firefox's event handling and CSS
animations.

To resolve this:
*   In `src/components/onboarding/index.tsx`:
* Explicit `onMouseEnter`, `onMouseLeave`, `onFocus`, and `onBlur`
handlers were added to `Tooltip.Trigger` to manually manage the
`data-state` attribute, ensuring Firefox correctly recognizes the
tooltip's active state.
* The `QuestionMarkCircledIcon` was wrapped in a `<span>` with
`role="button"`, `tabIndex={0}`, and `aria-label` for improved
accessibility and keyboard navigation.
* `delayDuration={300}` was added to `Tooltip.Provider`, and
`align="center"`, `side="top"` to `Tooltip.Content` for consistent
timing and positioning.
*   In `src/components/onboarding/styles.module.scss`:
* Firefox-specific CSS properties (`z-index`, `position`,
`pointer-events`, `-moz-user-select`, `-webkit-user-select`,
`-moz-animation-duration`, `-moz-animation-timing-function`) were added
to `.TooltipContent`.
* `-moz-animation-name` was applied to existing animation rules, and
`-moz-keyframes` were defined for all slide animations to ensure proper
rendering and animation in Firefox.

These changes ensure tooltips now appear correctly in Firefox 139.0,
while maintaining cross-browser compatibility and accessibility
standards.

---------

Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>
@github-actions github-actions bot locked and limited conversation to collaborators Jul 5, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants