-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Cell Tooltip - Focus Issues #1422
Conversation
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.
LGTM
@@ -32,6 +32,15 @@ | |||
box-shadow: 2px 0 5px -2px rgba(136, 136, 136, .3) !important; | |||
} | |||
|
|||
/* cell which have tooltips need to have a higher z-index on hover so that the tooltip appears above the other cells*/ | |||
.react-grid-Cell.has-tooltip:hover { | |||
z-index: 5; |
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.
These numbers match the constant values . We need to change it once rc is merged to master
@@ -365,7 +371,6 @@ class Cell extends React.PureComponent { | |||
{cellActionButtons} | |||
{cellExpander} | |||
{cellContent} | |||
{tooltip} |
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.
I am still in favor of using a portals for tooltips. To answer your questions from the previous PR
- React uses custom events and use delegation so adding mouse events on each cell will not affect performance. React attaches event handlers on the document to handle this
- We can make tooltips flexible by allowing users to specify tooltip component and just align it with the cell. I will create a POC if I have time
@@ -91,7 +91,7 @@ class Row extends React.Component { | |||
const { colOverscanStartIdx, colOverscanEndIdx, columns } = this.props; | |||
const frozenColumns = columns.filter(c => columnUtils.isFrozen(c)); | |||
const nonFrozenColumnsToRender = columns.slice(colOverscanStartIdx, colOverscanEndIdx + 1).filter(c => !columnUtils.isFrozen(c)); | |||
return frozenColumns.concat(nonFrozenColumnsToRender) | |||
return nonFrozenColumnsToRender.concat(frozenColumns) |
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.
Is it OK to change the frozen
vs non-frozen
order?
* Cell Tooltip - Focus Issues (#1422) * change level tooltip gets rendered and level it gets triggered * remove unsed editors and fix imports. * re order inclusion of frozen cells to avoid z-index css. * address comments * Revert "remove unsed editors and fix imports." This reverts commit 3b22f60. * fix issues * fix issues * remove extra space * fix: draggable resizing col jumps to right (#1421) * fix: draggable resizing col jumps to right * refactor: use ref instead of findDOMNode * fix: accidentally removed cel * Release 5.0.5 (#1424) * update changelog * Version bump to 5.0.5 [ci skip] * revert auto file changes * address aman comments
* Cell Tooltip - Focus Issues (adazzle#1422) * change level tooltip gets rendered and level it gets triggered * remove unsed editors and fix imports. * re order inclusion of frozen cells to avoid z-index css. * address comments * Revert "remove unsed editors and fix imports." This reverts commit 3b22f60. * fix issues * fix issues * remove extra space * fix: draggable resizing col jumps to right (adazzle#1421) * fix: draggable resizing col jumps to right * refactor: use ref instead of findDOMNode * fix: accidentally removed cel * Release 5.0.5 (adazzle#1424) * update changelog * Version bump to 5.0.5 [ci skip] * revert auto file changes * address aman comments
Fix issues between cell action and cell tooltips whereby when trying to click on a cell-action the tooltip will show making it very difficult to select the options.
Remove un-referenced editors.
Clean up Frozen column code to get rid of z-index css.