Skip to content

Commit

Permalink
gray out unselected rows in tdd
Browse files Browse the repository at this point in the history
  • Loading branch information
djbarnwal committed Nov 8, 2023
1 parent b8f7b70 commit 03af90a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions web-common/src/features/dashboards/pivot/Pivot.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -330,4 +330,7 @@
:global(regular-table thead th) {
height: var(--row-height);
}
:global(regular-table tr:hover) {
color: none;
}
</style>
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,14 @@
if (x === 0) {
element.classList.add("pl-0");
const marker = getMarker(value, y);
// Gray out row if doesn't have marker
if (y !== 0 && tableData?.selectedValues?.length && !marker) {
element?.parentElement?.classList.add("text-gray-400");
} else {
element?.parentElement?.classList.remove("text-gray-400");
}
const justifyTotal = y === 0 ? "justify-end" : "";
const fontWeight = y === 0 ? "font-semibold" : "font-normal";
return `<div class="flex items-center w-full h-full overflow-hidden pr-2 gap-1 ${justifyTotal}">
Expand Down

0 comments on commit 03af90a

Please sign in to comment.