-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Fix tool tips for question mark icons #14084
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
Fix tool tips for question mark icons #14084
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Bundle ReportChanges will increase total bundle size by 1.28kB (0.01%) ⬆️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: sentry-docs-server-cjsAssets Changed:
Files in
App Routes Affected:
view changes for bundle: sentry-docs-client-array-pushAssets Changed:
Files in
|
codyde
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
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>
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>
Tooltips were not appearing in Firefox 139.0 for question mark icons due to a known compatibility issue with Radix UI's
Tooltip.Triggerwhen using theasChildprop, affecting Firefox's event handling and CSS animations.To resolve this:
src/components/onboarding/index.tsx:onMouseEnter,onMouseLeave,onFocus, andonBlurhandlers were added toTooltip.Triggerto manually manage thedata-stateattribute, ensuring Firefox correctly recognizes the tooltip's active state.QuestionMarkCircledIconwas wrapped in a<span>withrole="button",tabIndex={0}, andaria-labelfor improved accessibility and keyboard navigation.delayDuration={300}was added toTooltip.Provider, andalign="center",side="top"toTooltip.Contentfor consistent timing and positioning.src/components/onboarding/styles.module.scss:z-index,position,pointer-events,-moz-user-select,-webkit-user-select,-moz-animation-duration,-moz-animation-timing-function) were added to.TooltipContent.-moz-animation-namewas applied to existing animation rules, and-moz-keyframeswere 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.