rusackas commented on code in PR #43917:
URL: https://github.com/apache/superset/pull/43917#discussion_r4141820492


##########
superset-frontend/plugins/plugin-chart-pivot-table/src/react-pivottable/Styles.ts:
##########
@@ -63,6 +100,19 @@ export const Styles = styled.div<{ isDashboardEditMode: 
boolean }>`
       background-color: ${theme.colorBgBase};
     }
 
+    /* The totals row's leading label freezes at the left edge like the
+     * body row labels above it. The z-index keeps it over the totals
+     * values scrolling underneath within the row's own stacking context.
+     * Scoped to the single-row-dimension case for the same reason as the
+     * corner cells above. */
+    table.pvtTable tbody tr.pvtRowTotals th.pvtRowTotalLabel {
+      position: ${
+        isDashboardEditMode || !canFreezeRowLabels ? 'inherit' : 'sticky'

Review Comment:
   Good catch. Fixed by having that branch use `static` instead of `inherit`: 
`th.pvtRowTotalLabel`'s direct parent is `tr.pvtRowTotals`, which is always 
sticky, so `inherit` was picking that up regardless of row-dimension count.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to