-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[WEB-2453] fix: Render on hover only when enabled #5609
Conversation
WalkthroughThe changes introduce a new optional property, Changes
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
What are the cases where we need to render it by default?
@SatishGandham for now the ones that are rendering on hover are the ones in issue layouts. everywhere it is rendering by default. All the cases needs to tested individually and fix indentation issues before enabling it in them |
… of interference with keyboard navigation
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.
@@ -43,7 +43,7 @@ export const Tooltip: React.FC<ITooltipProps> = ({ | |||
openDelay = 200, | |||
closeDelay, | |||
isMobile = false, | |||
renderByDefault = true, | |||
renderByDefault = true, //FIXME: tooltip should always render on hover and not by default, this is a temporary fix |
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.
Update the renderByDefault
prop value to align with the intended behavior.
The updated comment suggests that the tooltip should always render on hover, not by default. However, the renderByDefault
prop is still set to true
, which contradicts the comment.
To avoid confusion and ensure consistency between the code and the comment, consider updating the prop value to match the intended behavior:
- renderByDefault = true, //FIXME: tooltip should always render on hover and not by default, this is a temporary fix
+ renderByDefault = false, // Tooltip should always render on hover and not by default
Alternatively, if the current behavior is indeed a temporary fix, provide a clear timeline or reference to the planned changes to address this discrepancy.
If you need any assistance in implementing the intended behavior or have any questions, feel free to reach out. I'm happy to help!
Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
renderByDefault = true, //FIXME: tooltip should always render on hover and not by default, this is a temporary fix | |
renderByDefault = false, // Tooltip should always render on hover and not by default |
This PR changes the code to enable render on Hover for both dropdown and tooltip only when enabled and treats
renderByDefault
as the single source of truth for issue property dropdownsSummary by CodeRabbit
Release Notes
New Features
renderToolTipByDefault
, across various dropdown components to enhance tooltip rendering flexibility.renderByDefault
prop to several spreadsheet column components, allowing for controlled rendering based on user context.Bug Fixes