Skip to content

Commit 4a1e6e1

Browse files
committed
fix find face button focus styles
1 parent 940abb0 commit 4a1e6e1

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/components/ImageForm/ImageForm.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
.search-button:focus {
4343
box-shadow: var(--button-action-color, #194c79) 0 0 0 1.5px inset,
4444
rgba(45, 35, 66, 0.4) 0 2px 4px, rgba(45, 35, 66, 0.3) 0 7px 13px -3px,
45-
var(--button-action-color, #194c79) 0 -3px 0 inset;
45+
var(--button-action-color, #194c79) 0 -3px 0 inset !important;
4646
}
4747

4848
.search-button:hover {
@@ -53,6 +53,6 @@
5353
}
5454

5555
.search-button:active {
56-
box-shadow: var(--button-action-color, #194c79) 0 3px 7px inset;
56+
box-shadow: var(--button-action-color, #194c79) 0 3px 7px inset !important;
5757
transform: translateY(2px);
5858
}

src/hooks/useStatus.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ const useStatus = (initialStatus = 'idle') => {
88
return;
99
}
1010

11-
// const timeoutId = setTimeout(() => {
12-
// setStatus('idle');
13-
// }, 10000);
11+
const timeoutId = setTimeout(() => {
12+
setStatus('idle');
13+
}, 10000);
1414

15-
// return () => {
16-
// clearTimeout(timeoutId);
17-
// };
15+
return () => {
16+
clearTimeout(timeoutId);
17+
};
1818
}, [status]);
1919

2020
return { status, setStatus };

0 commit comments

Comments
 (0)