-
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
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
c576707
change level tooltip gets rendered and level it gets triggered
3b22f60
remove unsed editors and fix imports.
b7bdad8
re order inclusion of frozen cells to avoid z-index css.
108bae6
address comments
9fc3f17
Revert "remove unsed editors and fix imports."
71a2931
fix issues
a9e19fb
fix issues
714ad2a
remove extra space
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 commentThe reason will be displayed to describe this comment to others. Learn more. Is it OK to change the |
||
.map(column => this.getCell(column)); | ||
}; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 commentThe 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 |
||
} | ||
|
||
.react-grid-Cell.react-grid-Cell--frozen.has-tooltip:hover { | ||
z-index: 15; | ||
} | ||
|
||
.react-contextmenu--visible { | ||
z-index: 1000; | ||
} | ||
|
@@ -90,16 +99,8 @@ | |
padding: 0; | ||
} | ||
|
||
.cell-tooltip { | ||
position: relative; | ||
display: inline-block; | ||
} | ||
|
||
.cell-tooltip:hover { | ||
z-index: 101; | ||
} | ||
|
||
.cell-tooltip .cell-tooltip-text { | ||
white-space: normal; | ||
visibility: hidden; | ||
width: 150px; | ||
background-color: black; | ||
|
@@ -108,12 +109,11 @@ | |
border-radius: 6px; | ||
padding: 5px 0; | ||
position: absolute; | ||
z-index: 1; | ||
bottom: -150%; | ||
top: 50%; | ||
bottom: initial; | ||
left: 50%; | ||
margin-left: -60px; | ||
/* Fade in tooltip - takes 1 second to go from 0% to 100% opacity */ | ||
opacity: 1s; | ||
margin-top: 15px; | ||
margin-left: -75px | ||
} | ||
|
||
.cell-tooltip:hover .cell-tooltip-text { | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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