Skip to content

Commit

Permalink
fix(Table): do not set hovered to false when child element is clicked…
Browse files Browse the repository at this point in the history
… (sort button)
  • Loading branch information
YossiSaadi committed Mar 6, 2024
1 parent 01209e6 commit 5828ee9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
color: var(--primary-text-color);
}

&:not(.show):not(:focus):not(:focus-visible) {
&:not(.show) {
opacity: 0;
pointer-events: none;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const TableHeaderCell: VibeComponent<ITableHeaderCellProps, HTMLDivElement> = fo
className={cx(styles.tableHeaderCell, { [styles.sortActive]: isSortActive }, className)}
data-testid={dataTestId || getTestId(ComponentDefaultTestId.TABLE_HEADER_CELL, id)}
role="columnheader"
onMouseEnter={() => setIsHovered(true)}
onMouseOver={() => setIsHovered(true)}
onMouseLeave={() => setIsHovered(false)}
onFocus={() => setIsHovered(true)}
onBlur={() => setIsHovered(false)}
Expand Down

0 comments on commit 5828ee9

Please sign in to comment.