Skip to content
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

Merged
merged 8 commits into from
Dec 6, 2018

Conversation

JamesPortelli
Copy link
Contributor

  • 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.

@JamesPortelli JamesPortelli changed the base branch from master to v5-patch December 5, 2018 17:04
Copy link
Contributor

@amanmahajan7 amanmahajan7 left a 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;
Copy link
Contributor

@amanmahajan7 amanmahajan7 Dec 5, 2018

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}
Copy link
Contributor

@amanmahajan7 amanmahajan7 Dec 5, 2018

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

  1. 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
  2. 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

@amanmahajan7 amanmahajan7 merged commit 4c48024 into v5-patch Dec 6, 2018
@amanmahajan7 amanmahajan7 deleted the ja-tooltip-cell-action-focus-fix-v5 branch December 6, 2018 14:54
@@ -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)
Copy link
Contributor

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?

amanmahajan7 pushed a commit that referenced this pull request Dec 7, 2018
* 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
rossjp pushed a commit to rossjp/react-data-grid that referenced this pull request Dec 14, 2018
* 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
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.

4 participants