open select on key down, tone down primary color usage

This commit is contained in:
Victor Oliva
2024-11-09 11:52:51 +07:00
parent 4cfd64939c
commit 4af67997f8
10 changed files with 29 additions and 19 deletions
+3 -6
View File
@@ -12,6 +12,7 @@ import { twMerge } from "tailwind-merge"
// @ts-expect-error save-as typings not available
import { saveAs } from "save-as"
import { BinaryEdit } from "./Icons"
import { ActionButton } from "./ActionButton"
export interface BinaryEditProps {
initialValue?: Uint8Array
@@ -174,13 +175,9 @@ const BinaryEditModalContent: FC<
placeholder={placeholder}
/>
</div>
<button
className={twMerge("border rounded p-1", !isValid && "opacity-50")}
onClick={submit}
disabled={!isValid}
>
<ActionButton onClick={submit} disabled={!isValid}>
OK
</button>
</ActionButton>
{error && <p className="text-red-600">{error}</p>}
</>
)