diff --git a/src/components/Send/AmountInputField.module.css b/src/components/Send/AmountInputField.module.css index b76073f1..7131bd8b 100644 --- a/src/components/Send/AmountInputField.module.css +++ b/src/components/Send/AmountInputField.module.css @@ -11,15 +11,7 @@ .button { --bs-btn-border-color: var(--bs-border-color) !important; + --bs-btn-hover-border-color: var(--bs-btn-border-color) !important; border-left: none !important; font-size: 0.875rem !important; } - -/* hack to show feedback element with input-groups */ -:global div.is-invalid .invalid-feedback { - display: block; -} - -:global .form-control.is-invalid + button { - --bs-btn-border-color: red !important; -} diff --git a/src/components/Send/AmountInputField.tsx b/src/components/Send/AmountInputField.tsx index f1d7e1e0..11350b34 100644 --- a/src/components/Send/AmountInputField.tsx +++ b/src/components/Send/AmountInputField.tsx @@ -56,7 +56,7 @@ export const AmountInputField = ({ ) : ( <> {field.value?.isSweep === true ? ( - + ) : (
- + + {form.errors[field.name]}
)} )} - {form.errors[field.name]} ) diff --git a/src/components/Send/DestinationInputField.module.css b/src/components/Send/DestinationInputField.module.css index ccac22f2..2db805e7 100644 --- a/src/components/Send/DestinationInputField.module.css +++ b/src/components/Send/DestinationInputField.module.css @@ -11,14 +11,6 @@ .button { --bs-btn-border-color: var(--bs-border-color) !important; + --bs-btn-hover-border-color: var(--bs-btn-border-color) !important; border-left: none !important; } - -/* hack to show feedback element with input-groups */ -:global div.is-invalid .invalid-feedback { - display: block; -} - -:global .form-control.is-invalid + button { - --bs-btn-border-color: red !important; -} diff --git a/src/components/Send/DestinationInputField.tsx b/src/components/Send/DestinationInputField.tsx index 1f24023d..2a4c4a45 100644 --- a/src/components/Send/DestinationInputField.tsx +++ b/src/components/Send/DestinationInputField.tsx @@ -92,7 +92,7 @@ export const DestinationInputField = ({ ) : ( <> {field.value.fromJar !== null ? ( - + ) : (
- +
+ {form.errors[field.name]}
)} - - {form.errors[field.name]} )} diff --git a/src/index.css b/src/index.css index 945fff7d..04db82f3 100644 --- a/src/index.css +++ b/src/index.css @@ -523,6 +523,10 @@ h2 { color: currentColor; } +.form-control.is-invalid + .btn { + --bs-btn-border-color: var(--bs-form-invalid-border-color) !important; +} + .alert-info { color: var(--bs-white); background-color: var(--bs-gray-800); @@ -709,13 +713,14 @@ h2 { } :root[data-theme='dark'] .form-control { + background-color: var(--bs-light); color: var(--bs-body-bg); - background-color: var(--bs-white); } :root[data-theme='dark'] .form-control:disabled, :root[data-theme='dark'] .form-select:disabled, .form-control[readonly] { + --bs-border-color: var(--bs-gray-500); background-color: var(--bs-gray-500); }