Skip to content

Commit

Permalink
fix(pivot-table): set padding on hoverable div instead of container th
Browse files Browse the repository at this point in the history
  • Loading branch information
HendrikThePendric committed Sep 14, 2023
1 parent 6a716b1 commit 9aa8776
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/components/PivotTable/styles/PivotTable.style.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,27 @@ export const cell = css`
.title-cell {
font-weight: bold;
background-color: #cddaed;
padding-top: 0;
padding-bottom: 0;
}
.title-cell-content {
text-align: center;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.title-cell.displaydensity-COMPACT > .title-cell-content {
padding-top: ${DISPLAY_DENSITY_PADDING_COMPACT}px;
padding-bottom: ${DISPLAY_DENSITY_PADDING_COMPACT}px;
}
.title-cell.displaydensity-NORMAL > .title-cell-content {
padding-top: ${DISPLAY_DENSITY_PADDING_NORMAL}px;
padding-bottom: ${DISPLAY_DENSITY_PADDING_NORMAL}px;
}
.title-cell.displaydensity-COMFORTABLE > .title-cell-content {
padding-top: ${DISPLAY_DENSITY_PADDING_COMFORTABLE}px;
padding-bottom: ${DISPLAY_DENSITY_PADDING_COMFORTABLE}px;
}
.row-header {
background-color: #dae6f8;
}
Expand Down

0 comments on commit 9aa8776

Please sign in to comment.