Skip to content

Commit

Permalink
fix: piler i ekspanderende tabell
Browse files Browse the repository at this point in the history
  • Loading branch information
piofinn committed Aug 19, 2024
1 parent a4db8a5 commit 401c479
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
2 changes: 1 addition & 1 deletion packages/table-react/src/ExpandableTableRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const ExpandableTableRow = forwardRef<HTMLTableRowElement, ExpandableTableRowPro
setIsOpen(isOpenProp);
}, [isOpenProp]);

const [animationRef] = useAnimatedHeight<HTMLDivElement>(isOpen);
const [animationRef] = useAnimatedHeight<HTMLDivElement>(isOpen, { timing: "expressive" });

const toggleOpen = () => {
const newIsOpen = !isOpen;
Expand Down
11 changes: 0 additions & 11 deletions packages/table/_table-cell.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
@use "@fremtind/jkl-core/jkl";

@mixin _expanded-arrow($px) {
.jkl-expand-button__arrow {
transform: translateY(jkl.rem($px));
}
}

@include jkl.comfortable-density-variables {
@include jkl.declare-font-variables("jkl-table-cell", "body");

Expand Down Expand Up @@ -83,12 +77,7 @@
&:hover,
html:not([data-mousenavigation]):not([data-touchnavigation]) &:focus {
.jkl-table-row-expand-button {
@include _expanded-arrow(3px);
color: var(--expand-button-focus-color);

&--expanded {
@include _expanded-arrow(0);
}
}
}
}

0 comments on commit 401c479

Please sign in to comment.