-
Notifications
You must be signed in to change notification settings - Fork 13.9k
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(chart & table): make to allow highlight in case of numeric column #19938
Conversation
Codecov Report
@@ Coverage Diff @@
## master #19938 +/- ##
==========================================
- Coverage 66.53% 66.52% -0.02%
==========================================
Files 1714 1714
Lines 65044 65068 +24
Branches 6723 6724 +1
==========================================
+ Hits 43278 43287 +9
- Misses 20055 20069 +14
- Partials 1711 1712 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@@ -71,7 +71,7 @@ export default styled.div` | |||
cursor: pointer; | |||
} | |||
td.dt-is-filter:hover { | |||
background-color: ${theme.colors.secondary.light4}; | |||
background-color: ${theme.colors.secondary.light4} !important; |
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.
if this was working for non-integers, why do we need the important now?
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.
It is because table cell is using inline style when numeric cell and so I need to use important
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.
Does the inline style need to set a background color at all? If so, can we switch it to use className / Emotion?
... or the other way around, worst case.
superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx
Outdated
Show resolved
Hide resolved
…apache#19938) * fix(chart & table): make to allow highlight in case of numeric column * fix(chart & table): make to use emitFilter directly * fix(chart & table): make to use styled component instead of inline style
…apache#19938) * fix(chart & table): make to allow highlight in case of numeric column * fix(chart & table): make to use emitFilter directly * fix(chart & table): make to use styled component instead of inline style
SUMMARY
Hovering highlight is not working for integer columns on a Table Chart with cross-filtering enabled.
Description
When cross-filtering is enabled, hovering an element on the Table Chart would highlight the cell. However the highlighting is not happening in case the cell is an integer.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
BEFORE:
cross-filter-highlight.mov
AFTER:
screen-cross-filter.mov
TESTING INSTRUCTIONS
How to reproduce the bug
ADDITIONAL INFORMATION