Skip to content

Commit a050800

Browse files
committed
Clean up based on review
1 parent 8f56be9 commit a050800

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

packages/components/src/ErrorView.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@
5353

5454
.btn-danger {
5555
border-radius: 0;
56-
color: $black;
56+
color: var(--dh-color-contrast-dark);
5757
opacity: 0.8;
5858
padding: $spacer-1;
5959
&:active {
60-
color: $black;
60+
color: var(--dh-color-contrast-dark);
6161
}
6262
}
6363

packages/components/src/ErrorView.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ function ErrorView({
3535
const textRef = useRef<HTMLPreElement>(null);
3636

3737
const handleResize = useCallback(() => {
38-
if (isExpanded || textRef.current == null) {
38+
if (isExpanded || isExpandedProp || textRef.current == null) {
3939
return;
4040
}
4141
const newIsExpandable =
4242
textRef.current.scrollHeight > textRef.current.clientHeight;
4343
setIsExpandable(newIsExpandable);
44-
}, [isExpanded]);
44+
}, [isExpanded, isExpandedProp]);
4545

4646
const debouncedHandleResize = useDebouncedCallback(handleResize, 100);
4747

0 commit comments

Comments
 (0)